      :root {
        --primary-color: #0056b3;
        --secondary-color: #003366;
        --accent-color: #ffcc00;
        --light-color: #f8f9fa;
        --dark-color: #212529;
      }

      body {
        font-family: "Roboto", sans-serif;
        color: var(--dark-color);
        line-height: 1.6;
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        font-family: "Playfair Display", serif;
        font-weight: 700;
      }

      .navbar {
        background-color: var(--secondary-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1030;
      }

      .navbar-brand {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        font-size: 1.8rem;
        color: white !important;
      }

      .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        font-weight: 500;
        margin: 0 8px;
        transition: all 0.3s ease;
      }

      .nav-link:hover {
        color: white !important;
        transform: translateY(-2px);
      }

      .hero-section {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        color: white;
        padding: 100px 0;
        position: relative;
        overflow: hidden;
      }

      .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("https://via.placeholder.com/1920x1080") no-repeat
          center center;
        background-size: cover;
        opacity: 0.1;
        z-index: 0;
      }

      .hero-content {
        position: relative;
        z-index: 1;
      }

      .feature-card {
        border: none;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        height: 100%;
      }

      .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
      }

      .feature-icon {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
      }

      .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        padding: 10px 25px;
        font-weight: 500;
        border-radius: 50px;
      }

      .btn-primary:hover {
        background-color: #004494;
        border-color: #004494;
      }

      .btn-outline-light {
        border-radius: 50px;
        padding: 10px 25px;
        font-weight: 500;
      }

      .stats-section {
        background-color: var(--light-color);
        padding: 80px 0;
      }

      .stat-number {
        font-size: 3rem;
        font-weight: 700;
        color: var(--primary-color);
      }

      .testimonial-card {
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      }

      .footer {
        background-color: var(--secondary-color);
        color: white;
        padding: 60px 0 30px;
      }

      .footer-link {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
      }

      .footer-link:hover {
        color: white;
        text-decoration: underline;
      }

      .social-icon {
        color: white;
        font-size: 1.5rem;
        margin-right: 15px;
        transition: all 0.3s ease;
      }

      .social-icon:hover {
        color: var(--accent-color);
        transform: translateY(-3px);
      }

      .badge-accent {
        background-color: var(--accent-color);
        color: var(--dark-color);
      }

      @media (max-width: 768px) {
        .hero-section {
          padding: 60px 0;
        }

        .display-3 {
          font-size: 2.5rem;
        }
      }


