/* ==========================================================================
   FAIRMI - Page d'accueil (refonte 2026-07)
   Chargé uniquement sur accueil.php (fichiers_integration_css.php).
   Préfixe fx- pour éviter toute collision avec style.css.
   Direction : hero + bande marques en anthracite, corps éditorial clair,
   titres serif, une seule couleur d'action (bleu Fairmi).
   ========================================================================== */

.accueil-refonte {
  --fx-paper: #ffffff;
  --fx-canvas: #f6fafb;
  --fx-ink: #26333d;
  --fx-ink-2: #4a5a66;
  --fx-muted: #6d7d88;
  --fx-line: #dbe5ea;
  --fx-blue: #2ac0e0;
  --fx-blue-deep: #0e7d9c;
  --fx-blue-soft: #8bd1e0;
  --fx-blue-tint: #e2f3f8;
  --fx-panel: #26333d;
  --fx-panel-deep: #141d24;
  --fx-panel-ink: #e7eef2;
  --fx-panel-muted: #9fb2bd;
  --fx-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background: var(--fx-paper);
  color: var(--fx-ink);
}

.accueil-refonte #main { padding: 0; margin: 0; max-width: none; }
.accueil-refonte .fx-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* Navbar blanche sur toute la largeur (le cap 1440px laissait le hero sombre
   déborder sur les côtés au-delà de cette largeur). Le contenu du nav reste
   centré via son propre max-width interne. */
.accueil-refonte .navbar { max-width: none; width: 100%; }

.accueil-refonte h1,
.accueil-refonte .fx-h2 { line-height: 1.15; text-wrap: balance; margin: 0; }
.accueil-refonte .fx-h2 {
  font-family: var(--fx-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--fx-ink);
}

.fx-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fx-blue-deep); margin: 0 0 16px;
}
.fx-kicker::before { content: ""; width: 26px; height: 2px; background: var(--fx-blue); border-radius: 2px; }

.fx-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--fx-blue-deep); color: #ffffff;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fx-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14, 125, 156, 0.32); color: #ffffff; }
.fx-btn--cyan { background: var(--fx-blue); color: #0c2530; }
.fx-btn--cyan:hover { box-shadow: 0 8px 22px rgba(42, 192, 224, 0.35); color: #0c2530; }

.fx-section { padding: 84px 0; }
.fx-section--alt { background: var(--fx-canvas); }
.fx-sec-head { max-width: 46em; margin-bottom: 44px; }
.fx-sec-head p { color: var(--fx-ink-2); margin: 14px 0 0; font-size: 1rem; line-height: 1.65; }

/* ---------- HERO (panneau anthracite) ---------- */
.fx-hero {
  background: radial-gradient(1100px 520px at 50% -120px, #24333d 0%, #1a242c 60%, #141d24 100%);
  padding: 84px 0 76px; text-align: center; color: var(--fx-panel-ink);
}
.fx-hero h1 {
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.8vw, 3.3rem); color: #ffffff;
}
.fx-hero .fx-lede {
  max-width: 36em; margin: 22px auto 0; color: #b9c7d0;
  font-size: 1.06rem; line-height: 1.65;
}
.fx-searchbox { margin: 38px auto 0; position: relative; max-width: 640px; text-align: left; }
.fx-searchbar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.055); border: 1.5px solid #3a4a55; border-radius: 999px;
  padding: 8px 8px 8px 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
.fx-searchbar:focus-within { border-color: var(--fx-blue); }
.fx-searchbar svg { flex: none; color: #8fa1ac; }
.fx-searchbar input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem;
  color: #ffffff; min-width: 0; padding: 12px 0;
}
.fx-searchbar input::placeholder { color: #8fa1ac; }
.fx-searchbar input:focus { outline: none; }
.fx-searchbar .fx-btn { padding: 13px 26px; }
.fx-results {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
  background: #22303a; border: 1px solid #3a4a55; border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); overflow: hidden; display: none; z-index: 30;
}
.fx-results.fx-open { display: block; }
.fx-results a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 20px; color: #e7eef2; font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid #33424d; text-decoration: none;
}
.fx-results a:last-child { border-bottom: 0; }
.fx-results a:hover, .fx-results a:focus { background: #2a3a45; }
.fx-results .fx-act { font-size: 0.78rem; font-weight: 700; color: var(--fx-blue); flex: none; }
.fx-hero .fx-count { margin: 22px 0 0; font-size: 0.94rem; color: #8fa1ac; }
.fx-hero .fx-count strong { color: #ffffff; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-hero .fx-count .fx-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--fx-blue); margin-right: 9px; vertical-align: 1px;
}

/* ---------- BANDE MARQUES (suite du panneau sombre) ---------- */
.fx-trust { background: var(--fx-panel-deep); padding: 34px 0; border-top: 1px solid #24313a; }
.fx-trust .fx-wrap { text-align: center; }
.fx-trust .fx-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #71828d; margin: 0 0 20px;
}
.fx-marks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 52px; }
.fx-marks a {
  font-family: var(--fx-serif);
  font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em;
  color: #9fb2bd; text-decoration: none; transition: color 0.12s ease;
}
.fx-marks a:hover { color: #ffffff; }

/* ---------- BANDEAU ENGAGEMENT (citation + chiffres) ---------- */
.fx-pledge { padding: 64px 0; border-bottom: 1px solid var(--fx-line); }
.fx-pledge blockquote {
  margin: 0 auto; max-width: none; text-align: center;
  font-family: var(--fx-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--fx-ink);
}
.fx-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 860px; margin: 40px auto 0;
  border: 1px solid var(--fx-line); border-radius: 20px; overflow: hidden; background: var(--fx-canvas);
}
.fx-stats > div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--fx-line); }
.fx-stats > div:last-child { border-right: 0; }
.fx-stats strong {
  display: block; font-size: 1.5rem; font-weight: 600; color: var(--fx-blue-deep);
  font-family: var(--fx-serif); font-variant-numeric: tabular-nums;
}
.fx-stats span { font-size: 0.9rem; color: var(--fx-ink-2); }

