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

:root {
    --uxrd-violet: #7d38ec;
  }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff6e9;
}

.container {
    max-width: 80%;
    margin: 20px auto;
    padding: 0;
}

/* Header */
header {
    background: #fff6e9;
    padding: 15px 0;
    border-bottom: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

/* Webflow Styles */

/* Custom Layout */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 80%;
    margin: 0 auto;
    padding: 40px 0;
    background-color: #fff6e9;
}

.categories-nav {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.category-item {
    height: 62px;
    max-width: 120px;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.category-menu {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    position: relative;
}

.category-menu:hover {
    color: var(--category-color, #333);
}

.category-menu .chevron {
    color: var(--category-color, #333);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-card {
    overflow: hidden;
}

.resource-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resource-media-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

/* Button Style */
.resource-link {
    padding: 8px 24px;
    border-radius: 6px;
    background-color: #7d38ec;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.resource-link:hover {
    background-color: #6429c7;
}

/* Search */
.search-section {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.title-section h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Resource Cards */
.collection-item-4 {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.div-block-7 {
    padding: 25px;
}

.heading-5 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.div-block-10 {
    height: 4px;
    margin-bottom: 15px;
    border-radius: 2px;
}

.paragraph-2 {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.div-block-5 {
    display: flex;
    flex-direction: column;
}

.div-block-6 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
}

.book-specific-elements,
.course-specific-elements {
    margin-bottom: 5px;
}

.text-block-2 {
    font-weight: 600;
    margin-right: 8px;
}

.text-block-5 {
    color: #666;
}

.button-4 {
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.div-block-13 {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.div-block-22 {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
}

.image-2 {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid; /* La couleur sera définie en JavaScript */
}

.div-block-14 {
    width: 30%;
    padding-left: 15px;
}

.content-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bolder;
    color: #666;
    letter-spacing: 0.05em;
}

/* Style du footer de la carte */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.info-block {
    flex: 1;
    padding-right: 20px;
}

.book-specific-elements,
.course-specific-elements {
    margin-bottom: 5px;
}

.text-block-2 {
    display: inline-block;
    font-weight: 600;
    margin-right: 8px;
}

.text-block-5 {
    display: inline-block;
    color: #666;
}

.button-4 {
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-nav {
        position: relative;
        top: 0;
    }

    .category-item {
        margin: 0;
        height: 40px;
    }

    .category-menu {
        width: 100%;
        justify-content: center;
    }

    .categories-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Styles des cartes sur mobile */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .div-block-13 {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .div-block-22 {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .div-block-14 {
        width: 100%;
        padding-left: 0;
    }

    .card-footer {
        flex-direction: column;
        gap: 15px;
    }

    .info-block {
        width: 100%;
        padding-right: 0;
    }

    .button-4 {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    /* Ajustements des marges et espacements */
    .heading-5 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .paragraph-2 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .content-tag {
        margin-bottom: 5px;
    }

    .collection-list-wrapper-3 {
        margin-top: 8px;
    }
}
