 :root {
            --primary: #C8102E;
            --primary-dark: #A50D26;
            --dark: #2E2E2E;
            --light: #F5F5F5;
            --text: #333333;
            --border: #CCCCCC;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --info: #17a2b8;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: var(--light);
            color: var(--text);
            line-height: 1.6;
        }

.navigation_bar {
            width: 100%;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid #F4F4F4;
            background-color: #FFF;
            position: fixed;
            top: 0;
            transition: all 0.3s ease;
            height: 70px;
        }

        .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

        .logo1{
            display: none;
        }

        .navigation_bar ul {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
        }

        .navigation_bar ul li {
            list-style: none;
            padding: 0.2rem 0.5rem;
        }

        .navigation_bar ul li a {
            color: rgba(0, 0, 0, 0.6);
            transition: all 0.2s ease-in;
            text-decoration: none;
            font-size: 17px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
        }

        .navigation_bar ul li a:hover {
            color: #C8102E;
            background-color: #C8102E;
        }

        .navigation_bar ul li a:hover .tooltip,
        .navigation_bar ul li a:hover i {
            color: white;
        }

        .navigation_bar ul li a i {
            font-size: 20px;
            margin-bottom: 5px;
            transition: all 0.2s ease-in;
        }

        .tooltip {
            font-size: 14px;
            transition: all 0.2s ease-in;
        }

        /* Bouton menu hamburger (caché par défaut) */
        .menu-toggle {
            display: none;
            position: absolute;
            left: 30px;
            top: 25px;
            transform: translateY(-50%);
            cursor: pointer;
            font-size: 24px;
            color: #C8102E;
            z-index: 1001;
        }

        /* Styles responsives */
        @media screen and (max-width: 543px) {
            .navigation_bar {
                justify-content: flex-start;
                padding-left: 30px; /* Espace pour le logo */
            }

            .menu-toggle {
                display: block;
            }

            .logo1{
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-left: 30%;
            
        }

            .navigation_bar ul {
                position: fixed;
                top: 0;
                left: -250px;
                height: 100vh;
                width: 250px;
                background: white;
                flex-direction: column;
                justify-content: flex-start;
                padding-top: 60px;
                box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
                transition: all 0.3s ease;
                z-index: 999;
            }

            .navigation_bar ul.active {
                left: 0;
            }

            .navigation_bar ul li {
                width: 100%;
                padding: 0;
            }

            .navigation_bar ul li a {
                width: 100%;
                padding: 1.2rem;
                flex-direction: row;
                justify-content: flex-start;
                border-radius: 0;
            }

            .navigation_bar ul li a i {
                margin-bottom: 0;
                margin-right: 15px;
                font-size: 18px;
                width: 24px;
                text-align: center;
            }

            /* Overlay lorsque le menu est ouvert */
            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                z-index: 998;
            }

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

            /* Ajustement du body quand le menu est ouvert */
            body.menu-open {
                overflow: hidden;
            }
        }


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

        /* Main Content */
        .main-content {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 30px;
            margin: 90px 0;
        }

        /* Profile Sidebar */
        .profile-sidebar {
            background: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 25px;
            height: fit-content;
        }

        .profile-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .profile-picture {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary);
            margin: 0 auto 15px;
            position: relative;
            overflow: hidden;
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .upload-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            padding: 8px;
            text-align: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .profile-picture:hover .upload-overlay {
            opacity: 1;
        }

        .upload-overlay i {
            color: white;
            font-size: 16px;
        }

        .profile-header h2 {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .profile-header p {
            color: #666;
        }

        .profile-info {
            margin-bottom: 25px;
        }

        .info-item {
            display: flex;
            margin-bottom: 12px;
        }

        .info-item i {
            color: var(--primary);
            width: 25px;
            margin-right: 10px;
            margin-top: 3px;
        }

        .edit-profile-btn {
            display: block;
            width: 100%;
            background-color: var(--primary);
            color: white;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s;
            text-align: center;
            text-decoration: none;
        }

        .edit-profile-btn:hover {
            background-color: var(--primary-dark);
        }

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

        .content-section {
            background: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 25px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
        }

        .section-header h2 {
            font-size: 1.5rem;
            color: var(--dark);
        }

        .section-header i {
            color: var(--primary);
            font-size: 1.2rem;
        }

        /* Assignments */
        .assignments-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .assignment-item {
            display: grid;
            grid-template-columns: 1fr auto auto;
            gap: 15px;
            align-items: center;
            padding: 15px;
            border-radius: 8px;
            background: #f9f9f9;
            transition: transform 0.3s;
        }

        .assignment-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .assignment-title {
            font-weight: 500;
        }

        .assignment-due {
            color: #666;
            font-size: 0.9rem;
        }

        .assignment-status {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .status-pending {
            background: #fff3cd;
            color: #856404;
        }

        .status-progress {
            background: #cce5ff;
            color: #004085;
        }

        .status-completed {
            background: #d4edda;
            color: #155724;
        }

        .assignment-price {
            font-weight: 600;
            color: var(--primary);
        }

        .empty-state {
            text-align: center;
            padding: 30px;
            color: #666;
        }

        .empty-state i {
            font-size: 50px;
            margin-bottom: 15px;
            color: #ccc;
        }

        /* Completed Assignments */
        .completed-assignment {
            display: grid;
            grid-template-columns: 1fr auto auto;
            gap: 15px;
            align-items: center;
            padding: 15px;
            border-radius: 8px;
            background: #f9f9f9;
            margin-bottom: 15px;
        }

        .download-btn {
            background: var(--primary);
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s;
        }

        .download-btn:hover {
            background: var(--primary-dark);
        }

        .download-btn.locked {
            background: #6c757d;
            cursor: not-allowed;
        }

        .download-btn.locked:hover {
            background: #5a6268;
        }

        /* Payment Section */
        .payment-upload {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 25px;
        }

        .file-upload-btn {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
            text-align: center;
        }

        .file-upload-btn:hover {
            background-color: var(--primary-dark);
        }

        .file-upload-btn input {
            display: none;
        }

        .payment-history {
            margin-top: 25px;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }

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

        /* Notifications */
        .notifications-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .notification-item {
            display: flex;
            align-items: flex-start;
            padding: 15px;
            border-radius: 8px;
            background: #f8f9fa;
        }

        .notification-item i {
            color: var(--info);
            margin-right: 15px;
            font-size: 1.2rem;
            margin-top: 3px;
        }

        .notification-content {
            flex: 1;
        }

        .notification-time {
            font-size: 0.8rem;
            color: #666;
            margin-top: 5px;
        }

        /* Settings */
        .settings-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

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

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

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border);
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

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

        .danger-zone {
            margin-top: 30px;
            padding: 20px;
            border-radius: 8px;
            background: #f8d7da;
            border: 1px solid #f5c6cb;
        }

        .danger-zone h3 {
            color: #721c24;
            margin-bottom: 15px;
        }

        .delete-btn {
            background: var(--danger);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
        }

        .delete-btn:hover {
            background: #c82333;
        }

        /* Tabs */
        .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .tab-btn {
            padding: 10px 20px;
            background: #e9ecef;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

        .tab-btn.active {
            background: var(--primary);
            color: white;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Footer */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 30px 0;
            text-align: center;
            margin-top: 50px;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .social-links {
            margin-bottom: 20px;
        }

        .social-links a {
            color: white;
            font-size: 20px;
            margin: 0 10px;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: var(--primary);
        }

        /* Responsive */
        @media (max-width: 900px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .profile-sidebar {
                order: 2;
            }
            
            .profile-content {
                order: 1;
            }
        }

        @media (max-width: 768px) {            
            .assignment-item, .completed-assignment {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 10px;
            }
        }

            @media (max-width: 500px) {
        .navigation_bar ul li a{
       font-size: 13px;
      }
      .hero_text div h3 {
    font-size: 17px;
    }
     .navigation_bar ul li{
     list-style: none;
    padding: 1rem 0.2rem;
   }    
     }    

     @media (max-width: 350px) {
            .navigation_bar ul li a {
                font-size: 12px;
            }

            .text-testimonials {
                min-width: 250px;
            }
            .testimonial-card{
                padding: 15px;
            }
            .video-testimonial{
                min-width: 200px;
            }
            .navigation_bar {
                justify-content: left;
                align-items: flex-start;
            }

            .navigation_bar ul {
                justify-content: left;
                align-items: flex-start;
            }
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup box */
.popup-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.popup-box h3 {
  margin-bottom: 10px;
  color: #333;
}

.popup-box p {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

/* Buttons */
.popup-actions {
  display: flex;
  justify-content: space-around;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-secondary {
  background: #bdc3c7;
  color: #333;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}

/* Animation */
@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.notification-status {
  font-size: 13px;
  font-weight: bold;
   color: #f39c12;
  margin-top: 4px;
}

