/* ===========================================================================
   G&G Hosting Service — composants éditoriaux (fil et article)
   ---------------------------------------------------------------------------
   Chargée APRÈS gg-sombre.css, qui porte les polices, les jetons, le fond de
   page et le chrome. Ce fichier ne contient que ce qui est propre au fil
   d'actualité et à l'article.
   =========================================================================== */

/* Contenu à fleur de colonne : les cartes du parent portent un padding
   horizontal que le traitement éditorial n'utilise pas. Déplacé ici depuis
   gg-sombre.css — dans l'espace client, le formulaire de réponse à un ticket
   a au contraire besoin de son padding. */
body .card-body.extra-padding,
body .card-body {
    padding-left: 0;
    padding-right: 0;
}

/* ===========================================================================
   Typographie éditoriale
   =========================================================================== */
.gg-actus-head {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--gg-line-soft);
    margin-bottom: 32px;
}
/* .gg-eyebrow, .gg-rackicon, .gg-h1, .gg-h3, .gg-lede et .gg-pill* sont
   passées dans gg-sombre.css : la page d'accueil les utilise aussi, et une
   primitive partagée n'a pas sa place dans la feuille d'une seule page. */

/* ===========================================================================
   Le fil
   =========================================================================== */
.gg-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: start;
    padding-bottom: 64px;
}
.gg-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.gg-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gg-line-soft);
}
.gg-item:last-child {
    border-bottom: 0;
}
.gg-item__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3px;
}
.gg-item__date .d {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--gg-text);
}
.gg-item__date .m {
    font-family: var(--f-head);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gg-faint);
}
.gg-item__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.gg-item__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .72rem;
    color: var(--gg-faint);
}
.gg-item h2 {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.14rem;
    line-height: 1.25;
    letter-spacing: -.018em;
    margin: 0;
    text-wrap: balance;
}
.gg-item h2 a {
    color: var(--gg-text);
    text-decoration: none;
}
.gg-item h2 a:hover,
.gg-item h2 a:focus {
    color: #FF9470;
}
.gg-item__resume {
    color: var(--gg-muted);
    font-size: .88rem;
    max-width: 66ch;
}
/* Le résumé de WHMCS est du HTML tronqué : on neutralise les marges des
   paragraphes qu'il contient pour ne pas creuser le fil. */
.gg-item__resume > :first-child { margin-top: 0; }
.gg-item__resume > :last-child { margin-bottom: 0; }
.gg-item__resume img { display: none; }

.gg-item__suite {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .82rem;
    color: #FF9470;
    text-decoration: none;
    align-self: flex-start;
}
.gg-item__suite:hover { color: #FF6C3A; }

.gg-item__img {
    display: block;
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gg-line);
    margin-bottom: 4px;
    background: var(--gg-surface);
}

/* Annonce épinglée — une annonce post-datée, que WHMCS laisse remonter en
   tête. Sort visuellement du flux parce que c'est la seule information du fil
   qui a une date d'expiration. */
.gg-item--pin {
    background: rgba(245, 166, 35, .05);
    border: 1px solid rgba(245, 166, 35, .3);
    border-radius: 8px;
    padding: 20px;
}
.gg-item--pin .gg-item__date .d,
.gg-item--pin .gg-item__date .m {
    color: var(--gg-warn-txt);
}

/* Pastilles : voir gg-sombre.css. */

/* ===========================================================================
   Colonne latérale : archives par année
   =========================================================================== */
