/* Main styles */

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: #DCD7C9;
}

main {
  flex: 1;
}

.conteneur {
    display: flex;
    justify-content: center;
    gap: 70px;
    padding: 25px;
    padding-top: 0px;
}

.carte {
    width: 400px;       /* plus large */
    height: 600px;      /* plus haute */

    background-color: #A27B5C;
    border-radius: 25px;

    padding: 35px;
    box-sizing: border-box;

    color: white;
    
    /* texte centré */
    text-align: center;
}

.carte h2 {
    text-align: center;
    margin-top: 0;
    font-size: 25px;
}

.carte p {
    font-size: 17px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.stat {
    text-align: center;
}

.cercle {
    width: 120px;
    height: 120px;

    border: 10px solid #8b4de8;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: auto;
}

.cercle span {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.stat p {
    margin-top: 10px;
    color: white;
}

.progression {
    width: 120px;
    height: 120px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    background: conic-gradient(
        #8b4de8 0deg,
        #d0d0d0 0deg
    );
}

.progression::before {
    content: "";
    position: absolute;

    width: 95px;
    height: 95px;

    background: #0754ad;
    border-radius: 50%;
}

.progression span {
    position: relative;
    z-index: 1;

    color: white;
    font-size: 25px;
    font-weight: bold;
}

.titre {
    text-align: center;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: black;
}

/* Custom Footer Styles */

.custom-footer {
    background-color: #2C3639;
    
    background-size: cover;
    background-position: center;
    padding: 0px 0 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 400;
    margin: 0; /* Fix for blank space issue */
    margin-top: auto;
}

.footer-content {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff; /* Fixed heading color issue */
}

.footer-column p {
    color: #e2e8f0; /* Fixed text color issue */
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
    color: #e2e8f0; /* Fixed text color issue */
}

.footer-column a {
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #f00557;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
}

.copyright {
    font-size: 0.9rem;
    color: inherit;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #f00557;
    color: white;
}

.back-to-top {
    background-color: #f00557;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top.is-hidden {
    display: none;
}

.back-to-top:hover {
    background-color: #d6064f;
}

/* Animation classes */
.footer-hover-scale a:hover {
    transform: scale(1.05);
}

.footer-hover-glow a:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-hover-slide a:hover {
    transform: translateY(-3px);
}

.footer-floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.footer-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.footer-slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-column {
        min-width: 100%;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
    }
}

/* NavBar */
.gen-nav {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #2b3738, #3F4E4F);
  min-height: 51px;
  border-radius: 0px;
  border: 0px solid #1e3a8a;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  padding: 0 16px;
  position: relative;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  
  display: flex;
}
.gen-nav *, .gen-nav *::before, .gen-nav *::after {
  box-sizing: border-box;
}
.gen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gen-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.gen-logo a {
    cursor: default;
}

.gen-logo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.gen-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction:column; gap:0;
  
}
.gen-hamburger span {
  display: block;
  background: #ffffff;
  transition: all .3s;
  width:22px; height:3px; border-radius:2px; margin:2.5px 0;
}

.gen-nav > ul {
  display: flex; justify-content:center; flex: 1;
  flex-wrap: wrap;
}
.gen-nav > ul > li {
  position: relative;
}
.gen-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 21px;
  height: 51px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.gen-nav > ul > li > a:hover,
.gen-nav > ul > li:hover > a {
  background: #1d4ed8;
  color: #bfdbfe;
}
.gen-arrow { font-size: .7em; opacity: .8; vertical-align: middle; }
/* Dropdown */
.gen-nav > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e3a8a;
  min-width: 170px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1000;
  overflow: hidden;
}
.gen-nav > ul > li:hover > ul {
  display: block;
}
.gen-nav > ul > li > ul > li > a {
  display: block;
  padding: 10px 18px;
  color: #dbeafe;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.gen-nav > ul > li > ul > li > a:hover {
  background: #1d4ed8;
  color: #ffffff;
}
.gen-nav > ul > li > ul > li:last-child {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.gen-nav > ul > li > ul > li:last-child > a {
  border-radius: 0 0 6px 6px;
}
/* Responsive */
@media (max-width: 768px) {
  .gen-hamburger { display: flex; margin-left: 0; }
  .gen-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .gen-logo { margin-right: auto; margin-left: 0; justify-self: unset; order: -1; }
  .gen-nav > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: linear-gradient(90deg, #233867, #273f72);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    z-index: 9999;
    padding: 8px 0;
    overflow: hidden;
  }
  .gen-nav > ul.open { display: flex; }
  /* Remove nav bottom radius when dropdown is open so they flow together */
  .gen-nav.mobile-open { border-radius: 14px 14px 0 0; }
  .gen-nav > ul > li > a { height: auto; padding: 14px 20px; }
  /* Reset desktop last-child rounding — not needed on mobile */
  .gen-nav > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: rgba(0,0,0,.15);
    min-width: 0;
  }
  .gen-nav > ul > li > ul.sub-open { display: block; }
  .gen-nav > ul > li.has-sub > a .gen-arrow { display: inline-block; }
  /* No rounding on submenu items in mobile */
  .gen-nav > ul > li > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul > li > a { padding: 10px 32px; }
  /* Hamburger animates to X when open */
  
  .gen-nav.mobile-open .gen-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(2) { opacity: 0; }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
}

