:root {
    --primary-color: #002B5B;
    --secondary-color: #00B4D8;
    --accent-green: #A7F3D0;
    --white: #FFFFFF;
    --color-bg: #E5E7EB;
    --text-color: #1F2937;
    --font-family: 'Rubik', sans-serif;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
body > div:first-of-type {
    background: var(--white);
    color: var(--text-color);
    padding: 3rem 2.5rem;
    margin: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 3px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
    flex-shrink: 0;
}

.profile-header-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
}

.profile-name {
    margin: 0;
    white-space: nowrap;
}

.report-btn-profile {
    padding: 0.4rem 0.8rem;
    height: fit-content;
}

.profile-stats-stars {
    color: #ffc107;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: bold;
}

.profile-rating-value {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.profile-rating-count {
    color: #999;
    font-size: 0.95rem;
}

body > div:first-of-type > div {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

body > div:first-of-type h2 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

body > div:first-of-type > div > span {
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
}

body > div:first-of-type > div > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

body > div:first-of-type strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.bio-section {
    margin-top: 0.8rem;
}
.bio-section p {
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

.bio-section p em {
    color: #999;
    font-style: italic;
    font-weight: 400;
}
.rating-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#rating-content span {
    display: inline;
}

#rating-content span:nth-child(1) {
    color: #ffc107;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: bold;
}

#rating-content span:nth-child(2) {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

#rating-content span:nth-child(3) {
    color: #999;
    font-size: 0.95rem;
}
body > div:first-of-type > div > div:last-child {
    margin-top: 1.5rem;
}

body > div:first-of-type > div > div:last-child p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

body > div:first-of-type > div > div:last-child p em {
    color: #999;
    font-style: italic;
}
.courses-section {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    width: 100%;
}

body > div:last-of-type {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    width: 100%;
}

body > div:last-of-type section h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 2rem 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body > div:last-of-type section {
    width: 100%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    width: 100%;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.course-card.course-hidden {
    display: none;
}

.course-card.course-hidden.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

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

.course-card:hover {
    box-shadow: 0 12px 28px rgba(0, 180, 216, 0.12);
    transform: translateY(-6px);
    border-color: var(--secondary-color);
}

.course-image {
    position: relative;
    height: 180px;
    background: var(--color-bg);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.course-matiere {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.matiere-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
}

.rating-value {
    font-size: 0.85rem;
    color: #666;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #666;
}

.meta-duree {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-duree svg {
    opacity: 0.7;
}

.meta-niveau {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-course-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
    display: block;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.view-course-btn:hover {
    background: #0099a8;
}

.see-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.see-more-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.see-more-btn:hover {
    background: #001e42;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 43, 91, 0.2);
}body > div:last-of-type section p {
    text-align: center;
    color: #999;
    font-size: 1rem;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    grid-column: 1 / -1;
}