/* ATLAS – habillage « fait main » : palette craie / ardoise / vert de coche, typographie IBM Plex,
   peu d'effets. Chargé après les autres feuilles de style : il remplace sans les supprimer. */
:root {
  --ink: #11366F;
  --accent: #1F4FD8;
  --accent-text: #1E3FAE;
  --mist: #EEF3FB;
  --line: #D6DFEE;
  --steel: #51607A;
  --soft: #C3CFE6;
  --highlight: #F2D56B;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono: 'IBM Plex Sans', system-ui, sans-serif;
  --up: #2FA37A; --down: #D9604E; --up-dark: #1F7A5C; --down-dark: #A8392B;
}
body { background: #FAFBFE; font-size: 17px; line-height: 1.65; font-variant-numeric: tabular-nums; }
h1, h2, h3, .pg-h2, .pg-h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.card h3, .stat-num, .section-head h2, .pg-title h1, .hero h1 { font-family: var(--serif); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.pg-title h1 { font-size: clamp(30px, 4vw, 46px); }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

/* Fini les petites capitales espacées : tout est en casse normale (sauf la signature du logo) */
main *, .site-footer *, .ticker *, .pg-sticky *, .pm-toasts * { text-transform: none !important; letter-spacing: normal !important; }
.eyebrow, .eyebrow-light { font: 500 15px var(--font); color: var(--accent-text); }
.pm-head .eyebrow, .pm-head .eyebrow-light { color: #7DD3FC; }

/* En-tête du site */
.site-header { background: #FAFBFE; border-bottom: 1px solid var(--line); box-shadow: none !important; }
.main-nav a { font-weight: 500; }
.main-nav a.active { color: var(--accent-text); }

/* Boutons : sobres, rectangulaires, sans reflet */
.btn { border-radius: 4px; font-weight: 600; box-shadow: none; }
.btn::before { display: none; }
.btn:hover, .btn:active, .magnetic { transform: none !important; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-text); }
.btn-dark:hover { background: #2D3B48; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Accueil : fond craie, titre en serif, aucun mot coloré */
.hero, .pg-head { background: #E8EFFB; background-image: none; color: var(--ink); animation: none; border-bottom: 1px solid var(--line); }
.hero-mark { display: none; }
.hero-copy > * { animation: none; }
.hero h1 .accent, .accent { color: inherit; }
.w { overflow: visible; }
.w > span { transform: none; animation: none; }
.lead, .pg-sub { color: var(--steel); }
.hero-inner { padding-top: 80px; padding-bottom: 80px; }
.pg-head .btn-outline { border-color: var(--ink); color: var(--ink); }
.pg-head .btn-outline:hover { background: var(--ink); color: #fff; }
.pg-head .eyebrow-light { color: var(--accent-text); }

/* Fiche « missions » du hero : un tableau, pas une maquette */
.hero-card { animation: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.hero-card-head { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.hero-card-head .tag { background: var(--highlight); color: var(--ink); border-radius: 3px; font-weight: 500; padding: 3px 8px; }
.mission-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mission-table th { text-align: left; font-weight: 500; color: var(--steel); padding: 14px 26px 6px; font-size: 14px; }
.mission-table td { padding: 11px 26px; border-top: 1px solid var(--line); }
.mission-table td:last-child, .mission-table th:last-child { text-align: right; }
.mission-table .up { color: var(--up-dark); } .mission-table .down { color: var(--down-dark); }
.mission-note { padding: 14px 26px 20px; font-size: 14px; color: var(--steel); border-top: 1px solid var(--line); }

.marquee { display: none; }

/* Chiffres */
.stats { background: transparent; border-bottom: 1px solid var(--line); }
.stat-num { font-size: 44px; }
.js .stat.reveal { transform: none; }

/* Sections et cartes : à plat, bordure fine */
.section { padding: 80px 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); }
.card, [class*="-card"]:not(.pm-card):not(.hero-card) { box-shadow: none !important; }
.card { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 6px; }
.card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.card-num { display: none; }
.card h3 { font-size: 21px; }
.card p, .card li { color: var(--steel); }

/* Bandeau de cours : plus calme, aucune pulsation */
.ticker { background: var(--ink); }
.ticker-status { background: #0B2552; box-shadow: none; }
.is-live .dot { background: var(--up); animation: none; }
.is-demo .dot { background: var(--highlight); animation: none; }
.ticker .tk-empty { padding: 0 24px; color: #C8D2CC; font-size: 14px; white-space: normal; }
.pm-head { background: var(--ink); background-image: none; }

/* Animations décoratives supprimées : on garde seulement l'apparition douce */
.js .reveal { transform: none; transition: opacity .35s ease; }
.hero-card, .checks li, .bars span { animation: none; opacity: 1; }
@keyframes float { to { transform: none; } }

/* Filtres, pastilles, champs */
.pg-sticky { background: rgba(251, 251, 249, .97); backdrop-filter: none; }
.pg-chip { border-radius: 4px; font-weight: 500; }
.pg-chip.active { background: var(--accent); border-color: var(--accent); }
.at-input, select, input[type="text"], input[type="search"], input[type="email"], textarea { border-radius: 4px; }
.fr-chip, .legend-chip { border-radius: 4px; }
.site-footer { background: #0B2552; }
.to-top, .as-fab { border-radius: 4px; box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .ticker-track, .marquee-track { animation: none; } }

/* Page Marchés : écran de salle de marché, en ardoise (et non plus en bleu nuit) */
body.pm {
  background: #0D2A5C; color: #E6EDF8;
  --pm-panel: #14397A; --pm-panel-2: #102F66; --pm-line: #28529C; --pm-muted: #A9BCDD;
  --pm-up: #4FC79B; --pm-down: #F08A7B; --pm-amber: #E6B94A; --pm-blue: #86B6E6;
}
body.pm .pm-head { background: #0A2150; }
.pm-head { background-image: none !important; }
/* Accueil : photo océan */
.hero { position: relative; background: linear-gradient(90deg, rgba(8,24,64,.82) 0%, rgba(8,24,64,.55) 55%, rgba(8,24,64,.25) 100%), url(../assets/hero-ocean.jpg) center/cover no-repeat !important; border-bottom: 0 !important; color: #fff !important; }
.hero h1, .hero p, .hero .eyebrow, .hero-copy * { color: #fff !important; }
.hero .btn-ghost, .hero .btn-secondary { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.hero-card { background: rgba(255,255,255,.94) !important; backdrop-filter: blur(6px); }
.hero-card * { color: inherit; }
.hero-inner { padding-top: 130px; padding-bottom: 130px; }
.hero-card p, .hero-card a, .hero-card .tag { color: #3A4A66 !important; } .hero-card a { color: #1F4FD8 !important; }
.hero .btn-primary, .hero .btn.primary { color:#fff !important; }
/* Carte d'accueil dynamique */

.hero-card .hero-card-head span:first-child, .mission-table td:nth-child(2) { transition: none; }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 0 0 16px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: #B4C3E0; cursor: pointer; }
.hero-dots button.on { background: #1F4FD8; width: 22px; border-radius: 4px; }
html[data-theme=dark] .hero-dots button { background: #4A6396; } html[data-theme=dark] .hero-dots button.on { background: #7DD3FC; }
@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } }
.mission-table th:nth-child(3), .mission-table td.spk-c { text-align: center; width: 84px; padding-left: 6px; padding-right: 6px; }
.mission-table td:last-child, .mission-table th:last-child { text-align: right; }
.spk { width: 64px; height: 20px; color: #1F4FD8; vertical-align: middle; }
html[data-theme=dark] .spk { color: #7DD3FC; }
.mission-table td { padding-left: 18px; padding-right: 18px; } .mission-table th { padding-left: 18px; padding-right: 18px; }
.hero-prog { height: 3px; background: rgba(31,79,216,.15); margin: 0 0 14px; } .hero-prog i { display: block; height: 100%; width: 0; background: #1F4FD8; }
html[data-theme=dark] .hero-prog { background: rgba(125,211,252,.18); } html[data-theme=dark] .hero-prog i { background: #7DD3FC; }
@keyframes heroprog { from { width: 0; } to { width: 100%; } }
/* Point d'attention */
.attn { background: #FFF6D6; border-top: 1px solid #F0DC8A; border-bottom: 1px solid #F0DC8A; }
.attn-in { display: flex; gap: 18px; align-items: center; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.attn-tag { background: #11366F; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; white-space: nowrap; }
.attn p { margin: 0; flex: 1 1 420px; font-size: 15px; color: #3A3510; line-height: 1.5; }
.attn-link { font-weight: 600; color: #1F4FD8; white-space: nowrap; }
html[data-theme=dark] .attn { background: #1B2A4A; border-color: #2B4272; } html[data-theme=dark] .attn p { color: #E6EDF8; } html[data-theme=dark] .attn-link { color: #7DD3FC; }
/* Bandeau océan sur les pages internes */
.pg-head { position: relative; background: linear-gradient(90deg, rgba(8,24,64,.88) 0%, rgba(8,24,64,.62) 60%, rgba(8,24,64,.35) 100%), url(../assets/hero-ocean.jpg) center 62%/cover no-repeat !important; color: #fff !important; border-bottom: 0 !important; }
.pg-head h1, .pg-head .pg-lead, .pg-head .eyebrow, .pg-head p { color: #fff !important; }
.pg-head .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.75) !important; background: transparent !important; }
.pg-head a:not(.btn) { color: #BAE6FD !important; }
html[data-theme=dark] body .pg-head[class] { background: linear-gradient(90deg, rgba(5,14,36,.92) 0%, rgba(5,14,36,.7) 60%, rgba(5,14,36,.45) 100%), url(../assets/hero-ocean.jpg) center 62%/cover no-repeat !important; }
