body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
   
    font-family: Helvetica, Arial, sans-serif;
    height: 100vh;
}

header {
    width: 100%;
    
    /* background-color: #007bff; */
    color: #333;
    font-family:  Helvetica, Arial, sans-serif;
    padding: 30px 0px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50%;
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
}

header .logo {
    width: 250px;
}

header nav {
    margin-right: 20px;
}

header nav .btn , .btn1 {
    font-size: 16px;
    background-color: #171f33;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 10px;
    font-family:  Helvetica, sans-serif;
}

header nav .btn {
    color: #ffffff;
    background-color: #000000;
    font-weight: bold;
}

header nav .btn1 {
    color: #3b1465;
    background-color: transparent;
    font-weight: bold;
    border: 1px solid #3b1465;
    text-decoration: none;
   
  
}

header nav .btn:hover {
     background: radial-gradient(
      circle at 0% 0%,
      #d47ce8 0%,
      #a44bd5 30%,
      #6a24b8 55%,
      #2b0e58 90%
    ),
    linear-gradient(
      90deg,
      #8a2be2 0%,
      #3b1465 100%
    );
background-blend-mode: overlay;
    color: #ffffff;
}

header nav .btn1:hover {
     background: radial-gradient(
      circle at 0% 0%,
      #d47ce8 0%,
      #a44bd5 30%,
      #6a24b8 55%,
      #2b0e58 90%
    ),
    linear-gradient(
      90deg,
      #8a2be2 0%,
      #3b1465 100%
    );
    text-decoration: none;
    color: #ffffff;
    border: none;
}

.btn2 {
    color: #3b1465;
    background-color: transparent;
    font-weight: bold;
    border: 1px solid #3b1465;
}





.btn2:hover {
     background: radial-gradient(
      circle at 0% 0%,
      #d47ce8 0%,
      #a44bd5 30%,
      #6a24b8 55%,
      #2b0e58 90%
    ),
    linear-gradient(
      90deg,
      #8a2be2 0%,
      #3b1465 100%
    );
background-blend-mode: overlay;
    color: #000000;
}

.banner {
    background: radial-gradient(
      circle at 0% 0%,
      #d47ce8 0%,
      #a44bd5 30%,
      #6a24b8 55%,
      #2b0e58 90%
    ),
    linear-gradient(
      90deg,
      #8a2be2 0%,
      #3b1465 100%
    );
    background-blend-mode: overlay;
    color: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 120px 40px;
    border-radius: 30px;
    margin:15px 5% ;
    width: 70%;
    /* height: 600px; */
    position: relative;
    gap: 15px;
}

.banner h1 {
    font-size: 102px;
    margin: 0 0 10px 0;
    font-family: "chewy";
}

.banner p {
    margin-top: 50px;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-family:  Helvetica, sans-serif;
    width: 70%;
}

.btn-event {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    font-family:  Helvetica, sans-serif;
}

.gauche-image-haut {
    top: 40px;
    left: 40px;
    rotate: calc(10deg);
    border: 10px solid #fff;
}

.droit-image-haut {
    top: 40px;
    right: 40px;
    rotate: calc(-10deg);
    border: 10px solid #000000;
}

.gauche-image-bas {
   
    bottom: 40px;
    left: 40px;
    rotate: calc(-10deg);
    border: 10px solid #fff;
}
.droit-image-bas {
    bottom: 40px;
    right: 40px;
    rotate: calc(10deg);
    border: 10px solid #000000;
}

.banner img {
    position: absolute;
    width: 220px;   /* adapte la taille selon ton besoin */
    height: auto;
    border-radius: 20px;
    
}


.page{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    
}

.liste{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  
    
}
.all-event {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 80%;
}

/* CARD */


/* IMAGE */
.event-image {
    position: relative;
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* BADGE JEU */
.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* CONTENT */
.event-content {
    padding: 16px;
}

.event-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
}

/* INFOS */
.event-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    color: rgb(97, 97, 97);
}

.info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message {
    color: red;
    margin-top: 10px;
}







.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #fff;
    padding: 30px;
    width: 400px;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
}

.popup-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.popup-btn {
    width: 100%;
    padding: 12px;
    background: #6a24b8;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 99;
}

.popup-event {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 100;
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.popup h2 {
    text-align: center;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #6a24b8;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}








/* CONTAINER GLOBAL */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.admin-container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

/* SECTIONS */
.admin-section {
    margin-bottom: 50px;
}

.admin-section h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #444;
}




.logout-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}
.logout-btn:hover {
    background: #c62828;
}



.events-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}



.event-card {
    background: white;
    /* padding: 20px; */
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    cursor: pointer;
    min-width: 350px;
}

.event-card img {
    width: 100%;
    border-radius: 8px 8px 0px 0px;
    margin-bottom: 15px;
}



.event-card h3 {
    margin-top: 0;
}

.event-card .date,
.event-card .location {
    font-size: 14px;
    margin: 3px 0;
    color: #000000;
}

.event-card .desc {
    margin-top: 10px;
    color: #000000;
}

.no-events {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    color: #856404;
}

/* RESPONSIVE */
@media(max-width: 600px) {
    .events-list {
        grid-template-columns: 1fr;
    }
}


/* Animation */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Image */
.popup-image {
    width: 100%;
    border-radius: 8px;
    margin: 16px 0;
    object-fit: cover;
}

/* Actions */
.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Buttons */
.btn-primary {
    flex: 1;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1e4fd8;
}

.btn-secondary {
    flex: 1;
    background: #e5e7eb;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-event-card {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    /* border: none; */
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 20px;
    /* width: 100%; */
    font-size: 16px;
    font-weight: bold;
}

.btn-event-card:hover {
     background: radial-gradient(
      circle at 0% 0%,
      #d47ce8 0%,
      #a44bd5 30%,
      #6a24b8 55%,
      #2b0e58 90%
    ),
    linear-gradient(
      90deg,
      #8a2be2 0%,
      #3b1465 100%
    );
background-blend-mode: overlay;
    color: #ffffff;
    border: none;
}




section {
  padding: 80px 10%;
  color: black;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: Helvetica, Arial , sans-serif;
}

.how-it-works .steps {
  display: flex;
  justify-content: center;
  gap: 30px;
width: 80%;
  margin: auto;
 
}

.step {
    background: linear-gradient(135deg, #b833ff, #1b004f);
    color: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
    width: 250px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.step span {
  font-size: 40px;
}



.faq-item {
  max-width: 800px;
  margin: 20px auto;
background: linear-gradient(135deg, #b833ff, #1b004f);
  color: white;
  padding: 20px;
  border-radius: 15px;
}

.footer {
  background: linear-gradient(135deg, #b833ff, #1b004f);
  color: white;
  padding: 50px 50px;
  width: 100%;
  max-width: 100%;
    box-sizing: border-box;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer a {
  display: block;
  color: white;
  opacity: 0.8;
  margin: 6px 0;
  text-decoration: none;
}

.footer a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  opacity: 0.7;
  font-size: 14px;
}