/* ---------- ÉTAPES (liste éditoriale) ---------- */
.fx-steps { border-top: 1px solid var(--fx-line); }
.fx-step {
  display: grid; grid-template-columns: 88px 1fr 1.4fr; gap: 28px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--fx-line);
}
.fx-step .fx-num {
  font-family: var(--fx-serif); font-size: 2.2rem; font-weight: 600;
  color: var(--fx-blue-soft); font-variant-numeric: tabular-nums;
}
.fx-step h3 { font-size: 1.1rem; font-weight: 800; margin: 0; line-height: 1.3; }
.fx-step p { margin: 0; color: var(--fx-ink-2); font-size: 0.95rem; line-height: 1.65; }

/* ---------- GALAXIE (panneau anthracite) ---------- */
.fx-galaxie { background: var(--fx-panel); color: var(--fx-panel-ink); }
.fx-galaxie .fx-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.fx-galaxie .fx-kicker { color: var(--fx-blue-soft); }
.fx-galaxie .fx-kicker::before { background: var(--fx-blue-soft); }
.fx-galaxie .fx-h2 { color: #ffffff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.fx-galaxie p { color: var(--fx-panel-muted); margin: 18px 0 0; max-width: 32em; line-height: 1.65; }
.fx-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 0.83rem; color: var(--fx-panel-muted); }
.fx-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.fx-galaxie .fx-btn { margin-top: 30px; }
.fx-gal-canvas {
  aspect-ratio: 1 / 1; max-width: 430px; width: 100%; margin: 0 auto; display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #33434f 0%, #26333d 68%);
  box-shadow: inset 0 0 70px rgba(139, 209, 224, 0.10);
}

/* ---------- OUTILS ---------- */
.fx-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fx-tool {
  background: var(--fx-canvas); border: 1px solid var(--fx-line); border-radius: 22px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fx-tool:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(38, 51, 61, 0.07); }
.fx-tool .fx-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fx-blue-deep);
}
.fx-tool h3 {
  font-size: 1.12rem; font-weight: 600; margin: 0;
  font-family: var(--fx-serif);
}
.fx-tool p { margin: 0; color: var(--fx-ink-2); font-size: 0.93rem; flex: 1; line-height: 1.6; }
.fx-tool a { font-weight: 700; font-size: 0.9rem; color: var(--fx-blue-deep); text-decoration: none; }
.fx-tool a:hover { text-decoration: underline; }

