
          /* Variables et styles globaux */
        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --accent: #e74c3c;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --success: #27ae60;
            --warning: #f39c12;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fb;
            color: var(--dark);
            line-height: 1.6;
        }
           
        .container {
            width: 85%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .container a {
                outline: none !important;
                box-shadow: none !important;
                text-decoration: none !important;
          }    

       /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 15px 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 1.8rem;
        }
        
        .nav-container {
            display: flex;
            align-items: center;
        }
        
        .main-nav {
            display: flex;
            align-items: center;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            margin-right: 30px;
        }
        
        .nav-links li {
            margin: 0 15px;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 5px;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: white;
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover:after {
            width: 100%;
        }
        
        .user-actions {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 1rem;
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid white;
            color: white;
        }
        
        .btn-outline:hover {
            background: white;
            color: var(--primary);
        }
        
        .btn-primary {
            background: white;
            color: var(--primary);
        }
        
        .btn-primary:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        /* Styles pour les modales et états utilisateur */
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 400px;
            position: relative;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        .auth-message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            background: #ffebee;
            color: #c62828;
            display: none;
        }

        .user-greeting {
            margin-right: 15px;
            font-weight: 500;
        }

        #userLoggedIn {
            display: flex;
            align-items: center;
        }


        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(114, 9, 183, 0.8)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3') no-repeat center center/cover;
            color: white;
            text-align: center;
            padding: 100px 0;
               background: linear-gradient(135deg, var(--primary), #1a2530);
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 0 auto 40px;
        }
        
        
        /* Catégories */
        .categories {
            margin-bottom: 3rem;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--dark);
            position: relative;
        }
        
        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background-color: var(--primary);  
            margin: 10px auto;
            border-radius: 2px;
        }
        
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }
        
        .category-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        
        .category-icon {
            background-color: var(--primary);
            color: white;
            font-size: 2rem;
            padding: 1.5rem;
            text-align: center;
        }
        
        .category-content {
            padding: 1.5rem;
        }
        
        .category-content h3 {
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .doc-count {
            background-color: var(--light);
            color: var(--dark);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.9rem;
            display: inline-block;
        }

      /* Documents populaires */
        .popular-docs {
            margin-bottom: 3rem;
        }
        
        .doc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .doc-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        
        .doc-card:hover {
            transform: translateY(-5px);
        }
        
        .doc-header {
            background-color: var(--primary);
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .doc-category {
            background-color: var(--primary);
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .doc-body {
            padding: 1.5rem;
        }
        
        .doc-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .doc-author {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .doc-meta {
            display: flex;
            justify-content: space-between;
            color: #777;
            font-size: 0.9rem;
            border-top: 1px solid #eee;
            padding-top: 1rem;
            margin-top: 1rem;
        }
        
        .views-count {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--accent);
        }

        /* Submission Section */
        .submission {
            padding: 80px 0;
            background-color: white;
        }
        
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--primary);
        }
        
        .submission-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        
        .submission-content p {
            font-size: 1.2rem;
            margin-bottom: 50px;
            color: var(--gray);
        }
        
        .submission-steps {
            display: flex;
            justify-content: space-between;
            margin: 2rem 0;
            position: relative;
        }
        
        .submission-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #eee;
            z-index: 1;
        }
        
        .step {
            position: relative;
            z-index: 2;
            text-align: center;
            width: 25%;
        }
        
        .step-icon {
            width: 40px;
            height: 40px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
        }
        
        .step p {
            font-size: 0.9rem;
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            width: 90%;
            max-width: 500px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: modalOpen 0.4s ease;
        }
        
        @keyframes modalOpen {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .modal-header {
            background: var(--primary);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h2 {
            font-size: 1.5rem;
        }
        
        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
        }
        
        .modal-body {
            padding: 30px;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }
        
        .form-group input {
            width: 100%;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            transition: border 0.3s ease;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }
        
        .form-footer {
            text-align: center;
            margin-top: 20px;
        }
        
        .form-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* Upload Form */
        .upload-form {
            display: none;
        }
        
        .file-upload {
            border: 2px dashed var(--border);
            border-radius: 10px;
            padding: 40px 20px;
            text-align: center;
            margin-bottom: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .file-upload:hover {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }
        
        .file-upload i {
            font-size: 3rem;
            color: var(--gray);
            margin-bottom: 15px;
        }
        
        .file-upload p {
            color: var(--gray);
            margin-bottom: 15px;
        }
        
        .file-upload .btn {
            display: inline-block;
        }
        
        .file-info {
            display: none;
            background: var(--light);
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
        }
        
        /* Progress Bar */
        .progress-container {
            display: none;
            margin-top: 30px;
        }
        
        .progress-bar {
            height: 10px;
            background: var(--border);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        
        .progress {
            height: 100%;
            background: var(--primary);
            width: 0;
            transition: width 0.4s ease;
        }
        
        .progress-text {
            text-align: center;
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        /* Success Message */
        .success-message {
            display: none;
            text-align: center;
            padding: 40px;
        }
        
        .success-message i {
            font-size: 4rem;
            color: var(--success);
            margin-bottom: 20px;
        }
        
        .success-message h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .success-message p {
            color: var(--gray);
            margin-bottom: 25px;
        }
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 60px 0 30px;
            margin-top: 80px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--primary);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 10px;
        }
        
        .footer-column ul li a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: white;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #adb5bd;
        }
        
 /* CSS font-page*/
      
        @keyframes modalAppear {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center; 
            z-index: 1000;
        }
        
        .modal-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 600px;
            max-height: 90vh; 
            overflow-y: auto; 
            position: relative;
        }

        
        .modal-header {
            padding: 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            position: relative;
        }
        
        .modal-header h2 {
            font-size: 1.5rem;
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .close-modal:hover {
            transform: scale(1.2);
        }
        
        .modal-body {
            padding: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }
        
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .file-upload {
            border: 2px dashed var(--border);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            background-color: var(--light);
        }
        
        .file-upload:hover {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.05);
        }
        
        .file-upload i {
            font-size: 3rem;
            color: var(--gray);
            margin-bottom: 15px;
            transition: color 0.3s;
        }
        
        .file-upload:hover i {
            color: var(--primary);
        }
        
        .file-upload p {
            margin-bottom: 15px;
            color: var(--gray);
        }
        
        .file-info {
            display: none;
            background-color: var(--light);
            padding: 15px;
            border-radius: 5px;
            margin-top: 15px;
            border-left: 4px solid var(--primary);
            animation: fadeIn 0.5s;
        }
        
        .image-preview {
            margin-top: 15px;
        }
        
        .preview-container {
            position: relative;
            display: inline-block;
            max-width: 200px;
        }
        
        .preview-container img {
            max-width: 100%;
            max-height: 150px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .remove-preview {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff4757;
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .remove-preview:hover {
            background: #ff3742;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .file-info i {
            color: var(--primary);
            margin-right: 10px;
        }
        
        .progress-container {
            display: none;
            margin-top: 20px;
            animation: fadeIn 0.5s;
        }
        
        .progress-bar {
            height: 10px;
            background-color: var(--light-gray);
            border-radius: 5px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--info));
            width: 0%;
            transition: width 0.3s ease;
        }
        
        .progress-text {
            text-align: center;
            margin-top: 10px;
            color: var(--gray);
            font-weight: 500;
        }
        
        .success-message,
        .error-message {
            display: none;
            text-align: center;
            padding: 30px;
            border-radius: 10px;
            margin-top: 20px;
            animation: fadeIn 0.5s;
        }
        
        .success-message {
            background-color: rgba(76, 201, 240, 0.1);
            border-left: 4px solid var(--success);
        }
        
        .error-message {
            background-color: rgba(247, 37, 133, 0.1);
            border-left: 4px solid var(--danger);
        }
        
        .success-message i,
        .error-message i {
            font-size: 3rem;
            margin-bottom: 15px;
        }
        
        .success-message i {
            color: var(--success);
        }
        
        .error-message i {
            color: var(--danger);
        }
        
        .success-message h3,
        .error-message h3 {
            margin-bottom: 10px;
        }
        
        .success-message p,
        .error-message p {
            margin-bottom: 20px;
            color: var(--gray);
        }
        
        .debug-panel {
            background-color: #1e1e1e;
            color: #d4d4d4;
            padding: 20px;
            border-radius: 8px;
            margin-top: 30px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #333;
        }
        
        .debug-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            color: #f8f9fa;
        }
        
        .debug-log {
            padding: 10px;
            border-left: 3px solid #4361ee;
            margin-bottom: 10px;
            animation: slideIn 0.3s;
        }
        
        @keyframes slideIn {
            from { transform: translateX(-10px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .status-indicator {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .status-connected {
            background-color: #4ade80;
        }
        
        .status-disconnected {
            background-color: #f87171;
        }
        
        .auth-status {
            text-align: center;
            margin-bottom: 20px;
            padding: 10px;
            border-radius: 5px;
            background-color: rgba(67, 97, 238, 0.1);
        }
        
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                margin: 0 auto;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .modal-body {
                padding: 20px;
            }
            
            .preview-container {
                max-width: 150px;
            }
            
            .preview-container img {
                max-height: 120px;
            }
        }        

 /* Fin Css font-page*/

 /* CSS home*/


/* Minimal Hero */
.minimal-hero {
    background: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.minimal-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.minimal-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Categories */
.modern-categories {
    padding: 80px 0;
    background: #f8fafc;
}

.modern-header {
    text-align: center;
    margin-bottom: 4rem;
}

.modern-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.modern-description {
    color: #64748b;
    font-size: 1.125rem;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.modern-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.modern-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modern-card__icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.modern-card__count {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.modern-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.modern-card__description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modern-card__arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.modern-card:hover .modern-card__arrow {
    color: #475569;
    transform: translateX(4px);
}

/* Navigation Guide Section */
.navigation-guide {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.guide-header {
    text-align: center;
    margin-bottom: 4rem;
}

.guide-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.guide-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.step-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.step-connector {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #3b82f6, #e2e8f0);
    margin: 1rem 0;
}

.step-container:last-child .step-connector {
    display: none;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.step-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-tips li {
    padding: 0.5rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-tips li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.guide-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.guide-feature:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    text-align: center;
}

.feature__icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #475569;
    transition: all 0.3s ease;
}

.feature:hover .feature__icon {
    background: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .minimal-title {
        font-size: 2rem;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .guide-features {
        grid-template-columns: 1fr;
    }
    
    .guide-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-stats {
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .guide-title {
        font-size: 1.75rem;
    }
}



 /* Fin CSS home*/


 /* CSS category*/

  
/* Variables minimalistes */
:root {

    --primary-dark: #2563EB;
    --text: #374151;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --background: #F9FAFB;
    --hover: #F3F4F6;
}

/* Reset et base */
.categories-section {
    padding: 1rem 0;
    background: white;
}

/* En-tête minimal */
.section-header-minimal {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section-title-minimal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Barre d'outils */
.tools-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.search-minimal {
    flex: 1;
    max-width: 300px;
}

.search-input-minimal {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    background: var(--background);
}

.search-input-minimal:focus {
    outline: none;
    border-color: var(--primary);
}

.select-minimal {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    font-size: 0.85rem;
    min-width: 110px;
}

/* Liste d'articles sans cartes */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.15s ease;
    gap: 0.75rem;
}

.article-item:hover {
    background-color: var(--hover);
}

.article-item:last-child {
    border-bottom: none;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.article-actions {
    flex-shrink: 0;
}

.read-link-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.read-link-minimal:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

/* Navigation minimaliste */
.navigation-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.load-more-minimal {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.load-more-minimal:hover {
    background: var(--primary-dark);
}

.pagination-minimal {
    display: flex;
    gap: 0.15rem;
}

.pagination-minimal a,
.pagination-minimal span {
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.75rem;
    min-width: 1.75rem;
    text-align: center;
    border: 1px solid transparent;
}

.pagination-minimal a {
    color: var(--text);
    background: var(--background);
    border-color: var(--border);
}

.pagination-minimal a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-minimal .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* États vides */
.no-results-minimal {
    text-align: center;
    padding: 2rem 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== MOBILE FIRST ========== */
@media (max-width: 768px) {
    .categories-section {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .section-header-minimal {
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
    }
    
    .section-title-minimal {
        font-size: 1.1rem;
        gap: 0.25rem;
    }
    
    .article-count {
        font-size: 0.8rem;
    }
    
    .tools-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 0;
    }
    
    .search-minimal {
        max-width: none;
    }
    
    .search-input-minimal {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .select-minimal {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .article-item {
        padding: 0.6rem 0;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-content {
        padding-right: 0.25rem;
    }
    
    .article-title {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }
    
    .article-meta {
        font-size: 0.7rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .read-link-minimal {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
        margin-top: 0.1rem;
    }
    
    .navigation-minimal {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .load-more-minimal {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        order: 2;
    }
    
    .pagination-minimal {
        order: 1;
        justify-content: center;
        gap: 0.1rem;
    }
    
    .pagination-minimal a,
    .pagination-minimal span {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-width: 1.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .container {
        padding: 0 0.4rem;
    }
    
    .section-title-minimal {
        font-size: 1rem;
    }
    
    .article-count {
        font-size: 0.75rem;
    }
    
    .article-title {
        font-size: 0.8rem;
    }
    
    .article-meta {
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .article-item {
        padding: 0.5rem 0;
    }
    
    .search-input-minimal,
    .select-minimal {
        font-size: 0.75rem;
    }
}

/* Animation de chargement pour Ajax */
.article-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 768px) {
    .article-title a {
        -webkit-tap-highlight-color: transparent;
    }
    
    .read-link-minimal {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    }
    
    .load-more-minimal {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    }
}

 /*Fin  CSS category*/

        /* Responsive */
        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }
            
            .menu-toggle {
                display: block;
                margin-right: 15px;
            }
            
            .hero h1 {
                font-size: 2.8rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .submission-steps {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .hero {
                padding: 70px 0;
            }
            
            .hero h1 {
                font-size: 2.3rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }
        

   @media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
        /* Remonte un peu le titre du hero */
        margin-bottom: 10px; 
    }
    
    .hero p {
        font-size: 1.1rem;
        /* Alignement justifié pour le texte du hero  text-align: justify;  */
        
    }
    
    .section-title {
        font-size: 1.8rem;
        /* Remonte un peu les titres de section */
        margin-bottom: 15px; 
    }

    /* Pour les textes génériques à l'intérieur des sections, si tu veux les justifier */
    .submission-content p, 
    .doc-body p { /* Ajoute d'autres sélecteurs de paragraphes si nécessaire */
        text-align: left;
    }

    /* Ajustement pour les étapes de soumission, pour éviter que le texte ne soit trop écrasé */
    .step p {
        font-size: 0.85rem;
       /* text-align: center;  Conserver centré pour les étapes peut être mieux visuellement */
    }
}


  /* Responsive Styles */

  @media (max-width: 900px) {

.nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    max-width: 300px;
    background: #fff;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    padding: 20px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* État ouvert du menu */
.nav-container.active {
    right: 0;
}

/* Overlay de fond */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bouton hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: #333;
}

/* Styles pour les liens de navigation */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    padding: 8px 0;
    display: block;
    transition: color 0.2s;
    border-bottom: 1px solid #eee;
}

.nav-links li a:hover {
    color: #0066cc;
}

/* Actions utilisateur */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
     
        }


.btn {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-outline {
    border: 2px solid #0066cc;
    background: transparent;
    color: #0066cc;
}

.btn-primary {
    background: #0066cc;
    color: white;
    border: 2px solid #0066cc;
}

/* Empêcher le défilement quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* ============== VERSION DESKTOP ============== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .overlay {
        display: none;
    }
    
    .nav-container {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        overflow: visible;
    }
    
    .nav-links {
        flex-direction: row;
        margin-bottom: 0;
        margin-right: 20px;
        gap: 25px;
    }
    
    .nav-links li a {
        border-bottom: none;
        padding: 5px 0;
        position: relative;
    }
    
    .nav-links li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #0066cc;
        transition: width 0.3s;
    }
    
    .nav-links li a:hover::after {
        width: 100%;
    }
    
    .user-actions {
        flex-direction: row;
        gap: 15px;
        margin-top: 0;
    }
}

/* ============== VERSION TABLETTE ============== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .user-actions {
        margin-top: 30px;
    }
}

/* ============== VERSION MOBILE ============== */
@media (max-width: 480px) {
    .nav-container {
        width: 85%;
    }
    
    .nav-links li a {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

      .container {
            width: 90%;
            padding: 10px;
        }
}











