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

          .lien-discret {
                all: unset;
            cursor: pointer;
            }

          body {
              background-color: #f5f5f5;
          }

          body {
        overscroll-behavior-y: auto;
      }
      .pull-to-refresh {
        position: fixed;
        top: -50px;
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: top 0.7s ease-in-out;
      }
      .pull-to-refresh.visible {
        top: 0;
      }

          header {
              background-color: #2c3e50;
              color: white;
              padding:  1rem 1rem 0.8rem 1rem;
              text-align: center;
              position: fixed;
              width: 100%;
              top: 0;
              z-index: 1000;
              transition: transform 0.3s ease-in-out;
          }

          header.hidden {
              transform: translateY(-100%);
          }

          .header-content {
              max-width: 800px;
              margin: 0 auto;
              display: flex;
              justify-content: space-between;
              align-items: center;
          }

         .content {
              margin-top: 80px;
          }

          .search-container {
              max-width: 800px;
              margin: 2rem auto;
              padding: 1rem;
              background-color: white;
              border-radius: 8px;
              box-shadow: 0 2px 4px rgba(0,0,0,0.1);
          }

          .search-bar {
              display: flex;
              gap: 1rem;
              padding: 1rem;
              position: relative;
          }

          input[type="text"] {
              flex: 1;
              padding: 0.8rem;
              padding-right: 40px;
              border: 1px solid #ddd;
              border-radius: 4px;
          }

          .search-icon {
              position: absolute;
              right: 25px;
              top: 50%;
              transform: translateY(-50%);
              font-size: 20px;
              color: #3498db;
              cursor: pointer;
              background: none;
              border: none;
              padding: 0;
          }

          .search-icon:hover {
              color: #2980b9;
          }

          button {
              padding: 0.8rem 1.5rem;
              background-color: #3498db;
              color: white;
              border: none;
              border-radius: 4px;
              cursor: pointer;
              transition: background-color 0.3s;
          }

          button:hover {
              background-color: #2980b9;
          }

          .create-event {
              text-align: center;
              margin: 2rem;
          }

          .events-container, .profiles-container {
              max-width: 800px;
              margin: 0 auto;
              padding: 1rem;
              display: grid;
              grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
              gap: 1rem;
          }

          .event-card {
              background-color: white;
              border-radius: 8px;
              padding: 1rem;
              box-shadow: 0 2px 4px rgba(0,0,0,0.1);
          }

          .event-card img {
              width: 100%;
              height: 150px;
              object-fit: cover;
              border-radius: 4px;
          }

          .event-card h3 {
              margin: 1rem 0;
              color: #2c3e50;
          }

          .event-card p {
              color: #666;
              margin-bottom: 0.5rem;
          }

          .user-info {
              position: relative;
              cursor: pointer;
          }

          .user-info i {
              font-size: 24px;
              margin: 0 15px;
              height: 2rem;
          }

          .user-menu {
              display: none;
              position: absolute;
              top: 100%;
              right: 0;
              background-color: white;
              border-radius: 8px;
              box-shadow: 0 4px 8px rgba(0,0,0,0.2);
              min-width: fit-content;
              white-space: nowrap;
              z-index: 10;
              padding: 8px 0;
              margin-top: 10px;
          }

          .user-menu::before {
              content: '';
              position: absolute;
              top: -8px;
              right: 28px;
              width: 0;
              height: 0;
              border-left: 8px solid transparent;
              border-right: 8px solid transparent;
              border-bottom: 8px solid white;
          }

          .user-menu a {
              display: block;
              padding: 12px 20px;
              color: #2c3e50;
              text-decoration: none;
              transition: background-color 0.2s, color 0.2s;
              text-align: left;
          }

          .user-menu a:hover {
              background-color: #f8f9fa;
              color: #3498db;
          }

          .profile-card {
              background: #fff;
              border-radius: 10px;
              padding: 20px;
              box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
              text-align: center;
              transition: transform 0.3s ease;
          }
          .profile-card img {
              object-fit: cover;
              margin-bottom: 15px;
              border: 3px solid #f8f9fa;
          }
          .profile-card h3 {
              color: #333;
              margin-bottom: 15px;
          }
          .profile-card button {
              width: 100%;
              transition: all 0.3s ease;
          }
          .no-following {
              color: #666;
              font-size: 1.2rem;
              width: 100%;
          }

          
          .lien-discret {
              text-decoration: none;
              color: inherit;
          }

          .lien-discret {
                all: unset;
            cursor: pointer;

            }

            .lien-discret, nav a, div, button{
                -webkit-tap-highlight-color: transparent;
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                -khtml-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }
            .lien-discret:focus, nav a:focus, div:focus, button:focus{
                outline: none !important;
            }

          .active-icon {
              border-bottom: 2px solid white;
          }

          .phone-menu {
              display: none;
          }

          @media screen and (max-width: 768px) {
            *{scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */

  &::-webkit-scrollbar {
    background: transparent; /* Chrome/Safari/Webkit */
    width: 0px;}
              .pc-menu {
                  display: none;
              }
              .active-icon {
                  border-bottom: none;
              }
              .phone-menu {
                  display: block;
              }
              .user-menu {
                  width: fit-content;
                  right: -10px;
              }
              .user-info:hover .user-menu {
                  display: block;
              }
          }
        }

        

