/* ═══════════════════════════════════════════════════════════════
   AMBIANCE « GTA VI » — coucher de soleil sur Vice City
   Novembre 2026, pour la sortie du jeu.

   CE QUE FAIT CETTE FEUILLE, DANS L'ORDRE
     1. Jetons     — les --km-* de komogo.css repeints : nuit violette
                     pour les surfaces, rose néon à la place du rouge.
     2. Fond       — celui du site, que Divi écrit en dur en base.
     3. En-tête    — menu, logo, pied de page.
     4. Bandeaux   — le couchant et son pylône d'émission.
     5. Accents    — titres, boutons, détails.
     6. Portes     — accueil clair, connexion, inscription.
     7. Rattrapage — les rouges écrits en dur que les jetons ne
                     peuvent pas atteindre.
     8. Aperçu     — le rappel réservé aux administrateurs.

   TOUT est porté par html[data-ambiance="gta6"]. L'attribut vaut
   (0,1,1) ajouté à chaque sélecteur : assez pour passer devant les
   règles des pages sans !important, sauf là où la page en a déjà un.

   LE ROUGE DE MARQUE N'EST PAS RETOUCHÉ : il est REMPLACÉ, le temps
   de l'ambiance, par un rose qui lui est étranger. Retirer l'attribut
   rend #BF1A1A partout.

   Aucun visuel ni logo du jeu : une palette et un décor dessiné.
   ═══════════════════════════════════════════════════════════════ */

