/* --- HERO ACCUEIL --- */
.home-hero {
    text-align: center;
    padding: 80px 0 60px;
}
.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--text-muted), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Effet dégradé sur le texte */
}
.home-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* --- GRILLE DES PORTAILS --- */
.portals-grid {
    display: grid;
    /* Créera autant de colonnes que possible, minimum 300px de large chacune */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* --- CARTE PORTAIL (Modifiée) --- */
.portal-card {
    background-color: rgba(30,33,38,0.4);
    padding: 40px 30px; /* Un peu plus de hauteur */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    
    /* C'est ici que la magie du centrage opère */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les blocs (icône, titre) horizontalement */
    text-align: center;  /* Centre le texte des paragraphes */
    
    position: relative;
    overflow: hidden;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur visuelle */
}

/* Effet Hover sympa */
.portal-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

/* --- ICONE (Modifiée plus grande) --- */
.card-icon {
    width: 100px;  /* Avant: 60px */
    height: 100px; /* Avant: 60px */
    background-color: rgba(30, 33, 38, 0.9);
    border-radius: 20px; /* Arrondi un peu plus grand */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon svg {
    /*width: 50px;   Avant: 32px */
    /*height: 50px;  Avant: 32px */
    fill: var(--accent);
}

.portal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.portal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

.card-link {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

.portal-card:hover .card-link {
    text-decoration: underline;
}

/* Badge optionnel (ex: pour "Blender") */
.card-badge {
    background: rgba(255,255,255,0.1);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #ccc;
    margin-bottom: 10px;
}

/* --- SECTION A PROPOS --- */
.home-about {
    background-color: rgba(0,0,0,0.2);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px; /* Centré horizontalement */
}

.home-about h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

.home-about p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #ddd;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .home-hero h1 { font-size: 2.2rem; }
    .portals-grid { grid-template-columns: 1fr; } /* 1 seule colonne sur mobile */
}
