/* ── HGAPContent — Accueil front-end ── */

.hgap-accueil {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

/* ── INTRO ── */
.hgacc-intro {
    margin-bottom: 1.75rem;
}
.hgacc-intro-titre {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2a4a;
    margin: 0 0 0.5rem;
}
.hgacc-intro-texte {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── BLOC HAUT : calendrier + boutons fixes ── */
.hgacc-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Boîte calendrier */
.hgacc-cal-box {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}
.hgacc-cal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.hgacc-cal-titre {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2980b9;
    text-transform: uppercase;
}
.hgacc-cal-sous { font-size: 0.82rem; color: #555; margin-top: 2px; line-height: 1.4; }

/* Événements */
.hgacc-cal-liste { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.75rem; }
.hgacc-ev {
    display: flex;
    align-items: stretch;
    gap: 10px;
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem 0.75rem 0.5rem 0;
}
.hgacc-ev-barre { width: 4px; border-radius: 2px; flex-shrink: 0; /* couleur injectée inline */ }
.hgacc-ev-info { padding-left: 8px; }
.hgacc-ev-titre { font-size: 0.85rem; font-weight: 600; /* couleur injectée inline */ }
.hgacc-ev-classe {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: currentColor;
    color: #fff !important;
    margin-right: 5px;
    vertical-align: middle;
    opacity: 0.9;
}
.hgacc-ev-date  { font-size: 0.78rem; color: #666; margin-top: 2px; }
.hgacc-cal-vide { font-size: 0.85rem; color: #888; font-style: italic; }
.hgacc-cal-conseil { font-size: 0.8rem; color: #666; font-style: italic; margin: 0; }

/* Boutons fixes */
.hgacc-btns-fixes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
    flex-shrink: 0;
    justify-content: center;
}
.hgacc-btn-fixe {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border: 2px solid;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    background: #fff;
    transition: background 0.15s, transform 0.15s;
}
.hgacc-btn-fixe:hover { background: #f7f7f7; transform: translateX(3px); }
.hgacc-btn-fixe-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── SECTION TITRE ── */
.hgacc-section-titre {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1a2a4a;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
}
.hgacc-section-titre::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #1a2a4a;
    border-radius: 2px;
    margin: 6px auto 0;
}

/* ── CARTES NIVEAUX ── */
.hgacc-niveaux {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.hgacc-carte-niv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 0.75rem 1rem;
    text-decoration: none !important;
    transition: box-shadow 0.18s, transform 0.18s;
}
.hgacc-carte-niv:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.hgacc-niv-label {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.hgacc-niv-label sup {
    font-size: 0.9rem;
    font-weight: 700;
    vertical-align: super;
}
.hgacc-niv-img {
    width: 100%;
    max-width: 130px;
    height: 110px;
    object-fit: contain;
    display: block;
}
.hgacc-niv-placeholder { border-radius: 8px; }
.hgacc-niv-fleche {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* ── BOUTONS PONCTUELS ── */
.hgacc-bp-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.hgacc-bp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
    transition: background 0.15s, transform 0.15s;
}
.hgacc-bp:hover { background: #f7f7f7; transform: scale(1.03); }
.hgacc-bp-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
}

/* responsive géré en fin de fichier */

/* ── ALERTE PONCTUELLE ── */
.hgacc-alerte {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    border: 1.5px solid;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    animation: hgacc-fadein 0.4s ease both;
}
.hgacc-alerte-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── ICÔNE CALENDRIER DYNAMIQUE ── */
.hgacc-cal-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hgacc-cal-icon-mois {
    background: #c0392b;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    width: 100%;
    text-align: center;
    padding: 2px 0;
}
.hgacc-cal-icon-jour {
    background: #fff;
    color: #1a2a4a;
    font-size: 1.25rem;
    font-weight: 900;
    width: 100%;
    text-align: center;
    padding: 2px 0 3px;
    line-height: 1;
}

/* ── BADGE CLASSE LISIBLE ── */
.hgacc-ev-classe {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    color: #fff !important;
    margin-right: 5px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* ── COMPTEUR DE JOURS ── */
.hgacc-ev-countdown {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f0f0f0;
    color: #555;
    padding: 1px 7px;
    border-radius: 10px;
    vertical-align: middle;
}

/* ── ANIMATIONS D'ENTRÉE ── */
@keyframes hgacc-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hgacc-intro        { animation: hgacc-fadein 0.4s ease 0.05s both; }
.hgacc-top          { animation: hgacc-fadein 0.4s ease 0.12s both; }
.hgacc-section-titre{ animation: hgacc-fadein 0.4s ease 0.18s both; }
.hgacc-niveaux      { animation: hgacc-fadein 0.4s ease 0.22s both; }
.hgacc-carte-niv:nth-child(1) { animation: hgacc-fadein 0.4s ease 0.24s both; }
.hgacc-carte-niv:nth-child(2) { animation: hgacc-fadein 0.4s ease 0.30s both; }
.hgacc-carte-niv:nth-child(3) { animation: hgacc-fadein 0.4s ease 0.36s both; }
.hgacc-carte-niv:nth-child(4) { animation: hgacc-fadein 0.4s ease 0.42s both; }
.hgacc-bp-wrap      { animation: hgacc-fadein 0.4s ease 0.48s both; }

/* ── RESPONSIVE MOBILE AMÉLIORÉ ── */
@media (max-width: 700px) {
    .hgacc-top { flex-direction: column; gap: 1rem; }
    .hgacc-cal-box { min-width: 0; }

    .hgacc-btns-fixes {
        min-width: 0;
        flex-direction: column;
        width: 100%;
    }
    .hgacc-btn-fixe { width: 100%; justify-content: flex-start; }

    .hgacc-niveaux {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .hgacc-niv-img { height: 80px; }
    .hgacc-niv-label { font-size: 1.5rem; }

    .hgacc-titre-page { font-size: 1.25rem; }
    .hgacc-progression-box { max-width: 100%; min-width: 0; width: 100%; }

    .hgacc-bp-wrap { gap: 0.5rem; }
    .hgacc-bp { font-size: 0.82rem; padding: 0.55rem 1rem; }

    .hgacc-ev-countdown { display: block; margin: 3px 0 0; }
}

@media (max-width: 400px) {
    .hgacc-niveaux { grid-template-columns: repeat(2, 1fr); }
    .hgacc-niv-img { height: 65px; }
}
