/*
 * GIPSA-lab Events — CSS statique
 * Structure pure uniquement : layout, spacing, border-radius, display.
 * Zéro couleur, zéro police ici — tout ça est dans le inline style
 * dynamique généré par class-gipsa-assets.php via get_theme_mod().
 */

/* ----------------------------------------------------------------
   Sections
   ---------------------------------------------------------------- */
.gipsa-section {
    margin-bottom: 2rem;
}
.gipsa-section-label {
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid;
}

/* ----------------------------------------------------------------
   Texte libre
   ---------------------------------------------------------------- */
.gipsa-text-content p {
    margin-bottom: 0.75rem;
}
.gipsa-text-content p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Grille 2 colonnes
   ---------------------------------------------------------------- */
.gipsa-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ----------------------------------------------------------------
   Cartes personnes (jury, directeurs, intervenants)
   ---------------------------------------------------------------- */
.gipsa-people-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gipsa-person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    gap: 12px;
}
.gipsa-person-info {
    flex: 1;
    min-width: 0;
}
.gipsa-person-name {
    display: block;
    margin: 0 0 2px;
}
.gipsa-person-affil {
    display: block;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------------
   Badges de rôle
   (couleurs injectées inline depuis les réglages admin)
   ---------------------------------------------------------------- */
.gipsa-role-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Liens accès & inscription
   ---------------------------------------------------------------- */
.gipsa-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gipsa-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid;
    text-decoration: none !important;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}
.gipsa-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gipsa-link-deadline {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    background: #fef3c7;
    color: #b45309;
}

/* ----------------------------------------------------------------
   Localisation
   ---------------------------------------------------------------- */
.gipsa-location-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid;
    margin-bottom: 10px;
}
.gipsa-loc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gipsa-loc-name {
    display: block;
    margin: 0 0 4px;
}
.gipsa-loc-addr {
    margin: 0;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.gipsa-event-footer {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .gipsa-two-col {
        grid-template-columns: 1fr;
    }
    .gipsa-person-row {
        flex-wrap: wrap;
    }
    .gipsa-person-affil {
        white-space: normal;
    }
}
