/*
Theme Name: BorneScan V2 White/Green
Theme URI: https://example.com/
Author: OpenAI
Description: Thème WordPress BorneScan V2, calé sur la logique visuelle de CarbuScan avec une palette blanc/vert premium.
Version: 2.0.0
Text Domain: bornescan-v2-white-green
*/

:root{
  --cg-green-950:#0B3D2E;
  --cg-green-900:#12553f;
  --cg-green-700:#16A34A;
  --cg-green-600:#22C55E;
  --cg-green-soft:#DCFCE7;
  --cg-green-line:#d8eadf;
  --cg-text:#102319;
  --cg-muted:#5c6f64;
  --cg-bg:#ffffff;
  --cg-panel:#ffffff;
  --cg-panel-soft:#f7fbf8;
  --cg-line:#e2eee6;
  --cg-shadow:0 18px 46px rgba(8,70,44,.08);
  --cg-radius:26px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;color:var(--cg-text);background:linear-gradient(180deg,#ffffff 0,#f6faf7 260px,#ffffff 100%)}
a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}
.cg-container{width:min(1320px,calc(100% - 32px));margin:0 auto}
.cg-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--cg-line);box-shadow:0 10px 24px rgba(8,70,44,.05)}
.cg-header__inner{min-height:84px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px}
.cg-header__brand{justify-self:start;min-width:0}
.cg-header__nav{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.cg-header__nav a{color:var(--cg-green-900);font-weight:800;font-size:14px}
.cg-header__actions{justify-self:end}
.cg-header__action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border:0;border-radius:16px;background:linear-gradient(180deg,var(--cg-green-700) 0,var(--cg-green-600) 100%);color:#fff;font-weight:900;box-shadow:0 12px 22px rgba(22,163,74,.18);cursor:pointer}
.cg-brand,.custom-logo-link{display:inline-flex;align-items:center;gap:12px;color:var(--cg-green-950)}
.cg-brand__mark{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:linear-gradient(180deg,var(--cg-green-700) 0,var(--cg-green-600) 100%);font-size:25px;color:#fff;box-shadow:0 12px 22px rgba(22,163,74,.16)}
.cg-brand__text-wrap{display:flex;flex-direction:column}.cg-brand__text{font-size:33px;line-height:1;font-weight:950;letter-spacing:-.05em;text-transform:uppercase}.cg-brand__sub{margin-top:5px;color:#3b7a5a;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.custom-logo{max-height:62px;width:auto}
.cg-main{padding:18px 0 34px}.cg-main--simple{min-height:58vh}
.cg-home-title{display:flex;justify-content:center;margin:0 0 14px}.cg-home-title__inner{max-width:880px;text-align:center}
.cg-home-title h1{margin:0;color:var(--cg-green-950);font-size:clamp(28px,4vw,46px);line-height:1.05;letter-spacing:-.04em;font-weight:950}
.cg-home-title p{margin:10px 0 0;color:var(--cg-muted);font-weight:600}
.cg-page-card,.cg-home-section{background:linear-gradient(180deg,#fff 0,var(--cg-panel-soft) 100%);border:1px solid var(--cg-line);border-radius:var(--cg-radius);box-shadow:var(--cg-shadow)}
.cg-page-card{padding:24px}
.cg-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
.cg-home-section{padding:18px}.cg-home-section--full{margin-top:18px}
.cg-home-section__head{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.cg-home-section__eyebrow{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#f0fbf4;border:1px solid var(--cg-green-line);color:#18874b;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.cg-home-section__title{margin:0;font-size:20px;line-height:1.1;letter-spacing:-.03em;color:var(--cg-green-950)}
.cg-home-section__intro{margin:0 0 6px;color:var(--cg-muted);font-size:14px;font-weight:600}
.cg-footer{margin-top:20px;background:#0d2e22;color:#eafff1;border-top:1px solid rgba(255,255,255,.08)}
.cg-footer__inner{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 0}.cg-footer__col{display:flex;flex-direction:column;gap:4px}.cg-footer__col strong{font-size:18px}.cg-footer__links{display:flex;gap:14px;flex-wrap:wrap}.cg-footer__links a{color:#fff;font-weight:800}
.cg-home-title--compact{margin-bottom:10px}.cg-home-title--compact .cg-home-title__inner{max-width:760px}.cg-home-title--compact p{font-size:15px}
.cg-home-grid--compact{align-items:start;gap:16px;margin-top:18px}.cg-home-section--compact{padding:14px 16px}.cg-home-section--compact .cg-home-section__head{margin-bottom:10px}.cg-home-section--compact .cg-home-section__eyebrow{min-height:28px;padding:0 10px;font-size:11px}.cg-home-section--compact .cg-home-section__title{font-size:18px}

.cg-home .chargescan-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cg-home .chargescan-overview-card{padding:12px 12px;border-radius:16px;box-shadow:0 8px 20px rgba(8,70,44,.05)}
.cg-home .chargescan-overview-card span{display:block;font-size:12px;font-weight:800}
.cg-home .chargescan-overview-card strong{margin-top:4px;font-size:22px;line-height:1.05}
.cg-home .chargescan-city-grid{gap:10px}
.cg-home .chargescan-city-grid--departments{grid-template-columns:repeat(2,minmax(0,1fr))}
.cg-home .chargescan-city-chip{padding:12px 14px;border-radius:16px;box-shadow:0 8px 20px rgba(8,70,44,.05)}
.cg-home .chargescan-city-chip strong{margin-bottom:2px;font-size:14px;line-height:1.2}
.cg-home .chargescan-city-chip span{font-size:12px;line-height:1.25}
.cg-home .cg-home-section--full .chargescan-city-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.cg-home-grid--faq{grid-template-columns:minmax(0,1.02fr) minmax(280px,.98fr);align-items:start}
.cg-home-stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.cg-faq{display:flex;flex-direction:column;gap:10px}
.cg-faq-item{border:1px solid var(--cg-line);border-radius:18px;background:linear-gradient(180deg,#ffffff 0,#f8fcf9 100%);box-shadow:0 8px 20px rgba(8,70,44,.05);overflow:hidden}
.cg-faq-item summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:850;color:var(--cg-green-950);display:flex;align-items:center;justify-content:space-between;gap:14px}
.cg-faq-item summary::-webkit-details-marker{display:none}
.cg-faq-item summary::after{content:'+';display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#f0fbf4;border:1px solid var(--cg-green-line);color:#18874b;font-size:20px;font-weight:800;flex:0 0 28px}
.cg-faq-item[open] summary::after{content:'−'}
.cg-faq-item p{margin:0;padding:0 18px 16px;color:var(--cg-muted);line-height:1.6;font-weight:600}

.cg-home-section--note{position:relative;overflow:hidden}
.cg-home-section--note::before{content:'';position:absolute;inset:auto -70px -70px auto;width:200px;height:200px;border-radius:999px;background:radial-gradient(circle,rgba(34,197,94,.15) 0,rgba(34,197,94,0) 70%);pointer-events:none}
.bs-note-list{display:grid;gap:10px;margin-top:8px}
.bs-note-item{padding:14px 14px;border-radius:18px;background:#fff;border:1px solid var(--cg-line);box-shadow:0 8px 20px rgba(8,70,44,.05)}
.bs-note-item strong{display:block;color:var(--cg-green-950);font-size:14px}.bs-note-item span{display:block;margin-top:5px;color:var(--cg-muted);font-size:13px;line-height:1.55;font-weight:600}

.cg-home-section--posts{padding:14px 16px !important;margin-top:18px}
.cg-posts-grid--compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cg-post-card--compact{background:#fff;border:1px solid var(--cg-line);border-radius:14px;overflow:hidden;box-shadow:none}
.cg-post-card--compact .cg-post-card__thumb{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f2faf5}
.cg-post-card--compact .cg-post-card__thumb img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.cg-post-card__thumb-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:30px;color:#1c7c49}
.cg-post-card--compact .cg-post-card__content{padding:10px}
.cg-post-card--compact .cg-post-card__meta{font-size:11px;color:var(--cg-muted);margin-bottom:6px}
.cg-post-card--compact .cg-post-card__title{font-size:14px;line-height:1.35;margin:0 0 6px}
.cg-post-card--compact .cg-post-card__title a{color:var(--cg-green-950);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cg-post-card--compact .cg-post-card__excerpt{font-size:12px;line-height:1.45;color:var(--cg-muted);margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cg-post-card--compact .cg-post-card__link{font-size:12px;font-weight:700;color:#178647;text-decoration:none}

@media (max-width:1100px){.cg-home .cg-home-section--full .chargescan-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-home-grid--faq{grid-template-columns:1fr}.cg-posts-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-header__inner{grid-template-columns:1fr auto;grid-template-areas:'brand actions' 'nav nav'}.cg-header__brand{grid-area:brand}.cg-header__actions{grid-area:actions}.cg-header__nav{grid-area:nav;justify-content:flex-start;padding-bottom:10px}}
@media (max-width:720px){.cg-container{width:min(100% - 18px,1320px)}.cg-header__inner{grid-template-columns:1fr;grid-template-areas:'brand' 'actions' 'nav';padding:12px 0}.cg-header__actions,.cg-header__nav{justify-self:stretch}.cg-header__action{width:100%}.cg-header__nav{justify-content:flex-start;gap:12px}.cg-brand__text{font-size:28px}.cg-home-title h1{font-size:clamp(24px,8vw,34px)}.cg-footer__inner{align-items:flex-start}.cg-footer__links{gap:10px}.cg-home-grid--compact{gap:14px}.cg-home-section--compact{padding:12px}.cg-home .chargescan-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-home .chargescan-city-grid--departments,.cg-home .cg-home-section--full .chargescan-city-grid,.cg-posts-grid--compact{grid-template-columns:1fr}}
