/*
Theme Name: Carbugo V35
Theme URI: https://example.com/
Author: OpenAI
Description: Thème WordPress Carbugo V35, home compacte avec FAQ, alerte prix et responsive.
Version: 35.0.0
Text Domain: carbugo-v35
*/

:root{
  --cg-blue-950:#061742;
  --cg-blue-900:#0a2c73;
  --cg-blue-700:#1676ff;
  --cg-cyan:#11ccff;
  --cg-text:#13263f;
  --cg-muted:#6b84a3;
  --cg-bg:#edf6ff;
  --cg-panel:#ffffff;
  --cg-line:#d6e4f4;
  --cg-shadow:0 18px 46px rgba(7,37,94,.10);
  --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,#dcedff 0,#eef6ff 120px,#eef6ff 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:linear-gradient(180deg,#071c56 0,#0a2c73 100%);box-shadow:0 14px 34px rgba(4,22,62,.20)}
.cg-header__inner{min-height:86px;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:#ddecff;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:48px;padding:0 18px;border:0;border-radius:16px;background:linear-gradient(180deg,#1976ff 0,#09beff 100%);color:#fff;font-weight:900;box-shadow:0 14px 28px rgba(21,104,255,.22);cursor:pointer}
.cg-brand,.custom-logo-link{display:inline-flex;align-items:center;gap:12px;color:#fff}
.cg-brand__mark{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:linear-gradient(180deg,#1a7bff 0,#08c5ff 100%);font-size:26px;box-shadow:0 14px 28px rgba(10,58,146,.24)}
.cg-brand__text-wrap{display:flex;flex-direction:column}
.cg-brand__text{font-size:34px;line-height:1;font-weight:950;letter-spacing:-.05em;text-transform:uppercase}
.cg-brand__sub{margin-top:5px;color:#8ee8ff;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:#082868;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,#f7fbff 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:#eef7ff;border:1px solid #d2e2f6;color:#0f66d2;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:#082768}
.cg-footer{margin-top:20px;background:linear-gradient(180deg,#071d58 0,#0b2f88 100%);color:#dfefff;border-top:1px solid rgba(17,207,255,.34)}
.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}
@media (max-width: 980px){.cg-home-grid{grid-template-columns: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-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}

/* Home compact blocks */
.cg-home .carbugo-avg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cg-home .carbugo-avg-card{padding:12px 12px;border-radius:16px;box-shadow:0 8px 20px rgba(8,33,92,.06)}
.cg-home .carbugo-avg-card span{display:block;font-size:12px;font-weight:800}
.cg-home .carbugo-avg-card strong{margin-top:4px;font-size:22px;line-height:1.05}

.cg-home .carbugo-city-chip-grid{gap:10px}
.cg-home .carbugo-city-chip-grid--departments{grid-template-columns:repeat(2,minmax(0,1fr))}
.cg-home .carbugo-city-chip{padding:12px 14px;border-radius:16px;box-shadow:0 8px 20px rgba(8,33,92,.06)}
.cg-home .carbugo-city-chip strong{margin-bottom:2px;font-size:14px;line-height:1.2}
.cg-home .carbugo-city-chip span{font-size:12px;line-height:1.25}
.cg-home .cg-home-section--full .carbugo-city-chip-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

@media (max-width: 1100px){
  .cg-home .cg-home-section--full .carbugo-city-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .cg-home-grid--compact{gap:14px}
  .cg-home-section--compact{padding:12px}
  .cg-home .carbugo-avg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cg-home .carbugo-city-chip-grid--departments,
  .cg-home .cg-home-section--full .carbugo-city-chip-grid{grid-template-columns:1fr}
}


/* V34 FAQ layout */
.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,#f7fbff 100%);box-shadow:0 8px 20px rgba(8,33,92,.06);overflow:hidden}
.cg-faq-item summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:850;color:#082768;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:#eef7ff;border:1px solid #d2e2f6;color:#0f66d2;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__intro{margin:0 0 6px;color:var(--cg-muted);font-size:14px;font-weight:600}
@media (max-width: 980px){
  .cg-home-grid--faq{grid-template-columns:1fr}
}


/* V35 alert block */
.cg-home-section--alert{position:relative;overflow:hidden}
.cg-home-section--alert::before{content:'';position:absolute;inset:auto -80px -80px auto;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(17,204,255,.16) 0,rgba(17,204,255,0) 70%);pointer-events:none}
.cg-alert-box{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;align-items:start}
.cg-alert-box__panel{padding:16px;border:1px solid var(--cg-line);border-radius:20px;background:linear-gradient(180deg,#fff 0,#f7fbff 100%);box-shadow:0 8px 20px rgba(8,33,92,.06)}
.cg-alert-box__title{margin:0 0 8px;font-size:18px;line-height:1.15;color:#082768;letter-spacing:-.03em}
.cg-alert-box__text{margin:0;color:var(--cg-muted);font-size:14px;line-height:1.65;font-weight:600}
.cg-alert-box__list{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.cg-alert-box__list li{display:flex;align-items:flex-start;gap:10px;color:#21476f;font-size:14px;font-weight:700}
.cg-alert-box__dot{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#eef7ff;border:1px solid #d2e2f6;color:#0f66d2;flex:0 0 22px;margin-top:1px}
.cg-alert-form{display:grid;gap:10px}
.cg-alert-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cg-alert-form label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#0b3677;text-transform:uppercase;letter-spacing:.05em}
.cg-alert-form input,.cg-alert-form select{width:100%;min-height:48px;padding:0 14px;border:1px solid #cfe0f3;border-radius:15px;background:#fff;color:#143150;font-size:15px;font-weight:700}
.cg-alert-form__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cg-alert-form__submit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:0;border-radius:16px;background:linear-gradient(180deg,#1976ff 0,#09beff 100%);color:#fff;font-size:15px;font-weight:900;box-shadow:0 14px 28px rgba(21,104,255,.18);cursor:pointer}
.cg-alert-form__hint{margin:0;color:var(--cg-muted);font-size:12px;font-weight:700}
.cg-alert-notice{padding:12px 14px;border-radius:14px;font-size:14px;font-weight:800}
.cg-alert-notice--success{background:#ebfff2;border:1px solid #bce8c8;color:#116437}
.cg-alert-notice--error{background:#fff0f0;border:1px solid #f0c0c0;color:#8f1f1f}
@media (max-width: 980px){.cg-alert-box{grid-template-columns:1fr}}
@media (max-width: 720px){.cg-alert-form__grid{grid-template-columns:1fr}.cg-alert-form__actions{flex-direction:column;align-items:stretch}.cg-alert-form__submit{width:100%}}

    scroll-behavior: smooth;
}

.cg-home-section--alert {
    scroll-margin-top: 110px;
}
.cg-home-section--posts {
    margin-top: 28px;
}

.cg-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cg-post-card {
    background: #fff;
    border: 1px solid #e6eefb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 60, 120, 0.06);
}

.cg-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #eef4ff;
    overflow: hidden;
}

.cg-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cg-post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, #edf4ff, #dce9ff);
}

.cg-post-card__content {
    padding: 16px;
}

.cg-post-card__meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.cg-post-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.cg-post-card__title a {
    color: #0f172a;
    text-decoration: none;
}

.cg-post-card__title a:hover {
    color: #1d4ed8;
}

.cg-post-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
}

.cg-post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 980px) {
    .cg-posts-grid {
        grid-template-columns: 1fr;
    }
}@media (max-width: 768px) {
    .cg-header__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cg-header__brand {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 10px;
        text-align: center;
    }

    .cg-header__brand img,
    .cg-header__brand .custom-logo,
    .cg-header__brand .custom-logo-link {
        margin: 0 auto;
        display: block;
    }

    .cg-header__actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}@media (max-width: 768px) {
    .cg-header__brand {
        margin: 0 auto 6px;
    }

    .cg-header__inner {
        gap: 6px;
    }

    .cg-header__actions {
        margin-top: 0;
    }

    .cg-header__actions .cg-alert-form__submit,
    .cg-header__actions .cg-btn,
    .cg-header__actions .cg-header__locate {
        margin-top: 0;
    }
}