.gg-aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 24px;
}
.gg-aside h2 {
    font-family: var(--f-head);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gg-faint);
    margin: 0 0 12px;
}
.gg-arch {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gg-arch__an {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gg-arch__an > b {
    font-family: var(--f-display);
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: .01em;
    color: #8A8582;   /* 4,77 — volontairement discret, mais lisible */
    font-weight: 400;
}
.gg-arch__mois {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.gg-arch__mois a {
    font-size: .82rem;
    color: var(--gg-muted);
    text-decoration: none;
}
.gg-arch__mois a:hover,
.gg-arch__mois a:focus {
    color: #FF9470;
}

.gg-sub {
    background: var(--gg-surface-2);
    border: 1px solid var(--gg-line);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gg-sub b {
    font-family: var(--f-head);
    font-size: .92rem;
    color: var(--gg-text);
}
.gg-sub p {
    font-size: .78rem;
    color: var(--gg-muted);
    margin: 0;
}


/* ===========================================================================
   L'article
   =========================================================================== */
.gg-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
    align-items: start;
    padding-bottom: 64px;
}
.gg-artmeta {
    display: flex;
    align-items: center;
    gap: 24px;
    row-gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gg-line-soft);
    font-size: .8rem;
    color: var(--gg-faint);
}
/* Première image de l'article : traitée comme une couverture, SUR PLACE.
   Le gabarit n'en affiche pas de copie en haut de page — ce serait la même
   image deux fois. Les deux sélecteurs couvrent les deux sorties possibles de
   l'éditeur WHMCS : une image seule, ou une image enveloppée dans un
   paragraphe. */
.gg-prose > img:first-child,
.gg-prose > p:first-child img:only-child {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 24px;
}

/* Le corps de l'annonce est du HTML libre saisi dans l'éditeur WHMCS. Ces
   règles doivent donc couvrir ce qu'un rédacteur produit réellement, sans
   qu'il ait à connaître de classes. */
.gg-prose {
    max-width: 66ch;
    font-size: .96rem;
    line-height: 1.72;
    color: #E8E6E4;
    padding-top: 24px;
}
.gg-prose > :first-child { margin-top: 0; }
.gg-prose p,
.gg-prose ul,
.gg-prose ol,
.gg-prose blockquote,
.gg-prose table {
    margin: 0 0 20px;
}
.gg-prose h2,
.gg-prose h3 {
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--gg-text);
    margin: 32px 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-wrap: balance;
}
.gg-prose h2 { font-size: 1.2rem; }
.gg-prose h3 { font-size: 1.05rem; }
/* Reprise du motif des trois racks du logo comme marqueur de titre. */
.gg-prose h2::before {
    content: "";
    width: 12px;
    height: 2px;
    background: #FF6C3A;
    flex: none;
    box-shadow: 0 4px 0 #E04E18;
}
.gg-prose strong,
.gg-prose b { color: #fff; font-weight: 600; }
.gg-prose a { color: #FF9470; text-decoration: underline; }
.gg-prose a:hover { color: #FF6C3A; }
.gg-prose ul,
.gg-prose ol { padding-left: 1.3em; }
.gg-prose li { margin-bottom: 8px; }
.gg-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--gg-line);
    margin: 8px 0;
}
.gg-prose blockquote {
    border-left: 2px solid #FF6C3A;
    padding: 4px 0 4px 20px;
    color: var(--gg-text);
    font-size: 1.04rem;
}
.gg-prose code,
.gg-prose kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .86em;
    background: var(--gg-surface-2);
    border: 1px solid var(--gg-line);
    border-radius: 3px;
    padding: 1px 5px;
    color: #fff;
}
.gg-prose pre {
    background: var(--gg-surface-2);
    border: 1px solid var(--gg-line);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;   /* jamais de défilement latéral de la PAGE */
    margin: 0 0 20px;
}
.gg-prose pre code {
    background: none;
    border: 0;
    padding: 0;
}
/* Un tableau collé depuis un tableur déborderait : il défile dans son coin. */
.gg-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    display: block;
    overflow-x: auto;
}
.gg-prose th,
.gg-prose td {
    border-bottom: 1px solid var(--gg-line-soft);
    padding: 8px 12px;
    text-align: left;
}
.gg-prose th {
    font-family: var(--f-head);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gg-faint);
    border-bottom-color: var(--gg-line);
}
.gg-prose hr {
    border: 0;
    border-top: 1px solid var(--gg-line);
    margin: 32px 0;
}

.gg-art__pied {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gg-line);
}

/* Focus clavier visible sur fond sombre */
.gg-news :focus-visible,
.gg-art :focus-visible,
.gg-actus-head :focus-visible {
    outline: 2px solid #FF6C3A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===========================================================================
   Adaptations mobiles
   Plancher de 375 px : c'est le téléphone d'entrée de gamme majoritaire sur le
   marché visé, pas une hypothèse de confort.
   =========================================================================== */
@media (max-width: 991px) {
    .gg-news,
    .gg-art {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .gg-aside {
        position: static;
    }
}

@media (max-width: 575px) {
    .gg-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .gg-item__date {
        flex-direction: row;
        align-items: baseline;
        gap: 7px;
        padding-top: 0;
    }
    .gg-item__date .d {
        font-size: 1rem;
    }
    .gg-item--pin {
        padding: 16px;
    }
    .gg-item__img {
        height: 120px;
    }
    .gg-arch__mois {
        gap: 4px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