/* ---------- PREUVES + DROITS ---------- */
.fx-proof {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 64px;
  border: 1px solid var(--fx-line); border-radius: 22px; overflow: hidden; background: var(--fx-paper);
}
.fx-proof > div { padding: 26px 22px; text-align: center; border-right: 1px solid var(--fx-line); }
.fx-proof > div:last-child { border-right: 0; }
.fx-proof strong {
  display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px;
  font-family: var(--fx-serif); font-variant-numeric: tabular-nums;
}
.fx-proof span { font-size: 0.85rem; color: var(--fx-muted); }
.fx-droits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fx-droits a {
  background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: 999px;
  padding: 9px 18px; font-size: 0.88rem; font-weight: 600; color: var(--fx-ink); text-decoration: none;
}
.fx-droits a:hover { border-color: var(--fx-blue); }

/* ---------- FAQ ---------- */
.fx-faq { border-top: 1px solid var(--fx-line); }
.fx-faq details { border-bottom: 1px solid var(--fx-line); padding: 0 4px; }
.fx-faq summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; padding: 22px 36px 22px 0;
  list-style: none; position: relative; color: var(--fx-ink);
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--fx-blue-deep); font-weight: 400;
}
.fx-faq details[open] summary::after { content: "\2013"; }
.fx-faq details p { margin: 0 0 22px; color: var(--fx-ink-2); font-size: 0.94rem; max-width: 58em; line-height: 1.65; }

/* ---------- BLOG ---------- */
.fx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fx-post {
  border: 1px solid var(--fx-line); border-radius: 22px; background: var(--fx-paper);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
}
.fx-post .fx-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fx-blue-deep);
}
.fx-post h3 {
  font-size: 1.08rem; font-weight: 600; margin: 0; color: var(--fx-ink);
  font-family: var(--fx-serif); line-height: 1.35;
}
.fx-post p { margin: 0; color: var(--fx-ink-2); font-size: 0.9rem; flex: 1; line-height: 1.6; }
.fx-post .fx-more { font-weight: 700; font-size: 0.9rem; color: var(--fx-blue-deep); }
.fx-post:hover .fx-more { text-decoration: underline; }
.fx-blog-all { margin-top: 28px; font-weight: 600; }
.fx-blog-all a { color: var(--fx-blue-deep); text-decoration: none; }
.fx-blog-all a:hover { text-decoration: underline; }

/* ---------- CTA FINAL ---------- */
.fx-final { background: var(--fx-panel); color: var(--fx-panel-ink); text-align: center; }
.fx-final .fx-h2 { color: #ffffff; }
.fx-final p { color: var(--fx-panel-muted); max-width: 34em; margin: 16px auto 0; line-height: 1.65; }
.fx-final .fx-btn { margin-top: 30px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 840px) {
  .fx-section { padding: 60px 0; }
  .fx-hero { padding: 56px 0 52px; }
  .fx-stats { grid-template-columns: 1fr; }
  .fx-stats > div { border-right: 0; border-bottom: 1px solid var(--fx-line); }
  .fx-stats > div:last-child { border-bottom: 0; }
  .fx-step { grid-template-columns: 56px 1fr; gap: 16px; }
  .fx-step p { grid-column: 2; }
  .fx-tools, .fx-posts { grid-template-columns: 1fr; }
  .fx-proof { grid-template-columns: 1fr 1fr; }
  .fx-proof > div:nth-child(2n) { border-right: 0; }
  .fx-proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--fx-line); }
  .fx-galaxie .fx-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .fx-searchbar .fx-btn { padding: 12px 18px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-btn, .fx-tool { transition: none; }
}

/* ---------- DARK MODE (toggle site html.dark-mode) ----------
   Les panneaux anthracite restent identiques ; seules les zones claires basculent. */
html.dark-mode .accueil-refonte {
  --fx-paper: #121a20;
  --fx-canvas: #16222a;
  --fx-ink: #e5edf1;
  --fx-ink-2: #c0cdd5;
  --fx-muted: #8fa1ac;
  --fx-line: #25333d;
  --fx-blue-deep: #4ecbe6;
  --fx-blue-tint: #12303a;
}
html.dark-mode .accueil-refonte .fx-btn { color: #0c1a20; }
