/*
Theme Name: FuelInsight
Description: Un thème vitrine sombre et responsive pour présenter FuelInsight.
Version: 1.2.19
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fuelinsight
*/

:root {
  color-scheme: dark;
  --background: #0f172a;
  --surface: #1e293b;
  --teal: #2dd4bf;
  --emerald: #10b981;
  --amber: #f59e0b;
  --heading: #e2e8f0;
  --body: #94a3b8;
  --line: rgba(148, 163, 184, .16);
  --width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--body); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #99f6e4; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; letter-spacing: -.035em; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 12px; top: -100px; padding: 10px 16px; background: var(--teal); color: var(--background); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(15, 23, 42, .88); }
@supports (backdrop-filter: blur(16px)) { .site-header { backdrop-filter: blur(16px); } }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--heading); text-decoration: none; font-size: 1.1rem; font-weight: 750; letter-spacing: -.04em; }
.brand:hover { color: var(--heading); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(45, 212, 191, .32); border-radius: 11px; background: rgba(45, 212, 191, .1); color: var(--teal); }
.brand-mark svg { width: 22px; height: 22px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; max-width: 190px; max-height: 48px; width: auto; }
.main-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--body); font-size: .88rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--teal); }
.main-nav .carnet-nav-link { display: inline-flex; align-items: center; gap: 8px; }
.carnet-nav-link svg { flex: 0 0 19px; width: 19px; height: 19px; }
.main-nav .sub-menu { display: block; padding-left: 12px; }
.main-nav .sub-menu a { font-size: .82rem; }
.header-cta { flex-shrink: 0; }
.header-login { flex-shrink: 0; }
.account-menu { position: relative; flex-shrink: 0; max-width: 100%; }
.account-menu summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 14px; border: 1px solid rgba(148, 163, 184, .3); border-radius: 9px; color: var(--heading); background: rgba(30, 41, 59, .5); font-size: .88rem; font-weight: 700; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--teal); }
.account-menu summary .account-menu-caret { flex: 0 0 16px; width: 16px; height: 16px; transition: transform .2s; }
.account-menu[open] summary .account-menu-caret { transform: rotate(180deg); }
.account-menu-avatar { display: none; }
.account-menu-panel { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; min-width: 100%; padding: 6px; border: 1px solid rgba(148, 163, 184, .3); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 35px rgba(0, 0, 0, .3); }
.account-menu-panel a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--heading); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.account-menu-panel a:hover, .account-menu-panel a:focus-visible { background: rgba(45, 212, 191, .1); color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 10px; font-size: .9rem; font-weight: 750; line-height: 1.3; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: #072b2a; box-shadow: 0 8px 28px rgba(45, 212, 191, .13); }
.button-primary:hover { background: #5eead4; color: #072b2a; }
.button-secondary { border-color: rgba(148, 163, 184, .3); background: rgba(30, 41, 59, .5); color: var(--heading); }
.button-secondary:hover { border-color: var(--teal); color: var(--heading); }
.button-small { min-height: 40px; padding: 9px 15px; }
.hero { position: relative; overflow: hidden; padding: 100px 0 96px; }
.hero::before { content: ""; pointer-events: none; position: absolute; width: 630px; height: 630px; right: -200px; top: -170px; background: radial-gradient(circle, rgba(45, 212, 191, .12), transparent 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(45, 212, 191, .6); }
.hero h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(2.7rem, 5vw, 4.55rem); line-height: 1.05; }
.hero h1 span { color: var(--teal); }
.hero-description { max-width: 540px; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 22px 0 0; color: var(--body); font-size: .8rem; }
.dashboard { overflow: hidden; border: 1px solid rgba(148, 163, 184, .22); border-radius: 20px; background: #162235; box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.dashboard-label { color: var(--heading); font-size: .82rem; font-weight: 750; }
.demo-badge { padding: 4px 8px; border: 1px solid rgba(45, 212, 191, .25); border-radius: 6px; color: var(--teal); background: rgba(45, 212, 191, .08); font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-body { padding: 20px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.dashboard-heading strong { color: var(--heading); font-size: .85rem; }
.dashboard-heading span { font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric, .chart-card { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.metric { min-width: 0; padding: 13px 12px; }
.metric-label { display: block; font-size: .65rem; }
.metric-value { display: block; margin-top: 4px; color: var(--heading); font-size: clamp(.85rem, 1.5vw, 1.15rem); font-weight: 750; white-space: nowrap; }
.metric-hint { display: block; margin-top: 4px; color: var(--teal); font-size: .62rem; }
.metric-hint.emerald { color: #34d399; }
.chart-card { margin-top: 10px; padding: 16px; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.chart-head strong { color: var(--heading); font-size: .75rem; }
.chart-legend { display: flex; gap: 12px; font-size: .6rem; }
.chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--emerald); }
.chart-legend span + span::before { background: var(--amber); }
.chart { display: block; width: 100%; height: auto; margin: 14px 0 3px; }
.chart-months { display: flex; justify-content: space-between; padding-inline: 5px; font-size: .6rem; }
.dashboard-disclaimer { margin: 12px 2px 0; font-size: .68rem; }
.section { padding: 96px 0; }
.section-bordered { border-top: 1px solid var(--line); }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading h2, .closing h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading p, .closing p { font-size: 1rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border-radius: 11px; background: rgba(45, 212, 191, .1); color: var(--teal); }
.feature-icon svg { width: 21px; height: 21px; }
.feature:nth-child(2) .feature-icon { background: rgba(16, 185, 129, .1); color: #34d399; }
.feature:nth-child(3) .feature-icon { background: rgba(245, 158, 11, .1); color: var(--amber); }
.feature h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature p { margin-bottom: 0; font-size: .9rem; }
.features-note { max-width: 90ch; margin: 20px 0 0; font-size: .8rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-number { display: inline-block; margin-bottom: 14px; color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin-bottom: 10px; font-size: 1.08rem; }
.step p { margin-bottom: 0; font-size: .9rem; }
.closing { position: relative; overflow: hidden; padding: 60px; border: 1px solid rgba(45, 212, 191, .2); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(45, 212, 191, .13), transparent 55%), var(--surface); }
.closing p { max-width: 620px; }
.closing .button { margin-top: 8px; }
.pricing-page .container { max-width: 1000px; }
.pricing-heading { max-width: 720px; margin-bottom: 30px; }
.pricing-heading h1 { margin-bottom: 16px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.pricing-heading p { max-width: 620px; font-size: 1.05rem; }
.pricing-notice { margin: 0 0 24px; padding: 16px 20px; border: 1px solid rgba(45, 212, 191, .25); border-radius: 12px; background: rgba(45, 212, 191, .06); color: var(--heading); font-size: .9rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pricing-card { display: flex; flex-direction: column; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pricing-card-featured { border-color: rgba(45, 212, 191, .45); background: linear-gradient(145deg, rgba(45, 212, 191, .08), transparent 55%), var(--surface); }
.pricing-kicker { margin-bottom: 8px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pricing-card h2 { margin: 0 0 10px; font-size: 1.7rem; }
.pricing-description { min-height: 3.3em; font-size: .9rem; }
.pricing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 8px 0 0; }
.pricing-price strong { color: var(--heading); font-size: 2.5rem; line-height: 1.15; }
.pricing-price span, .pricing-annual { font-size: .9rem; }
.pricing-annual { margin: 8px 0 0; }
.pricing-features { flex: 1; list-style: none; padding: 0; margin: 28px 0; }
.pricing-features li { position: relative; padding-left: 24px; margin: 12px 0; color: var(--heading); font-size: .9rem; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.pricing-availability { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--body); font-size: .85rem; font-weight: 650; }
.pricing-register { margin-top: 16px; }
.pricing-after { margin-top: 24px; }
.pricing-after p { max-width: 80ch; font-size: .85rem; }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { margin: 0; font-size: .8rem; }
.footer-credit { display: grid; gap: 4px; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: var(--body); font-size: .8rem; }
.content-area { min-height: 50vh; padding: 70px 0; }
.content-area article, .content-area .page-header { max-width: 800px; margin: 0 auto 48px; }
.content-area h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.entry-content { overflow-wrap: anywhere; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.post-meta { font-size: .85rem; }
.pagination { max-width: 800px; margin: auto; }
.fuelinsight-carnet-page .content-area { padding-top: 24px; }
.fuelinsight-carnet-page .fi-carnet,
.fuelinsight-carnet-page .fi-carnet-loader { margin-top: 0; }
.fuelinsight-carnet-page .fi-section:first-child { margin-top: 0; }
@media (min-width: 1200px) {
  .fuelinsight-carnet-page .header-inner.container,
  .fuelinsight-carnet-page .content-area.container { width: min(1320px, calc(100% - 2 * clamp(24px, 3vw, 64px))); }
  .fuelinsight-carnet-page .content-area article,
  .fuelinsight-carnet-page .fi-carnet,
  .fuelinsight-carnet-page .fi-carnet-loader { max-width: none; }
  .fuelinsight-carnet-page .fi-form-card { max-width: 860px; }
  .fuelinsight-carnet-page .fi-dashboard-hint { max-width: 100ch; }
  .fuelinsight-carnet-page .fi-month-chart,
  .fuelinsight-carnet-page .fi-price-chart-wrap { max-width: 1200px; }
  .fuelinsight-carnet-page .fi-month-bars { width: 100%; max-width: 64px; margin-inline: auto; }
  .fuelinsight-carnet-page .fi-price-chart { max-height: 360px; }
}
@media (min-width: 1440px) {
  .fuelinsight-carnet-page .fi-dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fuelinsight-carnet-page .fi-dashboard-overview-grid,
  .fuelinsight-carnet-page .fi-dashboard-charts-grid,
  .fuelinsight-carnet-page .fi-dashboard-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .fuelinsight-carnet-page .fi-dashboard-overview-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .fuelinsight-carnet-page .fi-dashboard-panel { min-width: 0; }
  .fuelinsight-carnet-page .fi-dashboard-overview-grid > :only-child { grid-column: 1 / -1; }
  .fuelinsight-carnet-page .fi-dashboard-panel .fi-dashboard-fuels { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .fuelinsight-carnet-page .fi-dashboard-panel .fi-dashboard-card { width: 100%; max-width: 280px; }
  .fuelinsight-carnet-page .fi-dashboard-charts-grid h3,
  .fuelinsight-carnet-page .fi-dashboard-charts-grid h4,
  .fuelinsight-carnet-page .fi-dashboard-details-grid h3,
  .fuelinsight-carnet-page .fi-dashboard-details-grid h4 { margin: 32px 0 12px; }
}
@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; padding: 18px 0; gap: 15px 24px; }
}
@media (max-width: 900px) {
  .hero { padding: 76px 0; }
  .hero-grid { gap: 36px; }
  .header-cta { display: none; }
  .features { gap: 12px; }
  .feature { padding: 20px; }
}
@media (max-width: 700px) {
  .container { width: min(var(--width), calc(100% - 36px)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; gap: 15px; }
  .main-nav ul { gap: 9px 18px; }
  .account-menu-panel { right: auto; left: 0; }
  .header-inner--carnet { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .header-inner--carnet .brand { gap: 0; }
  .header-inner--carnet .custom-logo-link { flex: 0 0 auto; }
  .header-inner--carnet .custom-logo { max-width: 44px; max-height: 44px; }
  .header-inner--carnet .main-nav { flex: 1 1 auto; min-width: 0; }
  .header-inner--carnet .main-nav ul { flex-wrap: nowrap; gap: 0; }
  .header-inner--carnet .main-nav li { flex: 1 1 0; min-width: 0; }
  .header-inner--carnet .carnet-nav-link { display: flex; justify-content: center; min-height: 44px; padding: 8px; border-radius: 9px; }
  .header-inner--carnet .carnet-nav-link[aria-current="page"] { background: rgba(45, 212, 191, .1); }
  .header-inner--carnet .account-menu-panel { right: 0; left: auto; }
  .header-inner--carnet .brand-name, .carnet-nav-label, .account-menu-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .account-menu summary { justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; }
  .account-menu-avatar { display: block; width: 22px; height: 22px; }
  .account-menu summary .account-menu-caret { display: none; }
  .hero { padding: 65px 0 72px; }
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .metric-value { font-size: 1rem; }
  .section { padding: 72px 0; }
  .feature { min-height: 0; }
  .feature-icon { margin-bottom: 18px; }
  .closing { padding: 32px 25px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 24px; }
  .pricing-description { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .account-menu summary .account-menu-caret { transition: none; }
  .button:hover { transform: none; }
}