/* Compte */
.login-container {
    box-sizing: border-box;
    width: min(400px, calc(100% - 40px));
    margin: 50px auto;
    padding: 30px;
    border-radius: 20px;
    background-color: #3F4E4F;
    color: #DCD7C9;
    text-align: center;
    box-shadow: 0 8px 20px rgba(44, 54, 57, 0.25);
}

.login-container h2 {
    margin-top: 0;
    color: #DCD7C9;
}

.form-group-username,
.form-group {
    align-items: center;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 10px;
}

.login-container input {
    box-sizing: border-box;
    height: 42px;
    max-width: 100%;
    padding: 0 12px;
    width: 280px;
    border: 2px solid #A27B5C;
    border-radius: 8px;
    background-color: #DCD7C9;
    color: #2C3639;
    font: inherit;
}

.login-container input::placeholder {
    color: #3F4E4F;
    opacity: 0.75;
}

.login-container input:focus {
    outline: 3px solid rgba(162, 123, 92, 0.35);
    border-color: #DCD7C9;
}

.btn-row,
.row-btn {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px auto 0;
    max-width: 280px;
}

.btn-row button,
.row-btn button {
    min-height: 40px;
    padding: 8px 14px;
    border: 2px solid #A27B5C;
    border-radius: 8px;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: #A27B5C;
    color: #DCD7C9;
}

.btn-secondary {
    background-color: #2C3639;
    color: #DCD7C9;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #DCD7C9;
    color: #2C3639;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #A27B5C;
    color: #DCD7C9;
}

/* Account page */
.account-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
    color: #2C3639;
}

.account-heading {
    margin-bottom: 28px;
}

.account-heading h1,
.account-card h2,
.account-profile-panel h2 {
    margin: 0;
    color: #2C3639;
    text-align: center;
}

.account-heading h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.account-heading > p:last-child,
.account-card-title p,
.profile-member {
    color: #3F4E4F;
}

.account-heading > p:last-child {
    margin: 10px 0 0;
    font-size: 1.05rem;
}

.account-eyebrow {
    margin: 0 0 8px;
    color: #A27B5C;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

.account-profile-panel,
.account-card {
    border: 1px solid rgba(63, 78, 79, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(44, 54, 57, 0.1);
}

.account-profile-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background-color: #3F4E4F;
    color: #DCD7C9;
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.account-profile-panel h2 {
    color: #DCD7C9;
    font-size: 1.5rem;
}

.profile-member {
    margin: 6px 0 0;
    color: #DCD7C9;
    opacity: 0.8;
    font-size: 0.9rem;
}

.profile-avatar {
    display: grid;
    flex: 0 0 92px;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 3px solid #DCD7C9;
    border-radius: 50%;
    background-color: #A27B5C;
    color: #DCD7C9;
    font-size: 2.3rem;
}

.account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.account-button-primary {
    width: 100%;
    border-color: #DCD7C9;
    background-color: #DCD7C9;
    color: #2C3639;
}

.account-button-primary:hover,
.account-button-primary:focus-visible {
    background-color: #A27B5C;
    color: #DCD7C9;
}

.account-button-secondary {
    border-color: #A27B5C;
    background-color: #A27B5C;
    color: #DCD7C9;
}

.account-button-secondary:hover,
.account-button-secondary:focus-visible {
    border-color: #2C3639;
    background-color: #2C3639;
}

.account-placeholder {
    margin: 10px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.78;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(220, 215, 201, 0.25);
}

.account-stat {
    display: grid;
    gap: 4px;
}

.account-stat strong {
    color: #DCD7C9;
    font-size: 1.7rem;
}

.account-stat span {
    font-size: 0.82rem;
    line-height: 1.25;
}

.account-settings {
    display: grid;
    gap: 24px;
    justify-self: end;
    width: min(100%, 620px);
    transform: translateX(24px);
}

.account-card {
    padding: 26px;
    background-color: rgba(255, 255, 255, 0.4);
}

.account-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.account-icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #2C3639;
    color: #DCD7C9;
}

.account-card h2 {
    font-size: 1.2rem;
}

.account-card-title p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.account-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-card input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 2px solid #A27B5C;
    border-radius: 8px;
    background-color: #DCD7C9;
    color: #2C3639;
    font: inherit;
}

.account-card input:focus {
    outline: 3px solid rgba(162, 123, 92, 0.3);
    border-color: #3F4E4F;
}

@media (max-width: 700px) {
    .account-main {
        width: min(100% - 24px, 520px);
        padding: 32px 0 44px;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-settings {
        width: 100%;
        transform: none;
    }

    .account-profile-panel,
    .account-card {
        padding: 22px;
    }
}

#map {  height: 500px;
        width: 100%;
}
