/*
Theme Name: FB Conseil Light
Theme URI: https://fboudin.com/
Description: Thème enfant GeneratePress ultra-léger pour l’accueil, les pages Compétences, Outils, Avis clients et Contact de FB Conseil. Les autres pages restent gérées par GeneratePress.
Author: FB Conseil
Template: generatepress
Version: 3.1
Text Domain: fbconseil-light
*/

:root {
  --fb-bg: #f7f7f4;
  --fb-surface: #ffffff;
  --fb-ink: #171918;
  --fb-muted: #656a67;
  --fb-line: #dadeda;
  --fb-logo-width: 240px;
  --fb-logo-width-mobile: 170px;
  --fb-logo-height: auto;
  --fb-accent: #1d604c;
  --fb-accent-dark: #123d31;
  --fb-radius: 18px;
  --fb-shadow: 0 18px 50px rgba(18, 35, 29, .08);
  --fb-max: 1140px;
}

body.fb-light-home,
body.fb-light-home * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fb-light-home {
  margin: 0;
  background: var(--fb-bg);
  color: var(--fb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.fb-light-home a { color: inherit; }
body.fb-light-home .fb-container { width: min(calc(100% - 40px), var(--fb-max)); margin-inline: auto; }
body.fb-light-home .fb-skip-link { position: absolute; left: -9999px; }
body.fb-light-home .fb-skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: #fff; }

.fb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(218,222,218,.8);
  background: rgba(247,247,244,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.admin-bar .fb-site-header { top: 32px; }
.fb-nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.fb-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 150px; text-decoration: none; font-weight: 760; }
.fb-brand .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.fb-brand .custom-logo { display: block; width: var(--fb-logo-width); height: var(--fb-logo-height); max-width: 100%; max-height: none; }
.fb-brand-fallback { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.fb-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--fb-accent); color: #fff; letter-spacing: -.04em; font-weight: 800; }
.fb-brand-name { font-weight: 780; }
.fb-nav { display: flex; align-items: center; gap: 24px; }
.fb-nav a { text-decoration: none; color: #333835; font-size: 14px; font-weight: 650; }
.fb-nav a:hover, .fb-nav a:focus-visible { color: var(--fb-accent); }
.fb-nav-cta { padding: 9px 14px; border: 1px solid var(--fb-line); border-radius: 999px; }

.fb-hero { padding: 100px 0 88px; }
.fb-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.fb-eyebrow { margin: 0 0 16px; color: var(--fb-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body.fb-light-home h1, body.fb-light-home h2, body.fb-light-home h3 { color: var(--fb-ink); line-height: 1.12; letter-spacing: -.035em; }
body.fb-light-home h1 { max-width: 800px; margin: 0; font-size: clamp(46px, 7vw, 78px); font-weight: 770; }
body.fb-light-home h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 740; }
body.fb-light-home h3 { margin: 0 0 10px; font-size: 22px; }
.fb-lead { max-width: 760px; margin: 28px 0 0; color: var(--fb-muted); font-size: clamp(18px, 2vw, 21px); }
.fb-hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fb-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 19px; border-radius: 12px; background: var(--fb-accent); color: #fff !important; text-decoration: none; font-weight: 750; box-shadow: 0 8px 22px rgba(29,96,76,.16); }
.fb-button:hover, .fb-button:focus-visible { background: var(--fb-accent-dark); }
.fb-text-link, .fb-card-link { color: var(--fb-accent) !important; text-decoration: none; font-weight: 750; }
.fb-hero-card { padding: 30px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); box-shadow: var(--fb-shadow); }
.fb-hero-card strong { display: block; font-size: 24px; }
.fb-hero-card p { margin: 8px 0 0; color: var(--fb-muted); }
.fb-mini-label { display: block; margin-bottom: 22px; color: var(--fb-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.fb-divider { height: 1px; background: var(--fb-line); margin: 22px 0; }

.fb-section { padding: 94px 0; }
.fb-section-alt { border-block: 1px solid var(--fb-line); background: #eeefeb; }
.fb-section-heading { max-width: 780px; margin-bottom: 46px; }
.fb-split-heading { max-width: none; display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: end; }
.fb-section-note { margin: 0; color: var(--fb-muted); }
.fb-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fb-service-card { min-height: 275px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-service-card p { margin: auto 0 0; color: var(--fb-muted); }
.fb-service-card a { margin-top: 18px; color: var(--fb-accent); text-decoration: none; font-weight: 750; }
.fb-number { margin-bottom: 42px; color: var(--fb-accent); font-size: 13px; font-weight: 850; }

.fb-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fb-project-card { min-height: 260px; padding: 26px; border-radius: var(--fb-radius); background: var(--fb-surface); border: 1px solid rgba(218,222,218,.9); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.fb-project-card:hover, .fb-project-card:focus-visible { transform: translateY(-3px); box-shadow: var(--fb-shadow); }
.fb-project-client { margin: 0 0 32px; color: var(--fb-accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.fb-project-card > p:not(.fb-project-client) { color: var(--fb-muted); }
.fb-tag { display: inline-block; margin-top: 18px; padding: 6px 10px; border-radius: 999px; background: var(--fb-bg); color: #4f5551; font-size: 12px; font-weight: 700; }
.fb-center-action { margin-top: 34px; text-align: center; }
.fb-button-outline { background: transparent; color: var(--fb-accent-dark) !important; border: 1px solid var(--fb-accent-dark); box-shadow: none; }
.fb-button-outline:hover, .fb-button-outline:focus-visible { background: var(--fb-accent-dark); color: #fff !important; }

.fb-expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.fb-lead-small { color: var(--fb-muted); font-size: 18px; }
.fb-skills { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-skills span { padding: 10px 14px; border: 1px solid var(--fb-line); border-radius: 999px; background: var(--fb-surface); font-weight: 700; }
.fb-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fb-link-grid a { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); text-decoration: none; }
.fb-link-grid a:hover, .fb-link-grid a:focus-visible { border-color: var(--fb-accent); }
.fb-link-grid strong { font-size: 18px; }
.fb-link-grid span { color: var(--fb-muted); }

.fb-contact-section { padding: 40px 0 70px; }
.fb-contact-box { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; padding: 56px; border-radius: 24px; background: var(--fb-accent-dark); color: #fff; }
body.fb-light-home .fb-contact-box h2 { color: #fff; }
.fb-eyebrow-light { color: #b8d7cc; }
.fb-contact-actions { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fb-button-light { background: #fff; color: var(--fb-accent-dark) !important; box-shadow: none; }
.fb-button-light:hover, .fb-button-light:focus-visible { background: #edf5f1; }
.fb-contact-secondary { color: #d7e7e1 !important; text-decoration: none; font-weight: 700; }
.fb-site-footer { padding: 28px 0 40px; }
.fb-footer-wrap { display: flex; justify-content: space-between; gap: 24px; color: var(--fb-muted); font-size: 14px; }
.fb-footer-wrap p { margin: 0; }
.fb-footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fb-footer-nav a { text-decoration: none; }

@media (max-width: 900px) {
  .fb-hero-grid, .fb-expertise-grid, .fb-contact-box { grid-template-columns: 1fr; gap: 36px; }
  .fb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-split-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 782px) {
  .admin-bar .fb-site-header { top: 46px; }
}

@media (max-width: 650px) {
  body.fb-light-home .fb-container { width: min(calc(100% - 28px), var(--fb-max)); }
  .fb-site-header { position: static; }
  .fb-nav-wrap { min-height: 68px; }
  .fb-brand .custom-logo { width: var(--fb-logo-width-mobile); max-width: 100%; }
  .fb-brand-name { display: none; }
  .fb-nav { gap: 14px; overflow-x: auto; }
  .fb-nav a { font-size: 13px; white-space: nowrap; }
  .fb-nav a:nth-child(3), .fb-nav a:nth-child(4) { display: none; }
  .fb-hero { padding: 68px 0 56px; }
  body.fb-light-home h1 { font-size: clamp(42px, 13vw, 58px); }
  .fb-section { padding: 70px 0; }
  .fb-services-grid, .fb-projects-grid, .fb-link-grid { grid-template-columns: 1fr; }
  .fb-service-card { min-height: 230px; }
  .fb-contact-box { padding: 34px 26px; }
  .fb-footer-wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fb-project-card { transition: none; }
}


/* Modern internal pages */
.fb-nav-current { color: var(--fb-accent) !important; }
.fb-page-hero { padding: 90px 0 76px; }
.fb-page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: center; }
.fb-stat-card { padding: 34px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); box-shadow: var(--fb-shadow); }
.fb-stat-card strong { display: block; color: var(--fb-accent); font-size: clamp(58px, 8vw, 92px); line-height: .9; letter-spacing: -.06em; }
.fb-stat-card span { display: block; margin-top: 12px; font-weight: 800; font-size: 18px; }
.fb-stat-card p { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--fb-line); color: var(--fb-muted); }
.fb-competency-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.fb-simple-card { padding: 26px; min-height: 190px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-simple-card p { color: var(--fb-muted); margin-bottom: 0; }
.fb-timeline { display: grid; gap: 0; }
.fb-timeline article { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--fb-line); }
.fb-timeline article:last-child { border-bottom: 1px solid var(--fb-line); }
.fb-timeline-date { color: var(--fb-accent); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.fb-timeline p { max-width: 760px; margin: 8px 0 0; color: var(--fb-muted); }
.fb-three-cols { grid-template-columns: repeat(3, 1fr); }
.fb-inline-strong { display: inline !important; font-size: inherit !important; }
.fb-tool-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.fb-tool-card { min-height: 230px; padding: 24px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-tool-card > span { display: block; margin-bottom: 32px; color: var(--fb-accent); font-size: 13px; font-weight: 850; }
.fb-tool-card p { color: var(--fb-muted); }
.fb-tool-card a { color: var(--fb-accent) !important; text-decoration: none; font-weight: 750; }
@media (max-width: 900px) {
  .fb-page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .fb-competency-grid { grid-template-columns: repeat(2,1fr); }
  .fb-tool-grid { grid-template-columns: repeat(2,1fr); }
  .fb-three-cols { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .fb-page-hero { padding: 62px 0 50px; }
  .fb-competency-grid, .fb-tool-grid { grid-template-columns: 1fr; }
  .fb-timeline article { grid-template-columns: 1fr; gap: 8px; }
}

/* Customer reviews page */
.fb-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fb-review-card { min-height: 300px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-review-mark { height: 42px; color: var(--fb-accent); font-family: Georgia, serif; font-size: 58px; line-height: .8; }
.fb-review-card > p { margin: 20px 0 30px; color: #454b47; font-size: 17px; }
.fb-review-card footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fb-line); }
.fb-review-card footer strong, .fb-review-card footer span { display: block; }
.fb-review-card footer span { margin-top: 3px; color: var(--fb-muted); font-size: 13px; }
.fb-review-values { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.fb-comments-section { overflow: hidden; }
.fb-comments-wrap { padding: 34px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-comments-wrap #comments { margin: 0; }
.fb-comments-wrap .comments-title { margin-top: 0; }
@media (max-width: 900px) {
  .fb-review-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-review-values { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 650px) {
  .fb-review-grid { grid-template-columns: 1fr; }
  .fb-review-card { min-height: 0; }
  .fb-comments-wrap { padding: 22px 18px; }
}


/* Contact page */
.fb-contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 34px; align-items: start; }
.fb-contact-intro { position: sticky; top: 112px; padding: 30px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-contact-intro h2 { font-size: clamp(26px, 3vw, 36px) !important; }
.fb-contact-intro p { color: var(--fb-muted); }
.fb-contact-points { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--fb-line); }
.fb-contact-point { padding: 18px 0; border-bottom: 1px solid var(--fb-line); }
.fb-contact-point strong, .fb-contact-point span { display: block; }
.fb-contact-point span { margin-top: 3px; color: var(--fb-muted); font-size: 14px; }
.fb-form-card { padding: 34px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); box-shadow: var(--fb-shadow); }
.fb-form-card > :first-child { margin-top: 0; }
.fb-form-card form { margin: 0; }
.fb-form-card label { display: block; margin-bottom: 8px; color: var(--fb-ink); font-weight: 700; }
.fb-form-card input[type="text"],
.fb-form-card input[type="email"],
.fb-form-card input[type="tel"],
.fb-form-card input[type="url"],
.fb-form-card textarea,
.fb-form-card select { width: 100%; max-width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--fb-line); border-radius: 10px; background: #fff; color: var(--fb-ink); font: inherit; }
.fb-form-card textarea { min-height: 150px; resize: vertical; }
.fb-form-card input:focus,
.fb-form-card textarea:focus,
.fb-form-card select:focus { outline: 2px solid rgba(29,96,76,.18); border-color: var(--fb-accent); }
.fb-form-card input[type="submit"],
.fb-form-card button[type="submit"] { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--fb-accent); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.fb-form-card input[type="submit"]:hover,
.fb-form-card button[type="submit"]:hover { background: var(--fb-accent-dark); }
.fb-form-card iframe { max-width: 100%; }
.fb-contact-reassurance { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.fb-reassurance-card { padding: 24px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); }
.fb-reassurance-card strong { display: block; margin-bottom: 8px; }
.fb-reassurance-card p { margin: 0; color: var(--fb-muted); }
@media (max-width: 900px) {
  .fb-contact-layout { grid-template-columns: 1fr; }
  .fb-contact-intro { position: static; }
}
@media (max-width: 650px) {
  .fb-form-card { padding: 24px 18px; }
  .fb-contact-reassurance { grid-template-columns: 1fr; }
}


/* v1.8 — liens dans les champs d'introduction */
.fb-rich-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* v1.9 — cartes projets cliquables, sans changement visuel */
a.fb-project-card {
  color: inherit;
  text-decoration: none;
  display: block;
}
a.fb-project-card:hover,
a.fb-project-card:focus-visible {
  color: inherit;
  text-decoration: none;
}
a.fb-project-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


/* v2.0 — cartes Outils avec liens globaux fiables */
.fb-project-card.fb-project-link {
  cursor: pointer;
}



/* v2.1 — cartes Outils cliquables */
a.fb-project-card.fb-project-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
a.fb-project-card.fb-project-link:hover,
a.fb-project-card.fb-project-link:focus-visible {
  color: inherit;
  text-decoration: none;
}
a.fb-project-card.fb-project-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
a.fb-project-card.fb-project-link > * {
  pointer-events: none;
}


/* v2.2 — page Support */
.fb-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.fb-support-step {
  border: 1px solid var(--fb-border, #e6e8eb);
  border-radius: 18px;
  padding: 1.5rem;
  background: #fff;
}
.fb-support-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f2f3f4;
  font-weight: 700;
  margin-bottom: 1rem;
}
.fb-support-content {
  margin-top: 2rem;
}
.fb-support-content:empty {
  display: none;
}
@media (max-width: 800px) {
  .fb-support-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.3 — navigation fiable */
.fb-site-header{position:relative;z-index:1000}
.fb-nav a,.fb-footer-nav a{position:relative;z-index:50;pointer-events:auto!important}


/* v2.8 — images optionnelles, dimensions par carte */
.fb-project-image {
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.15rem;
}

/* v2.9 — cartes Outils disponibles cliquables */
a.fb-tool-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.fb-tool-card:hover,
a.fb-tool-card:focus-visible {
  color: inherit;
  text-decoration: none;
}
a.fb-tool-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
a.fb-tool-card > * {
  pointer-events: none;
}
