:root {
    --primary: #0a192f;
    --secondary: #1e293b;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Arrière-plan animé */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15); /* Vert Cameroun */
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(239, 68, 68, 0.15); /* Rouge Cameroun */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.15); /* Jaune Cameroun */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Conteneur principal */
.portal-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    z-index: 10;
    text-align: center;
}

/* En-tête institutionnel */
.portal-header {
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.coat-of-arms {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.portal-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.portal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.separator {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red), var(--accent-gold));
    margin: 25px auto;
    border-radius: 2px;
}

.portal-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Cartes de service (Glassmorphism) */
.service-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--text-main);
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    animation: fadeInUp 1s ease-out backwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.1);
}

/* Lueur interne au hover */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Icônes */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.ggag-icon {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.salle-icon {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 50px;
}

/* Bouton d'accès */
.access-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-gold);
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .access-btn {
    color: #fff;
    transform: translateX(10px);
}

/* Footer */
.portal-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations d'entrée */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-header h2 { font-size: 1.4rem; }
    .portal-title { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .shape-1, .shape-2, .shape-3 { opacity: 0.5; }
}