/* ══ 1. JETONS ═══════════════════════════════════════════════ */
html[data-ambiance="gta6"]{
    /* Les couleurs propres à l'ambiance. */
    --amb-rose:#ED1E79;
    --amb-rose-vif:#FF4FA0;
    --amb-orange:#FF9A3C;
    --amb-or:#FFC75A;
    --amb-violet:#8A3FD6;
    --amb-nuit:#0C0618;
    --amb-couchant:linear-gradient(90deg, #FFC75A 0%, #FF8A3D 26%, #FF3D81 62%, #A63DF0 100%);
    --amb-ciel:linear-gradient(180deg, #1A0B36 0%, #3D1260 34%, #8E1F6E 62%, #E0356F 82%, #FF8A3D 100%);

    /* L'accent : partout où le site dit « rouge ». Blanc dessus : 4,3:1. */
    --km-red:#ED1E79;
    --km-red-hover:#FF4FA0;
    --km-red-dim:rgba(237,30,121,.14);
    --km-red-border:rgba(237,30,121,.6);
    --km-orange:#FF9A3C;
    --km-blue:#2EC8E0;            /* le second camp tire vers le turquoise */
    --km-blue-soft:#7FE3F2;

    /* Les surfaces : même échelle, du plus sombre au plus clair,
       teintée de violet. */
    --km-bg:#0C0618;
    --km-bg2:#160C29;
    --km-bg3:#1E1236;
    --km-surface:#261843;
    --km-bg-page:#1C1033;
    --km-bg-site:#170C2B;
    --km-cartouche:#0C0618;
    --km-border:#2E1D4D;
    --km-border-soft:rgba(214,170,255,.08);
    --km-border-strong:#432B68;

    /* Le texte : blancs inchangés, gris réchauffés. Sur --km-bg2,
       --km-sub donne 8,6:1 et --km-muted 5,3:1. */
    --km-sub:#BDB0D2;
    --km-muted:#9A8BB5;
    --km-dim:#6E5F8C;
}

/* Deux pages redéfinissent --km-muted pour elles-mêmes (#9a9a9a). */
html[data-ambiance="gta6"] body{ --km-muted:#9A8BB5; --sc-muted:#9A8BB5; }

html[data-ambiance="gta6"] ::selection{ background:var(--amb-rose); color:#fff; }
html[data-ambiance="gta6"] ::-webkit-scrollbar-track{ background:#0C0618; }
html[data-ambiance="gta6"] ::-webkit-scrollbar-thumb{ background:#432B68; }

/* ══ 2. FOND DU SITE ═════════════════════════════════════════
   Divi l'écrit en base (et_divi[divi_integration_head]) avec
   !important, sur html, body et un body::before fixe. */
html[data-ambiance="gta6"],
html[data-ambiance="gta6"] body{ background-color:var(--km-bg-site) !important; }
html[data-ambiance="gta6"] body::before{ background-color:var(--km-bg-site); }

/* ══ 3. EN-TÊTE ET PIED ══════════════════════════════════════ */
html[data-ambiance="gta6"] #main-header,
html[data-ambiance="gta6"] #et-top-navigation,
html[data-ambiance="gta6"] #main-header .nav li ul,
html[data-ambiance="gta6"] #main-header .et_mobile_menu{ background-color:var(--amb-nuit); }

/* Le filet sous le menu : le couchant, d'un bord à l'autre. */
html[data-ambiance="gta6"] #main-header{ box-shadow:none; }
html[data-ambiance="gta6"] #main-header::after{
    content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
    background:var(--amb-couchant); pointer-events:none;
}

/* Le logo : le pictogramme passé au rose, le mot en Pricedown,
   blanc à contour noir comme les titres du jeu (logo.png — mêmes dimensions que
   le logo du site, rien ne bouge dans l'en-tête). Le mot a été tapé sur
   un poste de travail puis livré en image : la police elle-même n'est
   ni sur le serveur ni servie (licence Typodermic, usage poste seul). */
html[data-ambiance="gta6"] #logo,
html[data-ambiance="gta6"] .km-porte img[src*="logo_komogo"]{ content:url(logo.png); }
/* Sur la page de connexion, le logo est une image de fond. */
html[data-ambiance="gta6"] .km-porte #login h1 a{ background-image:url(logo.png) !important; }

html[data-ambiance="gta6"] #top-menu li.current-menu-item > a,
html[data-ambiance="gta6"] #top-menu li.current-menu-ancestor > a,
html[data-ambiance="gta6"] #top-menu li.current_page_item > a{ color:var(--amb-rose-vif) !important; }
html[data-ambiance="gta6"] #top-menu a:hover{ color:var(--amb-or) !important; opacity:1 !important; }
html[data-ambiance="gta6"] #main-header .nav li ul{ border-top-color:var(--amb-rose); }

html[data-ambiance="gta6"] #main-footer{ background-color:var(--amb-nuit); position:relative; }
html[data-ambiance="gta6"] #main-footer::before{
    content:""; position:absolute; left:0; right:0; top:0; height:2px;
    background:var(--amb-couchant);
}
html[data-ambiance="gta6"] #footer-bottom{ background-color:transparent; }

/* ══ 4. LES BANDEAUX DE TITRE ═══════════════════════════════
   bandeau.svg : un couchant sur la baie, la ville au loin, des palmiers
   et un PYLÔNE D'ÉMISSION devant le soleil — la radio, dans le décor
   du jeu. Dessin original (aucun visuel du jeu, aucun logo).

   Le fondu vers la gauche est DANS le dessin : il suit la hauteur du
   bandeau, quel qu'il soit, et laisse le titre au contraste d'avant. */
html[data-ambiance="gta6"] .sc-plate.sc-plate,
html[data-ambiance="gta6"] .ag-tete{
    position:relative;
    border-bottom:0;
    background:
        url(bandeau.svg) right 0 bottom / auto 100% no-repeat,
        #0C0618;
}
html[data-ambiance="gta6"] .sc-plate.sc-plate::after,
html[data-ambiance="gta6"] .ag-tete::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
    background:var(--amb-couchant); pointer-events:none;
}
/* La grille : bandeau bas, champ de filtre à droite — le décor
   se range à sa gauche. */
html[data-ambiance="gta6"] .ag-tete{
    background:
        linear-gradient(to left, #0C0618 0, #0C0618 322px, rgba(12,6,24,0) 400px),
        url(bandeau.svg) right 330px bottom / auto 100% no-repeat,
        #0C0618;
}
/* Live : le témoin « en direct » occupe le bord droit. */
@media (min-width: 761px){
    html[data-ambiance="gta6"] .sc-plate.sc-plate.lv-plate{
        background:
            linear-gradient(to left, #0C0618 0, #0C0618 112px, rgba(12,6,24,0) 190px),
            url(bandeau.svg) right 120px bottom / auto 100% no-repeat,
            #0C0618;
    }
}
/* Les cartouches .ks-name (pages d'administration, carte) : pas
   d'image, la place manque — le filet du bas passe au couchant. */
html[data-ambiance="gta6"] .ks-name{
    border-bottom-color:transparent;
    border-image:var(--amb-couchant) 1;
}
/* Téléphone : le titre occupe la largeur. Le décor passe en
   fond très voilé. */
@media (max-width: 760px){
    html[data-ambiance="gta6"] .sc-plate.sc-plate,
    html[data-ambiance="gta6"] .ag-tete{
        background:
            linear-gradient(90deg, rgba(12,6,24,.94) 0%, rgba(12,6,24,.84) 55%, rgba(12,6,24,.6) 100%),
            url(bandeau.svg) right -60px bottom / auto 100% no-repeat,
            #0C0618;
    }
}

/* ══ 5. ACCENTS ══════════════════════════════════════════════ */
/* Le mot d'accent des titres : du texte en dégradé. Le repli reste
   le rose du jeton si background-clip:text n'est pas pris en charge. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
    html[data-ambiance="gta6"] .sc-titre.sc-titre span,
    html[data-ambiance="gta6"] .ag-titre span,
    html[data-ambiance="gta6"] .ag-titre em{
        background:linear-gradient(90deg, #FFC75A 0%, #FF7A4D 45%, #FF3D81 100%);
        -webkit-background-clip:text; background-clip:text;
        -webkit-text-fill-color:transparent; color:transparent;
    }
}

/* Le bouton plein : un halo de néon, rien d'autre. */
html[data-ambiance="gta6"] .ks-btn-primary,
html[data-ambiance="gta6"] .sc-form button{
    box-shadow:0 0 0 1px rgba(255,79,160,.35), 0 6px 22px -6px rgba(237,30,121,.65);
}

@supports ((-webkit-background-clip:text) or (background-clip:text)){
    html[data-ambiance="gta6"] .ag-page h1 em,
    html[data-ambiance="gta6"] .ks-name h1 em{
        background:linear-gradient(90deg, #FFC75A 0%, #FF7A4D 45%, #FF3D81 100%);
        -webkit-background-clip:text; background-clip:text;
        -webkit-text-fill-color:transparent; color:transparent;
    }
}

/* Le pied de page : titres de colonne. */
html[data-ambiance="gta6"] #main-footer h4.title{ color:var(--amb-rose-vif); }

html[data-ambiance="gta6"] #footer-widgets .footer-widget li:before{ border-color:var(--amb-rose); }

/* ══ 6. LES PORTES ═══════════════════════════════════════════
   L'accueil est la seule page claire du site : elle le reste. Le
   papier se réchauffe d'un ton, le rouge passe au rose, et la ligne
   d'accent du titre prend le couchant — Vice City de jour. */
html[data-ambiance="gta6"] .kc{
    --rouge:#ED1E79;
    --papier:#FFF6F0;
    --filet:#EAD9D3;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
    html[data-ambiance="gta6"] .kc .kc-titre em{
        background:linear-gradient(90deg, #FF7A2E 0%, #ED1E79 52%, #8A3FD6 100%);
        -webkit-background-clip:text; background-clip:text;
        -webkit-text-fill-color:transparent; color:transparent;
    }
}
/* Connexion et inscription : la nuit, avec le rose sur l'accent. */
html[data-ambiance="gta6"] .km-porte{
    --kx-fond:#0C0618;
    --kx-carte:#160C29;
    --kx-filet:#2E1D4D;
    --kx-rouge:#ED1E79;
    --kx-sub:#BDB0D2;
    --kx-dim:#6E5F8C;
}
html[data-ambiance="gta6"]:has(body.km-porte){ background:#0C0618 !important; }

/* Les nappes de fond des portes : le rouge y est en dur. */
html[data-ambiance="gta6"] .km-nappes i,
html[data-ambiance="gta6"] .ag-nappes i{ filter:hue-rotate(-40deg) saturate(1.2); }

/* ══ 7. RATTRAPAGE ═══════════════════════════════════════════
   Ce que les jetons n'atteignent pas : des couleurs écrites en dur
   dans une page ou dans une feuille d'outil. Relevé à la sonde sur
   38 pages le 16/11/2026 ; chaque ligne nomme sa source. La vraie
   correction est de ramener ces valeurs aux jetons dans les pages —
   ce bloc fondra d'autant. */

/* Tableau de bord Storycast : #2a2a2a sur #main-content. */
html[data-ambiance="gta6"] body.page-template-page-storycast #main-content{ background-color:transparent; }
/* Streaming : #434343, hérité du réglage Divi de la page. */
html[data-ambiance="gta6"] #main-content.kst-page{ background-color:var(--km-bg-page); }
/* Écran d'attente des stats : #2a2a2a. */
html[data-ambiance="gta6"] #ks-attente{ background-color:var(--km-bg-site); }

/* Champs : rgba(38,38,38,.9) dans komogo.css §6, Contact, Mon compte,
   Profil ; #3a3a3a dans Xtrakt et Rec'n'Go. */
html[data-ambiance="gta6"] .ks-input,
html[data-ambiance="gta6"] .ks-select,
html[data-ambiance="gta6"] .kr-input,
html[data-ambiance="gta6"] #main-content input[type="text"],
html[data-ambiance="gta6"] #main-content input[type="email"],
html[data-ambiance="gta6"] #main-content input[type="password"],
html[data-ambiance="gta6"] #main-content input[type="search"],
html[data-ambiance="gta6"] #main-content input[type="number"],
html[data-ambiance="gta6"] #main-content select,
html[data-ambiance="gta6"] #main-content textarea{ background-color:rgba(38,24,67,.92) !important; }
html[data-ambiance="gta6"] .kc input,
html[data-ambiance="gta6"] .kc select,
html[data-ambiance="gta6"] .kc textarea{ background-color:#fff !important; }
html[data-ambiance="gta6"] body{
    --kx-fond-champ:#261843; --kx-fond-champ-actif:#33215A;
    --kr-fond-champ:#261843; --kr-fond-champ-actif:#33215A;
}
html[data-ambiance="gta6"] #kr-edit-overlay{ --kr-fond-champ:#261843; --kr-fond-champ-actif:#33215A; }

/* Jauge de stockage (Xtrakt, Rec'n'Go) : #bf1a1a. */
html[data-ambiance="gta6"] .kqc-bar-fill{ background-color:var(--km-red); }
html[data-ambiance="gta6"] .kqc-bar-fill.full{ background-color:var(--amb-orange); }

/* Carte : les grappes, rouges en dur dans page-map.php. */
html[data-ambiance="gta6"] .scc-groupe span{ background-color:var(--km-red); border-color:rgba(255,255,255,.28); }

html[data-ambiance="gta6"] .mobile_menu_bar:before{ color:var(--amb-rose-vif) !important; }
html[data-ambiance="gta6"] .et_mobile_menu{ border-top-color:var(--amb-rose) !important; }

/* ══ 8. APERÇU ═══════════════════════════════════════════════ */
html[data-ambiance="gta6"] .km-amb-decor{ display:none; }
.km-amb-apercu{
    position:fixed; left:14px; bottom:14px; z-index:2147483000;
    padding:8px 12px 7px; border-radius:4px;
    background:rgba(12,6,24,.92); border:1px solid #432B68;
    color:#fff; font:400 11px/1 var(--km-display, sans-serif); letter-spacing:.08em; text-transform:uppercase;
}
.km-amb-apercu a{ margin-left:10px; color:#FFC75A; text-decoration:none; }
.km-amb-apercu a:hover{ color:#fff; }

/* ══ 9. EXTRAS ═══════════════════════════════════════════════
   Les couleurs de l'écran de chargement et de la roue des radios
   (ambiances/extras/) : rose néon, couchant, nuit violette. */
html[data-ambiance="gta6"]{
    --ext-a:#ED1E79; --ext-a-rgb:237,30,121;
    --ext-vif:#FF4FA0; --ext-or:#FFC75A; --ext-or-rgb:255,199,90;
    --ext-nuit:#0C0618; --ext-nuit-rgb:12,6,24; --ext-bord:#432B68;
}
