* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
     background-color: #4f96da;
   
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    
}

.nav-container h1 {
    color:rgb(245, 201, 5) ;
    font-style: unset;
    font-size: 1rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1rem;
}
.nav-links p{
    font-size:20px ;
    font-weight: 600;
}
.nav-links a {
    color: rgb(7, 159, 197);
    font-size: 0.85rem;
    text-align: left;
    text-decoration: none;
    padding: 0.5rem 1rem;

    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgb(26, 26, 27);
}
 .logo h1 {
            position: relative;
            font-style: var(--bs-blue);
                                
            left: 60px;
            top: 10px;
            color: rgb(216, 141, 27);
        font-size: 1.1rem;
            text-shadow: 1px 1px 3px rgba(26, 24, 24, 0.3);

        }
.logo img{
    font-size: 12px;
    position: relative;
    padding: 1px;
    border-radius:50%;
    
    width: 50px;
    height: 50px;
    top: -5px;
    right: -4px;
   box-shadow: 0 4px 8px rgba(42, 161, 38, 0.2);
}


main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

.options-grid h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #dddee2;
}

footer {
    background:linear-gradient( #1d044b, #0c08dd
    ) ;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Styles pour les pages élèves */
.course-page {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(41, 14, 194, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.course-page h2 {
    color: rgb(92, 152, 192);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #e0d5d5;
    border-radius: 5px;
    margin: 1rem 0;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.3rem 1.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #246d97;
    color: white;
}

.btn-primary:hover {
    background-color: #306ea8;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #0f6d27;
    color: white;
}

.btn-success:hover {
    background-color: #1c772f;
}

.courses-list {
    margin-top: 1rem;
}

.course-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(242, 243, 245, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.course-info p {
    color: #666;
    font-size: 0.9rem;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    .nav-container {
    flex-direction: unset;
    flex-wrap: wrap;
    flex-basis: content;
        gap: 1rem;
    }
    
    .nav-links a {
        position: relative;
        
        /* gap: 1rem; */
        align-items: center;
        text-align: center;
    }
    
    .logo h1{
            position: relative;
            font-style: var(--bs-blue);
              right: 60px;                  
            
            top: 10px;
            color: rgb(216, 141, 27);
             font-size: 1.rem;
            text-shadow: 1px 1px 3px rgba(26, 24, 24, 0.3);
    }
    .options {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .pdf-controls {
        flex-direction: column;
    }
    
    .course-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
