/* Réinitialisation de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* En-tête */
.main-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #94c11f 0%, #94c11f 100%);
    color: white;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Grille des boutons */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Style des grands boutons (Cartes) */
.card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef2f5;
}

/* Effets au survol */
.card-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #9a1915;
}

/* Icônes */
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Textes dans les boutons */
.card-content h2 {
    font-size: 1.4rem;
    color: #94c11f;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
}
.portal-header {
    text-align: center;
    margin: 40px 0;
}

.portal-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.portal-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Grille principale (Responsive) */
.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style de base des cartes */
.card {
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #ccc; /* Bordure par défaut */
}

/* Effets au survol */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Contenu interne de la carte */
.card-content {
    padding: 30px 20px;
    text-align: center;
}

.icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Couleurs personnalisées par catégorie */
.news { border-top-color: #007bff; }
.news .icon { text-shadow: 0 0 10px rgba(0, 123, 255, 0.2); }

.events { border-top-color: #28a745; }
.events .icon { text-shadow: 0 0 10px rgba(40, 167, 69, 0.2); }

.blog { border-top-color: #ffc107; }
.blog .icon { text-shadow: 0 0 10px rgba(255, 193, 7, 0.2); }

.gallery { border-top-color: #dc3545; }
.gallery .icon { text-shadow: 0 0 10px rgba(220, 53, 69, 0.2); }

.application { border-top-color: #94c11f ; }
.application .icon { text-shadow: 0 0 10px rgba(23, 162, 184, 0.2); }

/* Boutons */
.btn-submit {
  background-color: var(--primary-color);
  color: #fbfcf9;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  align-self: left;
}