/* public/css/pages-extras.css
   ===================================================================
   Styles additionnels pour les pages publiques du site.
   Chargée en tête des vues :
     - competitions.blade.php
     - documentation.blade.php
     - help.blade.php
     - news.blade.php

   Complète style.css sans le modifier. Classes préfixées .pgx-* pour
   éviter toute collision.

   Identité : verts Défense #1b5e20/#2e7d32/#43a047, orange #e8871e.
   =================================================================== */


/* ===================================================================
   1. INTRO DE PAGE — kicker + titre + sous-titre + micro-stats
   =================================================================== */
.pgx-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.pgx-intro-kicker {
    display: inline-block;
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2e7d32;
    padding: 0 1.4rem;
    margin-bottom: 0.5rem;
}

.pgx-intro-kicker::before,
.pgx-intro-kicker::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42px;
    height: 2px;
    background: #2e7d32;
}

.pgx-intro-kicker::before {
    left: -42px;
}

.pgx-intro-kicker::after {
    right: -42px;
}

.pgx-intro-heading {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #263238;
    margin: 0.5rem 0 0.75rem;
}

.pgx-intro-lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #55636b;
    margin: 0 auto;
}


/* ===================================================================
   2. BANDEAU RÉCAP (page Concours) — stats à la une
   =================================================================== */
.pgx-recap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: linear-gradient(135deg, #f1f8f2 0%, #e6f0e8 100%);
    border: 1px solid #cfe3d2;
    border-left: 4px solid #2e7d32;
    border-radius: 0.6rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.pgx-recap-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pgx-recap-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #cfe3d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8871e;
    font-size: 1.25rem;
}

.pgx-recap-text {
    min-width: 0;
    line-height: 1.25;
}

.pgx-recap-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1b5e20;
}

.pgx-recap-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* ===================================================================
   3. DOCUMENTATION — grille de cards
   =================================================================== */

/* En-tete de groupe (concours) inchangé (.doc-group-header de style.css)
   On modernise juste le conteneur et supprime le tableau. */
.pgx-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: #fbfcfc;
}

.pgx-doc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5eae7;
    border-radius: 0.55rem;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.pgx-doc-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #cfe3d2;
}

.pgx-doc-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pgx-doc-card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #fdf1f1 0%, #fbe1e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c62828;
    font-size: 1.25rem;
}

.pgx-doc-card-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.pgx-doc-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #263238;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.pgx-doc-card-size {
    font-size: 0.72rem;
    font-weight: 600;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pgx-doc-card-desc {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.55;
    margin-bottom: 0.9rem;
    flex: 1 1 auto;
    /* Coupure propre au-dela de 3 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgx-doc-card-desc.empty {
    color: #b0bec5;
    font-style: italic;
}

.pgx-doc-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(180deg, #f7a83c 0%, #e8871e 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 0.35rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    align-self: flex-start;
}

.pgx-doc-card-action:hover {
    background: linear-gradient(180deg, #f9b654 0%, #ef8f24 100%);
    color: #fff;
    transform: translateY(-1px);
}


/* ===================================================================
   4. NEWS — hero de détail + meta chips
   =================================================================== */
.pgx-news-hero {
    position: relative;
    border-radius: 0.7rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    min-height: 260px;
}

.pgx-news-hero-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: brightness(78%);
}

.pgx-news-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.pgx-news-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.65rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.pgx-news-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pgx-news-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #263238;
    backdrop-filter: blur(4px);
}

.pgx-news-chip i {
    color: #e8871e;
}

/* Si pas d'image : on garde un bandeau de titre coloré */
.pgx-news-header-plain {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #f1f8f2 0%, #e6f0e8 100%);
    border: 1px solid #cfe3d2;
    border-left: 4px solid #2e7d32;
    border-radius: 0.6rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.pgx-news-header-plain .pgx-news-hero-title {
    color: #1b5e20;
    text-shadow: none;
    margin-bottom: 0.75rem;
}

.pgx-news-header-plain .pgx-news-chip {
    background: #fff;
    border: 1px solid #cfe3d2;
    color: #37474f;
}

.pgx-news-excerpt {
    background: #fdf4e9;
    border-left: 4px solid #e8871e;
    border-radius: 0.4rem;
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
    font-style: italic;
    color: #6a4a08;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.pgx-news-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #37474f;
    text-align: justify;
}

.pgx-news-content p {
    margin-bottom: 1.1rem;
}

.pgx-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.4rem;
    margin: 1rem 0;
}

.pgx-news-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    background: transparent;
    color: #2e7d32;
    border: 1.5px solid #cfe3d2;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pgx-news-back:hover {
    background: #f1f8f2;
    border-color: #2e7d32;
    color: #1b5e20;
}


/* ===================================================================
   5. ASSISTANCE — hero encadré
   =================================================================== */
.pgx-help-hero {
    background: linear-gradient(135deg, #f1f8f2 0%, #e6f0e8 100%);
    border: 1px solid #cfe3d2;
    border-left: 4px solid #2e7d32;
    border-radius: 0.6rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgx-help-hero-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #cfe3d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8871e;
    font-size: 1.4rem;
}

.pgx-help-hero-text {
    min-width: 0;
}

.pgx-help-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 0.2rem;
}

.pgx-help-hero-sub {
    font-size: 0.88rem;
    color: #55636b;
    margin: 0;
    line-height: 1.55;
}


/* ===================================================================
   6. RESPONSIVE
   =================================================================== */
@media (max-width: 991.98px) {
    .pgx-news-hero-image {
        height: 300px;
    }

    .pgx-news-hero-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 767.98px) {
    .pgx-intro-heading {
        font-size: 1.25rem;
    }

    .pgx-intro-lead {
        font-size: 0.88rem;
    }

    .pgx-recap {
        padding: 1rem 1.15rem;
    }

    .pgx-recap-value {
        font-size: 1.1rem;
    }

    .pgx-news-hero-image {
        height: 220px;
    }

    .pgx-news-hero-overlay {
        padding: 1.35rem 1.15rem 1rem;
    }

    .pgx-news-hero-title {
        font-size: 1.15rem;
    }

    .pgx-help-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .pgx-docs-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .pgx-news-hero-image {
        height: 180px;
    }
}
