/* ==========================================================================
   Chrome Cyber Jay 2.0 — barre d'état, héros, grilles, pied de page.

   Même système que mega-menu.css : classes préfixées, spécificité au-dessus
   des règles historiques, et neutralisation du CSS additionnel du Customizer
   (section 6) qui force color et font-size en !important dans le header.
   ========================================================================== */

.cjc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.cjc-status,
.cjc-hero,
.cjc-tiles,
.cjc-footer {
    --cjc-violet: #8f15ff;
    --cjc-violet-deep: #7211cc;
    --cjc-violet-wash: #f4eaff;
    --cjc-ink: #0e0e13;
    --cjc-ink-2: #3a3646;
    --cjc-ink-3: #7d7789;
    --cjc-line: #e6e3ee;
    --cjc-paper: #fff;
    --cjc-wash: #f6f5f9;
    --cjc-green: #0d6b52;
    --cjc-dark: #14121c;
    --cjc-dark-2: #1c1829;
    --cjc-dark-line: #2b2739;
    --cjc-dark-ink: #e9e6f2;
    --cjc-dark-ink-2: #c9c4d8;
    --cjc-dark-ink-3: #948da9;
}
.cjc-i { flex: none; vertical-align: middle; }

/* ==========================================================================
   1. Barre d'état — 34 px, contre 301 px pour le bandeau précédent
   ========================================================================== */

header #cj-statusbar.cjc-status {
    background: var(--cjc-violet-wash);
    border-bottom: 1px solid var(--cjc-line);
    font-family: inherit;
}

header .cjc-status-in {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 9px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--cjc-violet-deep);
}

header .cjc-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}
header .cjc-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
header .cjc-state.is-open   { color: var(--cjc-green); }
header .cjc-state.is-open .cjc-dot   { background: var(--cjc-green); }
header .cjc-state.is-closed { color: var(--cjc-ink-2); }
header .cjc-state.is-closed .cjc-dot { background: var(--cjc-ink-3); }
header .cjc-when { font-weight: 500; color: var(--cjc-ink-2); }

header .cjc-sep { color: var(--cjc-ink-3); }
header .cjc-claim { color: var(--cjc-ink-2); font-weight: 500; }

header .cjc-status-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
header .cjc-status-right a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cjc-violet-deep);
    font-weight: 600;
    text-decoration: none;
}
header .cjc-status-right a:hover { text-decoration: underline; }
header .cjc-status-right sup { font-size: .7em; }

/* Le header collant se limite à la navigation : la barre s'efface. */
header.fixed-header #cj-statusbar.cjc-status { display: none; }

@media (max-width: 991px) {
    header .cjc-status-in {
        min-height: 34px;
        padding: 0 14px;
        font-size: 11.5px;
        gap: 3px 7px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    header .cjc-claim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Sur mobile la barre garde l'essentiel : l'état et le téléphone. */
    header .cjc-status-right .cjc-shoplink { display: none; }
    header .cjc-status-right { gap: 0; flex: none; }
}

@media (max-width: 420px) {
    header .cjc-claim,
    header .cjc-sep { display: none; }
}

/* ==========================================================================
   2. Héros
   ========================================================================== */

.cjc-hero { background: var(--cjc-paper); }

.cjc-hero-in {
    max-width: 760px;
    padding: 34px 0 26px;
}

.cjc-hero .cjc-hero-title {
    margin: 0;
    font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.75rem);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--cjc-ink);
    text-wrap: balance;
}

.cjc-hero .cjc-hero-sub {
    margin: 10px 0 0;
    font-size: clamp(.92rem, .86rem + .25vw, 1.06rem);
    line-height: 1.5;
    color: var(--cjc-ink-2);
    max-width: 46ch;
}

.cjc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}
.cjc-hero .cjc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .16s, border-color .16s;
}
.cjc-hero .cjc-btn-pri { background: var(--cjc-violet); color: #fff; }
.cjc-hero .cjc-btn-pri:hover { background: var(--cjc-violet-deep); }
.cjc-hero .cjc-btn-sec {
    background: var(--cjc-paper);
    border: 1px solid var(--cjc-line);
    color: var(--cjc-ink);
}
.cjc-hero .cjc-btn-sec:hover { border-color: var(--cjc-violet); }

.cjc-hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    max-width: 460px;
}
@media (min-width: 560px) {
    .cjc-hero-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; }
}
.cjc-hero-trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    border: 1px solid var(--cjc-line);
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--cjc-ink-2);
}
.cjc-hero-trust .cjc-i { color: var(--cjc-violet); }

.cjc-hero-shot {
    margin-top: 4px;
    background: linear-gradient(100deg, #ede7fb, #f7f4fd 55%, #efe9fc);
    overflow: hidden;
}
.cjc-hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .cjc-hero-in { padding: 52px 0 34px; }
    .cjc-hero-trust { margin-top: 22px; }
}

/* ==========================================================================
   3. Grilles de diagnostic
   ========================================================================== */

.cjc-tiles { padding: 30px 0; background: var(--cjc-paper); }
.cjc-tiles + .cjc-tiles { padding-top: 0; }

.cjc-tiles-head { margin-bottom: 16px; }
.cjc-tiles .cjc-tiles-head h2 {
    margin: 0;
    font-size: clamp(1.12rem, 1rem + .5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--cjc-ink);
}
.cjc-tiles .cjc-tiles-head p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--cjc-ink-3);
}

