/*
Theme Name: Bearny 2026
Theme URI: https://bearny.fr
Author: DataPatrimoine SAS
Author URI: https://bearny.fr
Description: Thème WordPress sur mesure pour Bearny — courtier en prêt étudiant et observatoire des frais de scolarité des grandes écoles françaises. Direction artistique « Warm Premium Fintech x Nordic Calm Bear ». Compatible avec un parc de Custom Post Types (Écoles, Programmes, Articles).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
License URI: https://bearny.fr/licence
Text Domain: bearny
Tags: fintech, education, premium, fr
*/

/* ======================================================================
   BEARNY 2026 — DA Warm Premium Fintech x Nordic Calm Bear
   Palette : Bleu nuit + Saumon doux + Crème chaud
   Fonts : Fraunces (serif) + Inter (UI) + JetBrains Mono (data)
   ====================================================================== */

:root {
  --ink: #14204A;
  --ink-deep: #0B1D3A;
  --ink-soft: #16264D;
  --slate: #6E86A3;
  --mist: #BFD1E3;
  --mist-pale: #DCE6F1;
  --mist-soft: #E9EDF1;
  --salmon: #F7826A;
  --salmon-soft: #FFA08A;
  --salmon-deep: #E66F58;
  --salmon-pale: #FFE5DD;
  --cream: #F8F6F2;
  --cream-warm: #FFFDF8;
  --cream-deep: #F7F3EC;
  --sage: #8BAA9A;
  --white: #FFFFFF;
  --border: #E9EDF1;
  --border-strong: #DCE6F1;
  --text: #14204A;
  --text-muted: #4A5878;
  --text-dim: #8896B0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 20px rgba(20, 32, 74, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 32, 74, 0.05);
  --shadow-lg: 0 20px 60px rgba(20, 32, 74, 0.10);
  --shadow-salmon: 0 4px 16px rgba(247, 130, 106, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }

/* === ACCESSIBILITY === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link {
  background: var(--ink);
  color: var(--cream-warm);
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === TICKER STATS === */
.ticker {
  background: var(--ink);
  color: var(--cream-warm);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-soft);
  position: relative;
  height: 38px;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  align-items: center;
}
@keyframes ticker-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; }
.ticker-item .lbl { color: rgba(255, 253, 248, 0.55); text-transform: uppercase; }
.ticker-item .val { color: var(--cream-warm); font-weight: 600; }
.ticker-item .acc { color: var(--salmon); font-weight: 600; }
.ticker-item .dot { width: 4px; height: 4px; background: var(--salmon); border-radius: 50%; opacity: 0.6; }

/* === HEADER === */
.site-header {
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.site-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.main-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--ink); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 42px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-primary { background: var(--salmon); color: var(--white); box-shadow: var(--shadow-salmon); }
.btn-primary:hover { background: var(--salmon-deep); transform: translateY(-1px); }
.btn-large { height: 56px; padding: 0 28px; font-size: 15px; border-radius: 13px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-deep); }

/* === HERO HOMEPAGE === */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 246, 242, 0.2) 0%, rgba(248, 246, 242, 0.55) 60%, rgba(248, 246, 242, 0.95) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--salmon-pale);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--salmon-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--salmon); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--salmon); font-weight: 400; }
.hero-subtitle { font-size: 18px; line-height: 1.55; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-proofs { display: flex; flex-wrap: wrap; gap: 24px 28px; margin-bottom: 36px; }
.hero-proof { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
.hero-proof svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 0;
  box-shadow: var(--shadow-md);
}
.hero-stat { padding: 0 22px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat .v { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.hero-stat .v em { font-style: italic; color: var(--salmon); font-weight: 500; }
.hero-stat .l { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* === SIMULATEUR === */
.sim-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); position: relative; }
.sim-card::before { content: ''; position: absolute; top: 18px; right: 32px; width: 8px; height: 8px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 0 4px rgba(139, 170, 154, 0.2); }
.sim-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 24px; }
.sim-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--mist-soft); }
.sim-row:last-of-type { border-bottom: none; padding-bottom: 4px; }
.sim-row .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.sim-row .label .opt { color: var(--text-dim); font-weight: 400; font-size: 11px; margin-left: 4px; }
.sim-input, .sim-select { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink); width: 110px; text-align: right; transition: border-color 0.2s; }
.sim-input:focus, .sim-select:focus { outline: none; border-color: var(--salmon); }
.sim-select { padding-right: 28px; appearance: none; text-align: left; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314204A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.sim-result { background: var(--salmon-pale); border-radius: var(--radius-md); padding: 22px; margin-top: 22px; text-align: center; }
.sim-result .lbl { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.sim-result .amount { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.025em; margin-bottom: 14px; }
.sim-result .secondary-lbl { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.sim-result .secondary-val { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); font-style: italic; }
.sim-cta { width: 100%; margin-top: 22px; height: 52px; background: var(--salmon); color: var(--white); border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(247, 130, 106, 0.3); }
.sim-cta:hover { background: var(--salmon-deep); transform: translateY(-1px); }
.sim-microcopy { display: flex; justify-content: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.sim-microcopy span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-dim); }
.sim-microcopy span::before { content: '✓'; color: var(--sage); font-weight: 700; }
.sim-disclaimer { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 12px; font-style: italic; }

/* === SECTIONS === */
section { padding: 88px 0; }
.section-title { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); text-align: center; margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--salmon); font-weight: 400; }
.section-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.55; text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--salmon-deep); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; margin-bottom: 14px; }

/* === FOOTER === */
.site-footer { background: var(--ink-deep); color: var(--cream-warm); padding: 64px 0 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 36px; margin-bottom: 48px; }
.footer-brand .site-logo { color: var(--cream-warm); margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255, 253, 248, 0.6); line-height: 1.55; max-width: 240px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 253, 248, 0.06); display: flex; align-items: center; justify-content: center; color: rgba(255, 253, 248, 0.7); transition: all 0.2s; }
.footer-social a:hover { color: var(--salmon); background: rgba(247, 130, 106, 0.1); }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--cream-warm); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255, 253, 248, 0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--salmon); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255, 253, 248, 0.08); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 253, 248, 0.5); flex-wrap: wrap; gap: 16px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 22px; }
}
