/* Styles spécifiques à la page d'accueil principale du portail */

body {
    margin: 20px; /* La marge globale de votre portail */
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.app-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.app-card-main {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.app-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.app-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.app-card-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
}

/* Zone des boutons de documentation (Vidéo / PDF) */
.app-card-docs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px 16px 12px; /* Espacement renforcé en bas */
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    color: #2c3e50; /* Même couleur que le titre */
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
}
.doc-btn:hover {
    transform: translateY(-1px);
    background-color: #f2f4f8;
    border-color: #b3c0d1;
    color: #1a252f;
}

.doc-btn-video svg {
    color: #e74c3c;
}

.doc-btn-pdf svg {
    color: #e67e22;
}

.doc-btn svg {
    flex-shrink: 0;
}

.section-title {
    margin-top: 40px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    color: #2c3e50;
}