/* Nouveaux styles pour la bannière RGPD */
      #gdpr-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #003366, #0056b3);
        color: white;
        padding: 20px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
        font-family: "Roboto", sans-serif;
      }

      #gdpr-banner.show {
        transform: translateY(0);
      }

      .gdpr-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
      }

      .gdpr-content {
        flex: 1;
        min-width: 300px;
        padding-right: 20px;
      }

      .gdpr-icon {
        font-size: 24px;
        margin-right: 15px;
        color: #ffcc00;
      }

      .gdpr-title {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
      }

      .gdpr-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
      }

      .gdpr-text a {
        color: #ffcc00;
        text-decoration: underline;
      }

      .gdpr-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .gdpr-btn {
        padding: 10px 20px;
        border-radius: 50px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        border: none;
      }

      .gdpr-btn-accept {
        background-color: #ffcc00;
        color: #003366;
      }

      .gdpr-btn-accept:hover {
        background-color: #e6b800;
      }

      .gdpr-btn-settings {
        background-color: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .gdpr-btn-settings:hover {
        background-color: rgba(255, 255, 255, 0.1);
      }

      .gdpr-btn-reject {
        background-color: transparent;
        color: white;
      }

      .gdpr-btn-reject:hover {
        text-decoration: underline;
      }

      /* Modal de paramètres */
      .gdpr-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        overflow-y: auto;
      }

      .gdpr-modal-content {
        background-color: white;
        max-width: 800px;
        margin: 50px auto;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        color: #212529;
      }

      .gdpr-modal-header {
        background: linear-gradient(135deg, #003366, #0056b3);
        color: white;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .gdpr-modal-title {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
      }

      .gdpr-modal-close {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
      }

      .gdpr-modal-body {
        padding: 25px;
      }

      .gdpr-category {
        margin-bottom: 25px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
      }

      .gdpr-category:last-child {
        border-bottom: none;
      }

      .gdpr-category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
      }

      .gdpr-category-title {
        font-weight: 700;
        font-size: 18px;
        margin: 0;
      }

      .gdpr-category-toggle {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
      }

      .gdpr-category-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
      }

      .gdpr-category-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
      }

      .gdpr-category-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
      }

      input:checked + .gdpr-category-slider {
        background-color: #0056b3;
      }

      input:checked + .gdpr-category-slider:before {
        transform: translateX(26px);
      }

      .gdpr-category-required .gdpr-category-toggle {
        opacity: 0.5;
        pointer-events: none;
      }

      .gdpr-category-required .gdpr-category-slider {
        background-color: #0056b3;
      }

      .gdpr-category-desc {
        font-size: 14px;
        color: #666;
        margin-bottom: 0;
      }

      .gdpr-modal-footer {
        padding: 20px;
        background-color: #f8f9fa;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }

      .gdpr-modal-btn {
        padding: 10px 20px;
        border-radius: 50px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
      }

      .gdpr-modal-btn-save {
        background-color: #0056b3;
        color: white;
      }

      .gdpr-modal-btn-save:hover {
        background-color: #004494;
      }

      .gdpr-modal-btn-cancel {
        background-color: transparent;
        color: #0056b3;
        border: 1px solid #0056b3;
      }

      .gdpr-modal-btn-cancel:hover {
        background-color: rgba(0, 86, 179, 0.1);
      }

      @media (max-width: 768px) {
        .gdpr-container {
          flex-direction: column;
        }

        .gdpr-content {
          padding-right: 0;
          margin-bottom: 15px;
        }

        .gdpr-buttons {
          width: 100%;
          justify-content: center;
        }

        .gdpr-modal-content {
          margin: 20px;
        }
      }


      /* Register */

       .user-type-btn {
        border: 2px solid var(--primary-color);
        background: white;
        color: var(--primary-color);
        padding: 15px;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 15px;
      }

      .user-type-btn:hover, .user-type-btn.active {
        background: var(--primary-color);
        color: white;
      }

      .user-type-btn i {
        font-size: 2rem;
        margin-bottom: 10px;
        display: block;
      }

      .form-section {
        display: none;
      }

      .form-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
      }

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

      @media (max-width: 768px) {
        .hero-section {
          padding: 60px 0;
        }

        .display-3 {
          font-size: 2.5rem;
        }
      }

    /*end */


    /* Erreur 419 */

    /* 419 Error Page - Custom Styles */
    .error-419-page {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        color: white;
        position: relative;
        overflow: hidden;
    }

    .error-419-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        opacity: 0.3;
        z-index: 0;
    }

    .error-419-content {
        position: relative;
        z-index: 1;
        max-width: 800px;
    }

    .error-419-icon {
        font-size: 8rem;
        color: var(--accent-color);
        margin-bottom: 2rem;
        animation: pulse 2s infinite;
    }

    .error-419-title {
        font-family: "Playfair Display", serif;
        font-size: 4rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .error-419-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .error-419-message {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        line-height: 1.8;
        opacity: 0.85;
    }

    .error-419-btn {
        display: inline-block;
        background-color: var(--accent-color);
        color: var(--secondary-color);
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .error-419-btn:hover {
        background-color: white;
        color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .error-419-links {
        margin-top: 3rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .error-419-link {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .error-419-link:hover {
        color: white;
        text-decoration: underline;
    }

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    @media (max-width: 768px) {
        .error-419-icon {
            font-size: 6rem;
        }

        .error-419-title {
            font-size: 2.5rem;
        }

        .error-419-subtitle {
            font-size: 1.2rem;
        }
    }

    /* end 419 */


    /* Styles spécifiques aux fiches de cours */
    .fiche-card {
        border-left: 4px solid var(--primary-color);
        transition: all 0.3s;
    }

    .fiche-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .fiche-card .btn-download {
        opacity: 0;
        transition: all 0.3s;
    }

    .fiche-card:hover .btn-download {
        opacity: 1;
    }

    .filter-controls .btn {
        border-radius: 50px;
        margin: 0 5px;
    }

    .badge-niveau {
        font-size: 0.7rem;
        padding: 3px 10px;
        border-radius: 50px;
    }

    .price-badge {
        background-color: #e6f7ff;
        color: var(--primary-color);
        font-weight: 500;
    }

    /* Modal d'achat */
    .modal-achat .modal-header {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
    }

    .modal-achat .modal-title {
        font-family: "Playfair Display", serif;
    }

    .payment-option {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .payment-option:hover {
        border-color: var(--primary-color);
        background-color: rgba(0, 86, 179, 0.05);
    }

    .payment-option.selected {
        border-color: var(--primary-color);
        background-color: rgba(0, 86, 179, 0.1);
    }

    .payment-option i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-right: 10px;
    }

    /* Fin style fiche de cours */


     /* Nouveaux styles spécifiques à la page répétiteurs */
      .tutor-hero {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        color: white;
        padding: 80px 0 120px;
        position: relative;
        overflow: hidden;
      }

      .tutor-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("https://images.unsplash.com/photo-1588072432836-e10032774350?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80")
          no-repeat center center;
        background-size: cover;
        opacity: 0.1;
        z-index: 0;
      }
      .filter-section.sticky-top {
        z-index: 1; /* ou même 0 */
      }

      .search-card {
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        margin-top: -60px;
        position: relative;
        z-index: 10;
        border: none;
      }

      .search-card .card-header {
        background-color: var(--accent-color);
        color: var(--dark-color);
        font-weight: 700;
        border-radius: 12px 12px 0 0 !important;
        padding: 20px;
        border: none;
      }

      .tutor-card {
        border: none;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
        margin-bottom: 24px;
      }

      .tutor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
      }

      .tutor-card .card-body {
        padding: 25px;
      }

      .tutor-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      }

      .tutor-rating {
        color: var(--accent-color);
        margin-bottom: 10px;
      }

      .tutor-badge {
        background-color: var(--light-color);
        color: var(--dark-color);
        font-weight: 500;
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 0.8rem;
        margin-right: 8px;
        margin-bottom: 8px;
        display: inline-block;
      }

      .tutor-badge.primary {
        background-color: var(--primary-color);
        color: white;
      }

      .tutor-badge.accent {
        background-color: var(--accent-color);
        color: var(--dark-color);
      }

      .price-calculator {
        background-color: var(--light-color);
        border-radius: 10px;
        padding: 25px;
        margin-top: 20px;
      }

      .price-result {
        background-color: var(--primary-color);
        color: white;
        border-radius: 10px;
        padding: 20px;
        margin-top: 20px;
        text-align: center;
      }

      .price-amount {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0;
      }

      .select2-container--bootstrap-5
        .select2-selection--multiple
        .select2-selection__rendered
        .select2-selection__choice {
        background-color: var(--primary-color);
        color: white;
        border: none;
      }

      .select2-container--bootstrap-5
        .select2-selection--multiple
        .select2-selection__rendered
        .select2-selection__choice__remove {
        color: white;
      }

      .filter-section {
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        margin-bottom: 30px;
      }

      .tutor-feature-icon {
        color: var(--primary-color);
        margin-right: 8px;
        width: 20px;
        text-align: center;
      }

      .pagination .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }

      .pagination .page-link {
        color: var(--primary-color);
      }

      .availability-badge {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 5px;
      }

      .availability-badge.online {
        background-color: #28a745;
      }

      .availability-badge.offline {
        background-color: #6c757d;
      }

      .availability-badge.busy {
        background-color: #dc3545;
      }

      @media (max-width: 768px) {
        .tutor-hero {
          padding: 60px 0 100px;
        }

        .tutor-img {
          width: 80px;
          height: 80px;
        }
      }

      .bg-app{
        background-color: #003366;
        color: white;
      }



      .tutor-hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 80px 0;
        }

        .search-card {
        margin-top: -50px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 15px;
        }

        .tutor-card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-bottom: 20px;
        transition: transform 0.3s ease;
        }

        .tutor-card:hover {
        transform: translateY(-5px);
        }

        .tutor-img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        }

        .availability-badge {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 5px;
        }

        .availability-badge.online {
        background-color: #28a745;
        }

        .availability-badge.busy {
        background-color: #ffc107;
        }

        .availability-badge.offline {
        background-color: #6c757d;
        }

        .tutor-badge {
        display: inline-block;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        margin-right: 8px;
        margin-bottom: 8px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        }

        .tutor-badge.primary {
        background-color: #e9f7ff;
        border-color: #bee5eb;
        color: #0c5460;
        }

        .tutor-badge.accent {
        background-color: #fff3cd;
        border-color: #ffeaa7;
        color: #856404;
        }

        .price-calculator {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        }

        .price-result {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        }

        .filter-section {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        }

        .zones-checkbox-container {
        max-height: 200px;
        overflow-y: auto;
        border: 1px solid #dee2e6;
        padding: 10px;
        border-radius: 5px;
        }

        .bg-dark{
          background-color: black;
          color: white;
        }
        
        .pagination .page-item.active .page-link {
            color: white !important;
        }


    /* Fin du style spécifique aux répétiteurs */
