
        /* ===================================
           Variables CSS
           =================================== */
        :root {
            --color-primary: #2563eb;
            --color-primary-dark: #1e40af;
            --color-success: #10b981;
            --color-warning: #f59e0b;
            --color-info: #06b6d4;
            --color-background: #f8fafc;
            --color-surface: #ffffff;
            --color-text: #1e293b;
            --color-text-muted: #64748b;
            --color-border: #e2e8f0;
            --color-hover: #f1f5f9;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ===================================
           Reset et styles de base
           =================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: var(--color-text);
            min-height: 100vh;
            padding: 40px 20px;
            line-height: 1.6;
        }

        /* ===================================
           Breadcrumb (fil d'Ariane)
           =================================== */
        .breadcrumb {
            max-width: 1200px;
            margin: 0 auto 30px;
            padding: 0 20px;
            animation: fadeInDown 0.6s ease;
        }

        .breadcrumb a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 0.95rem;
            transition: var(--transition-base);
        }

        .breadcrumb a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

        .breadcrumb span {
            color: rgba(255, 255, 255, 0.7);
            margin: 0 8px;
        }

        .breadcrumb .current {
            color: #ffffff;
            font-weight: 600;
        }

        /* ===================================
           En-tête de la matière
           =================================== */
        .matiere-header {
            text-align: center;
            margin-bottom: 60px;
            animation: fadeInDown 0.8s ease;
        }

        .matiere-icon {
            font-size: 4rem;
            margin-bottom: 16px;
            display: block;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }

        .matiere-header h1 {
            font-size: 3rem;
            font-weight: 700;
            color: var(--color-surface);
            margin-bottom: 16px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .matiere-header p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin: 0 auto;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===================================
           Section de ressources
           =================================== */
        .resources-section {
            max-width: 1200px;
            margin: 0 auto 50px;
            padding: 0 20px;
        }

        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--color-surface);
            margin-bottom: 30px;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* ===================================
           Grille de cartes de ressources
           =================================== */
        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        /* ===================================
           Carte de ressource individuelle
           =================================== */
        .resource-card {
            background: var(--color-surface);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow-xl);
            transition: var(--transition-base);
            animation: fadeInUp 0.6s ease;
            animation-fill-mode: both;
            position: relative;
            overflow: hidden;
        }

        /* Délai d'animation pour chaque carte */
        .resource-card:nth-child(1) { animation-delay: 0.1s; }
        .resource-card:nth-child(2) { animation-delay: 0.2s; }
        .resource-card:nth-child(3) { animation-delay: 0.3s; }
        .resource-card:nth-child(4) { animation-delay: 0.4s; }
        .resource-card:nth-child(5) { animation-delay: 0.5s; }
        .resource-card:nth-child(6) { animation-delay: 0.6s; }

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

        .resource-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        /* Badge de type */
        .resource-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-cours {
            background: linear-gradient(135deg, #06b6d4, #0891b2);
            color: white;
        }

        .badge-qcm {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        .badge-exercices {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
        }

        .badge-projet {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
        }

        .badge-coming-soon {
            background: linear-gradient(135deg, #64748b, #475569);
            color: white;
        }

        /* Icône de la carte */
        .resource-icon {
            font-size: 2.5rem;
            margin-bottom: 20px;
            display: block;
        }

        .resource-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-text);
            margin-bottom: 12px;
        }

        .resource-card p {
            font-size: 0.95rem;
            color: var(--color-text-muted);
            margin-bottom: 24px;
            line-height: 1.6;
            min-height: 45px;
        }

        /* ===================================
           Bouton d'accès
           =================================== */
        .resource-button {
            display: inline-block;
            width: 100%;
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
            color: var(--color-surface);
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            text-align: center;
            transition: var(--transition-base);
            box-shadow: var(--shadow-md);
        }

        .resource-button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .resource-button:active {
            transform: translateY(0);
        }

        /* Bouton désactivé */
        .resource-button.disabled {
            background: linear-gradient(135deg, var(--color-text-muted), #475569);
            cursor: not-allowed;
            opacity: 0.7;
        }

        .resource-button.disabled:hover {
            transform: none;
        }

        /* ===================================
           Footer
           =================================== */
        .matiere-footer {
            margin-top: 80px;
            background: linear-gradient(135deg, #2b2c92, #6a4bcf);
            color: #f5f7ff;
            padding: 2.2rem 2rem;
            border-radius: 25px;
            box-shadow: var(--shadow-xl);
            font-family: "Inter", sans-serif;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 2.5rem;
            margin-bottom: 1.8rem;
        }

        .footer-column {
            flex: 1;
            min-width: 260px;
        }

        .footer-column h3 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .footer-column p {
            margin: 0.3rem 0;
            line-height: 1.45;
            font-size: 0.95rem;
            opacity: 0.92;
        }

        .footer-column a {
            color: #ffffff;
            opacity: 0.9;
            text-decoration: none;
            transition: 0.25s ease;
        }

        .footer-column a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0.5rem 0 0;
        }

        .footer-column ul li {
            margin-bottom: 0.35rem;
            font-size: 0.95rem;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.25);
            padding-top: 1rem;
            display: flex;
            justify-content: center;
            gap: 0.6rem;
            font-size: 0.85rem;
            opacity: 0.85;
        }

        /* ===================================
           Responsive Design
           =================================== */
        @media (max-width: 900px) {
            .footer-content {
                flex-direction: column;
                text-align: left;
            }

            .resources-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .matiere-header h1 {
                font-size: 2.25rem;
            }

            .matiere-header p {
                font-size: 1.1rem;
            }

            .matiere-icon {
                font-size: 3rem;
            }

            .resource-card {
                padding: 32px 24px;
            }

            .resource-card h3 {
                font-size: 1.35rem;
            }

            .resource-icon {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 20px 12px;
            }

            .matiere-header h1 {
                font-size: 1.875rem;
            }

            .matiere-header p {
                font-size: 1rem;
            }

            .matiere-icon {
                font-size: 2.5rem;
            }

            .resource-card {
                padding: 24px 20px;
            }

            .resource-icon {
                font-size: 1.75rem;
            }
        }
