/* ===== RESET ET BASE ===== */
html, body {
    margin: 0; padding: 0;
    width: 100vw; min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #000;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== HEADER STRAVA ===== */
.header-strava {
    width: 100vw;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
    margin: 0;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 12px #0001;
}
.header-strava .logo {
    font-weight: bold;
    color: #fc4c02;
    font-size: 1.5rem;
    margin-left: 150px;
    letter-spacing: 0.02em;
}
.strava-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.strava-nav a {
    text-decoration: none;
    color: #444;
    font-size: 1.07rem;
    font-weight: 500;
    margin: 0 7px;
    transition: color 0.13s;
    padding: 6px 10px;
    border-radius: 7px;
}
.strava-nav a.active, .strava-nav a:hover {
    color: #fff;
    background: #fc4c02;
}
.header-strava .user-box {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-right: 32px;
}
.header-strava .notif-bell {
    font-size: 22px;
    color: #fc4c02;
    background: #f4f4f4;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 3px;
}
.header-strava .login-links {
    display: flex;
    gap: 14px;
    align-items: center;
}
.header-strava .login-links a {
    color: #fc4c02;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    transition: color 0.13s;
}
.header-strava .login-links a:hover {
    color: #ff7600;
    text-decoration: underline;
}

/* ===== MENU PROFIL ===== */
.profile-dropdown {
    position: relative;
    display: inline-block;
}
.mini-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fc4c02;
    cursor: pointer;
    object-fit: cover;
    background: #f7f7f7;
    box-shadow: 0 1px 5px #fc4c0230;
    transition: box-shadow .14s;
}
.profile-menu-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 15px;
    box-shadow: 0 8px 26px #0004;
    z-index: 101;
    padding: 13px 0 8px 0;
    font-size: 1.08rem;
    text-align: left;
    animation: fadeIn .18s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-9px);}
    to { opacity: 1; transform: translateY(0);}
}
.profile-menu-dropdown.open {
    display: block;
}
.profile-menu-dropdown .profile-name {
    font-weight: 700;
    color: #fc4c02;
    font-size: 1.10rem;
    padding: 6px 20px 7px 20px;
    border-bottom: 1px solid #f3f3f3;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
.profile-menu-dropdown a {
    display: block;
    padding: 8px 20px;
    color: #232323;
    text-decoration: none;
    border-radius: 7px;
    margin: 0 0 2px 0;
    transition: background .13s, color .13s;
}
.profile-menu-dropdown a:hover {
    background: #fc4c0220;
    color: #fc4c02;
}

/* ===== BG SLIDESHOW ===== */
.bg-slideshow-wrap {
    position: absolute;
    left: 0; right: 0;
    top: 62px;
    bottom: 0;
    width: 100vw;
    z-index: 1;
    display: flex;
    pointer-events: none;
    background: #000;
    overflow: hidden;
}
.bg-slide {
    width: 50vw;
    height: 100%;
    min-height: 350px;
    background-position: center 23%;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-image 1.1s, opacity 0.7s;
}

/* ===== DASHBOARD & CENTRE ===== */
.dashboard {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 70px 20px 30px 20px;
    min-height: 80vh;
    position: relative;
    z-index: 2;
}
.sidebar, .rightbar {
    background: rgba(250,250,250,0.84);
    border-radius: 21px;
    box-shadow: 0 3px 16px #0002;
    padding: 30px 23px;
    min-width: 225px;
    max-width: 270px;
    text-align: center;
}
.feed {
    flex: 1 1 630px;
    background: rgba(250,250,250,0.88);
    border-radius: 23px;
    box-shadow: 0 3px 16px #0002;
    padding: 30px 28px 30px 28px;
    min-width: 340px;
    max-width: 700px;
}
.activity-card {
    background: rgba(255,255,255,0.93);
    border-radius: 17px;
    box-shadow: 0 2px 12px #0002;
    margin-bottom: 28px;
    padding: 21px 20px 15px 20px;
    position: relative;
}
.user-info {
    text-align: center;
    margin-bottom: 18px;
}
.user-photo, .avatar {
    width: 83px;
    height: 83px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fc4c02;
    margin-bottom: 12px;
    background: #fff;
}
.quick-icons {
    margin-top: 9px;
    font-size: 1.23rem;
    color: #fc4c02;
}
.activity-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 7px;
}
.activity-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fc4c02;
}
.activity-meta {
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 7px;
}
.activity-actions {
    margin-top: 10px;
    display: flex;
    gap: 13px;
}
.activity-actions button {
    border: none;
    border-radius: 7px;
    padding: 7px 18px;
    background: linear-gradient(90deg,#ffa700 0%,#ff7600 100%);
    color: #222;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.98rem;
    box-shadow: 0 1px 6px #ffa70018;
    transition: background 0.15s;
}
.activity-actions button:hover {
    background: linear-gradient(90deg,#ffc35b 0%,#ff9800 100%);
}
.module {
    background: rgba(255,255,255,0.94);
    border-radius: 13px;
    box-shadow: 0 1px 8px #0001;
    padding: 17px 13px 15px 13px;
    margin-bottom: 21px;
}

/* ===== FORMULAIRES ===== */
.main-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-height: 420px;
}
.login-form-wrapper,
.register-form-wrapper {
    background: rgba(245,245,245,0.82);
    border-radius: 24px;
    box-shadow: 0 3px 20px 0 #0006;
    width: 360px;
    max-width: 90vw;
    min-width: 260px;
    margin: 44px 0 44px 0;
    padding: 36px 22px 27px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    pointer-events: auto;
}
.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-form h2,
.register-form h2 {
    text-align: center;
    margin-bottom: 13px;
    color: #232323;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.divider {
    text-align: center;
    margin: 10px 0 3px 0;
    position: relative;
}
.divider span {
    background: rgba(245,245,245,0.92);
    padding: 0 10px;
    color: #999;
    font-size: 0.97rem;
    position: relative;
    z-index: 2;
}
.divider:before, .divider:after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 32%;
    background: #ccc;
    position: absolute;
    top: 50%;
}
.divider:before { left: 0; }
.divider:after { right: 0; }
.login-form label,
.register-form label {
    color: #232323;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.login-form input[type="email"],
.login-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    border: 1px solid #bbb;
    outline: none;
    padding: 7px 10px;
    border-radius: 7px;
    margin-bottom: 2px;
    font-size: 0.96rem;
    background: #fff;
    color: #222;
    transition: border-color .12s;
    box-shadow: 0 1px 3px #0001;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form input[type="password"]:focus {
    border-color: #fc4c02;
}
.submit-btn {
    width: 100%;
    background: linear-gradient(90deg,#ffa700 0%,#ff7600 100%);
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 0 10px 0;
    font-size: 1.07rem;
    margin-top: 9px;
    margin-bottom: 0;
    box-shadow: 0 2px 14px #ffa70018;
    cursor: pointer;
    transition: background .14s;
    letter-spacing: 0.01em;
}
.submit-btn:hover {
    background: linear-gradient(90deg,#ffc35b 0%,#ff9800 100%);
}
.register-link,
.login-link {
    text-align: center;
    color: #fc4c02;
    margin-top: 11px;
    font-size: 0.97rem;
}
.register-link a,
.login-link a { color: #fc4c02; text-decoration: underline; }

/* ===== FOOTER ===== */
.footer-strava {
    width: 100vw;
    background: #fff;
    border-top: 1px solid #eee;
    color: #888;
    text-align: center;
    font-size: 0.96rem;
    padding: 22px 7px 16px 7px;
    letter-spacing: 0.02em;
    position: relative;
    bottom: 0; left: 0;
    z-index: 10;
}
.footer-strava a { color: #fc4c02; margin: 0 6px; text-decoration: none; }
.footer-strava a:hover { text-decoration: underline; color: #ff7600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .dashboard {
        flex-direction: column;
        align-items: stretch;
    }
    .sidebar, .rightbar, .feed {
        max-width: 98vw;
        margin-bottom: 20px;
    }
}
@media (max-width: 900px) {
    .bg-slideshow-wrap { flex-direction: column; min-height: 300px; }
    .bg-slide { width: 100vw; height: 48vw; min-height: 180px; }
    .bg-slide.bg-right { display: none; }
    .login-form-wrapper,
    .register-form-wrapper { max-width: 98vw; min-width: 0; }
}

@media (max-width: 700px) {
    .profile-container {
        max-width: 98vw;
        padding: 12px 4vw 18px 4vw;
    
}
@media (max-width: 700px) {
    .profile-container {
        max-width: 98vw !important;
        padding: 14px 6vw 16px 6vw !important;
    }


.main-content {
    position: relative !important;
    z-index: 11 !important;

}
	.profile-container {
    background: rgba(245,245,245,0.82);
    border-radius: 24px;
    box-shadow: 0 3px 20px 0 #0006;
    width: 410px;
    max-width: 98vw;
    min-width: 260px;
    margin: 54px auto 44px auto;
    padding: 34px 22px 27px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}
.profile-container {
    max-width: 450px;
    margin: 68px auto 45px auto;
    background: rgba(250,250,250,0.95);  /* Fond blanc translucide (95% opaque) */
    border-radius: 23px;
    box-shadow: 0 6px 32px #0003;
    padding: 36px 28px 32px 28px;
    z-index: 2;
    position: relative;
    border: 1.5px solid #eee;
    backdrop-filter: blur(1.5px); /* Pour lisser un peu le fond d’images derrière */
}
.logo-pasundoux img {
  height: 140px;
  max-width: 180px;
  margin-left: 14px;
  margin-right: 18px;
  object-fit: contain;
  display: inline-block;
  background: none;
}
@media (max-width: 700px) {
  .logo-pasundoux img { height: 140px; max-width: 155px; }
}

.btn-create-event {
    display: inline-block;
    background: linear-gradient(90deg,#ffa700 0%,#ff7600 100%);
    color: #222;
    font-weight: bold;
    border-radius: 10px;
    padding: 8px 20px 8px 14px;
    margin-right: 24px;
    font-size: 1.09rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 2px 10px #fc4c0220;
    border: none;
    transition: background .14s, box-shadow .14s;
}
.btn-create-event:hover {
    background: linear-gradient(90deg,#ffc35b 0%,#ff9800 100%);
    color: #111;
    box-shadow: 0 6px 20px #fc4c0235;
    text-decoration: none;
}
	.notif-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: #fc4c02;
    color: #fff;
    font-size: 0.83em;
    font-weight: 800;
    padding: 2px 7px 2px 7px;
    border-radius: 16px;
    min-width: 19px;
    text-align: center;
    z-index: 9;
    box-shadow: 0 2px 5px #0002;
}
.notif-dropdown {
    min-width: 340px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 36px #0002;
    border: 1px solid #f7ad6c;
    overflow: hidden;
}
.notif-item {
    transition: background .17s;
}
.notif-item:hover {
    background: #ffe3c2 !important;
}
.notif-bell {
    position: relative;
    font-size: 1.7em;
    cursor: pointer;
    margin-right: 13px;
}
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84vh;
}
.register-form-wrapper {
    background: rgba(245,245,245,0.95);
    border-radius: 24px;
    box-shadow: 0 3px 20px 0 #0005;
    width: 410px; /* tu peux mettre 430px ou plus si tu veux */
    max-width: 96vw;
    min-width: 260px;
    margin: 0 auto;
    padding: 40px 27px 29px 27px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    pointer-events: auto;
    backdrop-filter: blur(2px);
}
.register-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.register-form > div { width: 100%; }


@media (max-width: 650px) {
    .event-detail-card {
        max-width: 97vw;
        padding: 18px 4vw 18px 4vw;
        margin: 22px auto 22px auto;
    }
.event-detail-card {
    max-width: 540px;
    margin: 60px auto 60px auto;
    background: rgba(245,245,245,0.88);   /* Le même blanc transparent que login */
    border-radius: 24px;
    box-shadow: 0 3px 20px 0 #0006;
    padding: 38px 32px 32px 32px;
    z-index: 2;
    position: relative;
    border: none;      /* ou border: 1.5px solid #eee; si tu veux une petite bordure comme le login */
    backdrop-filter: blur(2px);
}

/* Mobile adaptation */
@media (max-width: 650px) {
    .event-detail-card {
        max-width: 97vw;
        padding: 18px 4vw 18px 4vw;
        margin: 22px auto 22px auto;
    }
}
.event-detail-card h1,
.event-detail-card,
.event-detail-card * {
    color: #222 !important; /* texte foncé sur fond pâle */
}
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#statsModal {
    width: 90%;
    max-width: 400px;
}

#statsModal table th, #statsModal table td {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

#statsModal p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    text-align: center;
}
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start;
}

.image-preview {
  position: relative;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 5px #999;
  transition: transform 0.2s ease;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.image-preview:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px #fff;
}

.delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.delete-btn:hover {
  background-color: rgba(255,0,0,0.8);
}

.create-form-wrapper h3 {
  margin-top: 30px;
  font-size: 18px;
  color: #fff;
}
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start;
}

.image-preview {
  position: relative;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 5px #999;
  transition: transform 0.2s ease;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.image-preview:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px #fff;
}

.delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 2p
body {
  background-color: #f8f8f8;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.main-content {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

h2, h3 {
  margin-top: 0;
  color: #444;
}

label {
  display: block;
  margin: 15px 0 5px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

button[type="submit"] {
  background-color: #ff6b00;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #e66000;
}

.error-msg {
  background-color: #ffd2d2;
  color: #a40000;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.image-preview .delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
}

.image-preview .delete-btn:hover {
  background: rgba(255, 0, 0, 0.8);
}
#photo-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.photo-thumb {
    position: relative;
    width: 120px;
    height: 120px;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0002;
}
.photo-thumb .delete-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 5px #0003;
}
body, .dashboard, main, .main-content {
    background: transparent !important;
}
#text-block {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    border-radius: 12px; /* Coins arrondis */
    margin-bottom: 20px; /* Espacement sous le texte */
    font-size: 1.2em;
    text-align: center; /* Centrer le texte */
    color: #333; /* Couleur du texte */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
}
	html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer.footer-strava {
  position: relative;
  z-index: 9999;
}