.cjc-tiles-grid {
    display: grid;
    /* 2 colonnes sur mobile, comme la grille d'origine en col-6 : les
       libelles (« Mon Mac ne demarre plus ») ne tiennent pas a 3. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
@media (min-width: 768px)  { .cjc-tiles-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } }

.cjc-tiles .cjc-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 14px 8px;
    border: 1px solid var(--cjc-line);
    border-radius: 12px;
    background: var(--cjc-paper);
    color: var(--cjc-ink);
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    transition: border-color .16s, background .16s, transform .16s;
}
.cjc-tiles .cjc-tile:hover {
    border-color: var(--cjc-violet);
    background: var(--cjc-violet-wash);
}
.cjc-tiles .cjc-tile .cjc-i { color: var(--cjc-violet); }
.cjc-tiles .cjc-tile span { font-size: 12.5px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    .cjc-tiles .cjc-tile,
    .cjc-hero .cjc-btn { transition: none; }
}

/* ==========================================================================
   4. Pied de page
   ========================================================================== */

.cjc-footer {
    background: var(--cjc-dark);
    color: var(--cjc-dark-ink);
    padding: 36px 0 0;
    font-family: inherit;
}

.cjc-foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--cjc-dark-line);
}
@media (min-width: 700px)  { .cjc-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; } }
@media (min-width: 1000px) { .cjc-foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; } }

.cjc-footer .cjc-foot-brand img {
    display: block;
    width: 132px;
    height: auto;
    margin-bottom: 12px;
    /* Le logo du thème est en texte sombre : sur fond foncé on le passe en
       blanc plat. Un vrai logo blanc fourni via le filtre cyberjay_footer_logo
       rendra ce filtre inutile — retirer la ligne ci-dessous le cas échéant. */
    filter: brightness(0) invert(1);
}
.cjc-footer .cjc-foot-brand p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cjc-dark-ink-3);
    max-width: 34ch;
}
.cjc-foot-social { display: flex; gap: 8px; margin-top: 15px; }
.cjc-footer .cjc-foot-social a {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--cjc-dark-2);
    display: grid; place-items: center;
    color: var(--cjc-dark-ink-2);
    text-decoration: none;
    transition: background .16s, color .16s;
}
.cjc-footer .cjc-foot-social a:hover { background: var(--cjc-violet); color: #fff; }

.cjc-footer .cjc-foot-col h2 {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--cjc-dark-ink-3);
}
.cjc-footer .cjc-foot-col ul { list-style: none; margin: 0; padding: 0; }
.cjc-footer .cjc-foot-col li { margin-bottom: 8px; }
.cjc-footer .cjc-foot-col li a {
    font-size: 13px;
    color: var(--cjc-dark-ink-2);
    text-decoration: none;
    transition: color .16s;
}
.cjc-footer .cjc-foot-col li a:hover { color: #fff; }

.cjc-footer .cjc-foot-shop {
    display: block;
    padding: 11px 13px;
    margin-bottom: 8px;
    background: var(--cjc-dark-2);
    border: 1px solid var(--cjc-dark-line);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .16s;
}
.cjc-footer .cjc-foot-shop:hover { border-color: var(--cjc-violet); }
.cjc-footer .cjc-foot-shop .a {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cjc-dark-ink);
    line-height: 1.3;
}
.cjc-footer .cjc-foot-shop .h {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--cjc-dark-ink-3);
    line-height: 1.3;
}
.cjc-footer .cjc-foot-shop .h b.is-open   { color: #5fd3b0; font-weight: 600; }
.cjc-footer .cjc-foot-shop .h b.is-closed { color: var(--cjc-dark-ink-2); font-weight: 600; }

.cjc-footer .cjc-foot-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cjc-dark-ink);
    text-decoration: none;
}
.cjc-footer .cjc-foot-tel .cjc-i { color: #b98cff; }

.cjc-foot-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    padding: 16px 0 4px;
    font-size: 11.5px;
    color: var(--cjc-dark-ink-3);
}
.cjc-foot-legal .s { opacity: .45; }
.cjc-foot-legal-links {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
}
.cjc-footer .cjc-foot-legal-links a {
    color: var(--cjc-dark-ink-2);
    text-decoration: none;
}
.cjc-footer .cjc-foot-legal-links a:hover { color: #fff; text-decoration: underline; }

.cjc-footer .cjc-foot-marques {
    margin: 0;
    padding: 0 0 22px;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--cjc-dark-ink-3);
    opacity: .8;
}

@media (max-width: 699px) {
    .cjc-foot-legal-links { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   5. L'ancien héros ne doit plus s'appliquer

   #home-banner imposait height:570px et un fond en background-image ;
   la règle mobile basculait sur la vignette 300x89 étirée en cover.
   ========================================================================== */

#home-banner { display: none !important; }

/* ==========================================================================
   6. Neutralisation du CSS additionnel du Customizer

   « header nav ul li a » force color:#000 et font-size:1rem en !important.
   La barre d'état vit dans <header> : on protège ses liens.
   ========================================================================== */

header #cj-statusbar a::before,
header #cj-statusbar a:hover::before { content: none !important; display: none !important; }

header #cj-statusbar a,
header #cj-statusbar a:hover {
    color: var(--cjc-violet-deep) !important;
    font-size: inherit !important;
}
