/* Extracted from college/index.php */
header { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }

/* Main transparent pour effet de flottement des cartes */
.college-accueil-main,
main.college-accueil-main {
    background-color: transparent !important;
    background: transparent !important;
}

/* Sections avec effet de flou pour flottement */
.college-accueil-main .intro {
    margin: 3rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* Sur les grands écrans (>1200px), utiliser toute la largeur */
@media (min-width: 1201px) {
    .college-accueil-main .intro {
        max-width: 100%;
        padding: 0 3rem;
    }
}

/* Grid pour utiliser toute la largeur de l'écran - 4 cartes sur une ligne */
.college-accueil-main .niveau-cards { 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* Cartes avec style aplati - styles complets transférés de style.css */
.college-accueil-main .niveau-card {
    /* Styles de base */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: #1e293b;
    width: 100%;
    max-width: 100%;
}

/* Pseudo-élément ::before pour la barre colorée en haut */
.college-accueil-main .niveau-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

/* Sur les grands écrans (>1200px), fixer la largeur des cartes et augmenter l'espacement */
@media (min-width: 1201px) {
    .college-accueil-main .niveau-cards {
        grid-template-columns: repeat(4, auto);
        gap: 3rem;
        justify-content: center;
        justify-items: start;
        padding: 0 2rem;
        max-width: 100%;
        margin: 2rem auto;
    }
    
    .college-accueil-main .niveau-card {
        width: 200px;
        max-width: 200px;
        min-width: 200px;
    }
}

/* Effet au survol */
.college-accueil-main .niveau-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

/* Styles pour les titres h3 */
.college-accueil-main .niveau-card h3 {
    color: #059669;
    font-size: 1.5em;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

/* Styles pour les paragraphes */
.college-accueil-main .niveau-card p {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 0.95em;
}

/* Styles pour les listes */
.college-accueil-main .niveau-card ul {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Styles pour les éléments de liste */
.college-accueil-main .niveau-card li {
    margin-bottom: 0.5rem;
    color: #1e293b;
    position: relative;
}

/* Puce personnalisée pour les listes */
.college-accueil-main .niveau-card li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
    top: -2px;
}

/* Styles des boutons dans les cartes */
.college-accueil-main .niveau-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
    margin: 0.3rem 0;
}

/* Carte spéciale (3ème - Brevet) - style aplati */
.college-accueil-main .niveau-card.special {
    background: #fef3c7;
    color: #1e293b;
    backdrop-filter: none;
    border: 1px solid #f59e0b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.college-accueil-main .niveau-card.special::before {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.college-accueil-main .niveau-card.special h3 {
    color: #1e293b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.college-accueil-main .niveau-card.special p,
.college-accueil-main .niveau-card.special li,
.college-accueil-main .niveau-card.special ul {
    color: #1e293b;
}

.college-accueil-main .niveau-card.special li {
    font-weight: 600;
}

.college-accueil-main .niveau-card.special li::before {
    color: #7c3aed;
}

/* Messages coach avec effet de flou pour cohérence */
.college-accueil-main .coach-message {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 1200px) {
    .college-accueil-main .niveau-cards { 
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) { 
    .college-accueil-main .niveau-cards { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .college-accueil-main .niveau-card {
        max-width: 100%;
    }
}