#consulter-evenement {
    .lien {
        text-decoration: none;
        color: black;
    }
    .lien:hover {
        text-decoration: underline;
    }
    .event-details {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .image-container {
        width: 100%;
        padding-top: 50%;
        position: relative;
        margin-bottom: 2rem;
    }

    .event-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .event-info {
        margin-bottom: 2rem;
    }

    .event-info h2 {
        color: #2c3e50;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .event-info p {
        color: #666;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .event-actions {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .back-button {
        background-color: #95a5a6;
    }

    .back-button:hover {
        background-color: #7f8c8d;
    }
    
    form {
        display: inline;
    }
    
    a {
        display: inline;
    }
}

#creer-evenement {
    .event-title {
        margin-bottom: 1.5rem;
        color: #2c3e50;
    }
    
    .categories-container {
        width: 300px;
    }
    
    .categories-wrapper {
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .search-container {
        padding: 8px;
        border-bottom: 1px solid #ccc;
    }
    
    .checkbox-list {
        height: 200px;
        overflow-y: auto;
        padding: 8px;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
    }
    
    .checkbox-text {
        margin-left: 8px;
    }
    
    .annonciateur-label {
        display: flex;
        align-items: center;
    }
    .form-control {
        padding: 8px;
        border: none;
        width: 100%;
        outline: none;
    }

    .checkbox-item {
        padding: 4px 0;
    }

    .checkbox-item label {
        margin-left: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .checkbox-item input[type="checkbox"] {
        cursor: pointer;
        margin: 0;
    }

    .text-danger {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    .form-container {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    label {
        display: block;
        margin-bottom: 0.5rem;
        color: #2c3e50;
        font-weight: bold;
    }

    input[type="text"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
    }

    select[multiple] {
        height: 150px;
    }

    textarea {
        height: 150px;
        resize: vertical;
    }

    .custom-file-input {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .custom-file-input input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .custom-file-input .file-label {
        display: block;
        padding: 0.8rem;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-align: center;
        color: #2c3e50;
        transition: all 0.3s ease;
    }

    .custom-file-input:hover .file-label {
        background-color: #e9ecef;
        border-color: #2c3e50;
    }

    .image-preview {
        width: 100%;
        height: 200px;
        border: 2px dashed #ddd;
        border-radius: 4px;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .button-group {
        display: flex;
        gap: 1rem;
    }

    .button-group button {
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
    }

    .back-button {
        background-color: #2c3e50;
        color: white;
        border: none;
    }

    .back-button:hover {
        background-color: #34495e;
    }
}

.text-center {
    text-align: center;
    margin-top:2em;
}

#inviter-utilisateurs {
    .form-container {
            max-width: 800px;
            margin: 2rem auto;
            padding: 2rem;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .page-title {
            margin-bottom: 1.5rem;
            color: #2c3e50;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .select-container {
            width: 300px;
        }

        .select-box {
            border: 1px solid #ccc;
            border-radius: 4px;
            width: 90%;
        }

        .search-box {
            padding: 8px;
            border-bottom: 1px solid #ccc;
        }

        .checkbox-list {
            height: 200px;
            overflow-y: auto;
            padding: 8px;
        }

        .no-users {
            text-align: center;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            color: #2c3e50;
            font-weight: bold;
        }

        .form-control {
            padding: 8px;
            border: none;
            width: 100%;
            outline: none;
        }

        .checkbox-item {
            padding: 4px 0;
        }

        .checkbox-item label {
            margin-left: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        .checkbox-item input[type="checkbox"] {
            cursor: pointer;
            margin: 0;
        }

        .user-name {
            margin-left: 8px;
        }

        .text-danger {
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

        .button-group {
            display: flex;
            gap: 1rem;
        }

        .button-group button {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
        }

        .back-button {
            background-color: #2c3e50;
            color: white;
            border: none;
        }

        .back-button:hover {
            background-color: #34495e;
        }
}

#participants{
    .participants-list {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
    }

    .participant-card {
        background: white;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }

    .participant-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .participant-info {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .participant-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }

    .participant-details {
        flex-grow: 1;
    }

    .participant-details h3 {
        margin: 0;
        color: #333;
        font-size: 1.2rem;
    }

    .inscription-date {
        color: #666;
        font-size: 0.9rem;
        margin: 5px 0 0 0;
    }

    .no-participants {
        text-align: center;
        color: #666;
        font-style: italic;
        padding: 20px;
    }

    h1 {
        color: #2c3e50;
        font-weight: bold;
        margin-bottom: 30px;
    }

    .return-button {
        padding: 10px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 25px;
        transition: all 0.3s ease;
        background-color: #6c757d;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .return-button:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }
}

#demandes{
    .profile-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
        }
        .button-container {
            display: flex;
            gap: 10px;
        }
        .accept-button {
            background-color: #2ecc71;
        }
        .refuse-button {
            background-color: #e74c3c;
        }
        .form-style {
            flex: 1;
        }
}

#profil {
    .profile-details {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .profile-info {
        margin-bottom: 2rem;
    }

    .profile-info h2 {
        color: #2c3e50;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .profile-info p {
        color: #666;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .profile-actions {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .back-button {
        background-color: #95a5a6;
    }

    .back-button:hover {
        background-color: #7f8c8d;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
        border: 3px solid #3498db;
    }

    form {
        display: inline;
    }
}