:root {
  --primary-red: #af0d1c;
  --gradient-red: linear-gradient(135deg, rgba(175, 13, 28, 0.1), rgba(175, 13, 28, 0.2));
  --gradient-red-hover: linear-gradient(135deg, rgba(175, 13, 28, 0.2), rgba(175, 13, 28, 0.3));
  --red-shadow: rgba(175, 13, 28, 0.3);

  --primary-green-dark: #1b5c55;
  --gradient-green-dark: linear-gradient(135deg, rgba(27, 92, 85, 0.1), rgba(27, 92, 85, 0.2));
  --gradient-green-dark-hover: linear-gradient(135deg, rgba(27, 92, 85, 0.2), rgba(27, 92, 85, 0.3));
  --green-dark-shadow: rgba(27, 92, 85, 0.3);

  --primary-green: #1a7f6c;
  --gradient-green: linear-gradient(135deg, rgba(26, 127, 108, 0.1), rgba(26, 127, 108, 0.2));
  --gradient-green-hover: linear-gradient(135deg, rgba(26, 127, 108, 0.2), rgba(26, 127, 108, 0.3));
  --green-shadow: rgba(26, 127, 108, 0.3);

  --primary-blue: #4b4277;
  --gradient-blue: linear-gradient(135deg, rgba(75, 66, 119, 0.1), rgba(75, 66, 119, 0.2));
  --gradient-blue-hover: linear-gradient(135deg, rgba(75, 66, 119, 0.2), rgba(75, 66, 119, 0.3));
  --blue-shadow: rgba(75, 66, 119, 0.3);
 
  --btn-green: #1a7f6c;
  --btn-blue: #4b4277;

  --dark-text: #1d1d1d;
  --light-text: #ededed;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #ededed 0%, #c9c6c6 100%);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --border-radius: 2rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global */
h1 {
  color: var(--primary-blue);
  font-size: 3rem;
  font-weight: 900;
}
h2{
   color: var(--primary-blue);
  font-size: 2.5rem;
  font-weight: 900;
}
h3{
   color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 900;
}
h4{
   color: var(--primary-blue);
  font-size: 1.75rem;
  font-weight: 900;
}
h5{
   color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 900;
}
p{
  font-size: 1rem;
  font-weight: 300;
}
strong{
  
  font-weight: 900;
}

body {
  font-family: "museo", sans-serif;
  background-size: cover;
	background-position: center center;
  background-attachment: fixed;
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://cloud.agglo-montbeliard.fr/outils/allies_de_la_simplification/image-mesh-gradient-web.jpg");
  opacity: 0.3;
  background-size: cover;
	background-position: center center;
  background-attachment: fixed;
  z-index: -1;
}
main{
  flex: 1;
}
.container {
  padding: 2rem;
  overflow: visible;
  min-height: min-content;
  margin-bottom: 2rem;
}

.badge.rounded-pill.text-bg-secondary {
    color: var(--dark-text) !important;
    background-color: var(--light-bg) !important;
    box-shadow: none;
}
.red {
    font-weight: 500;
  color: var(--primary-red);
}
.green {
  font-weight: 500;
  color: var(--primary-green);
}
.blue {
    font-weight: 500;
  color: var(--primary-blue);
}
h1 {
  font-family: "museo", sans-serif;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}
.logo h1 {
  display: block;
  position: absolute;
  left: 40px;
  top: 40px;
  color: var(--primary-blue);
  font-size: 1.4rem;
  max-width: 200px;
}
a {
  text-decoration: none;
  color: black;
}
a:hover {
  color: #932d30;
}
button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
footer {
  position: relative;
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s + var(--order, 0) * 0.2s);
}

/* Liquid glass effect class */
.glass-container {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
}
.glass-container label{
  font-size: 1.2rem;
}
.glass-container h5{
  font-size: 1.4rem;
}
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
  transition: all ease .5s;
}
.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  
  box-shadow: inset -20px -20px 25px hsla(0,0%,100%,.9), inset 20px 20px 20px rgba(0,0,0,.05), 25px 35px 20px rgba(0,0,0,.05), 25px 30px 30px rgba(0,0,0,.05);
  border-radius: 2rem;
}

/* btn & liquid glass */
.btn-green{
  position: relative;
  color: var(--light-text);
  backdrop-filter: blur(5px) saturate(180%);
  background-color: var(--btn-green);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-green:hover{
  position: relative;
  color: var(--light-text);
  backdrop-filter: blur(5px) saturate(180%);
  background-color: var(--btn-green);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3), inset 0 4px 20px rgba(255, 255, 255, 0.4);
  transform: scale(1.01);
}
.btn-green:disabled{
  background-color: var(--btn-green) !important;
  border-radius: var(--border-radius);
  padding: 1.25rem;
}
.btn-blue{
  position: relative;
  color: var(--light-text);
  backdrop-filter: blur(5px) saturate(180%);
    background-color: var(--btn-blue);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-blue:hover{
  position: relative;
  color: var(--light-text);
  backdrop-filter: blur(5px) saturate(180%);
  background-color: var(--btn-blue);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3), inset 0 4px 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.01);
}
.btn-blue:disabled{
  background-color: var(--btn-blue) !important;
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

/* Bouton personnalisé */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

/* Landing Page */
  .tagline {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 3rem;
    font-weight: 600;
    animation: fadeIn 1.5s ease-out 0.6s both;
  }
  .tagline span{
    color: var(--primary-red);
  }
  .logo-home img{
    z-index: 1;
    margin: auto;
    display: block;
    width: 700px;
    position: relative;
    backdrop-filter: blur(20px) !important;
    animation: fadeIn 1.5s ease-out 0.6s both;
  }
  .simplicatree.login{
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("https://cloud.agglo-montbeliard.fr/outils/allies_de_la_simplification/simplificatree.svg"), url("https://cloud.agglo-montbeliard.fr/outils/allies_de_la_simplification/simplificatree.svg");
    opacity: 1;
    background-attachment: fixed;
    background-repeat: no-repeat no-repeat;
    background-size: 25% auto, 25% auto;
    background-position: bottom left, bottom right; 
    z-index: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
  }
  

/* Page Menu */
.logo{
    z-index: 1;
    margin: auto;
    display: block;
    width: 400px;
    position: relative;
    backdrop-filter: blur(20px) !important;
}

.home {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
    margin: 0.75rem;
    border-radius: 1.1rem;
    width: 60px;
    height: 60px;
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}
.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
  border-radius: 1.1rem;
}
.home::after {
  border-radius: 1.1rem;
}
.home:hover::before {
  left: 100%;
}
.home-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
  text-decoration: none;
  color: var(--dark-text);
  border-radius: 1.1rem;
}
.simplicatree{
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url("https://cloud.agglo-montbeliard.fr/outils/allies_de_la_simplification/simplificatree.svg");
  opacity: 0.1;
  background-size: cover;
	background-position: center center;
  background-attachment: fixed;
  z-index: -10;
}
.menu{
  display: inline-block;
}
.menu-btn {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.25rem 2.5rem;
  margin: 0.75rem;
  border-radius: var(--border-radius);
  min-width: 280px;
  color: var(--dark-text);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: -webkit-fill-available;
  height: -moz-available;
  width: -webkit-fill-available;
  width: -moz-available;
}
.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}
.menu-btn:hover::before {
  left: 100%;
}
.menu-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
  text-decoration: none;
  color: var(--dark-text);
}
.features-grid {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin: 3rem;
  perspective: 1000px;
}
.feature-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  height: 100%;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}
.feature-card:hover::before {
  left: 100%;
}
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}
.feature-card p {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 0.9rem ;
}
.feature-card b {
   font-weight : 600;
}
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 0.975rem;
  position: relative;
  overflow: hidden;
}
.feature-icon::after {
  border-radius: 0.975rem;
}

/* Page Depot idee */
.mandatory:after {
  content: " *";
  color: red;
}
.selection-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.selected-people {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
  min-height: 40px;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 4px;
}
.person-input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
}
.autocomplete-results {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 300px;
  display: none;
  position: absolute;
  background: white;
  z-index: 1000;
}
/* Pastille ronde pour la photo/initiales */
.person-photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  overflow: hidden;
}
/* Style des suggestions */
.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}
.autocomplete-item:hover {
  background-color: #f0f0f0;
}
/* Style des tags sélectionnés */
.person-tag {
  background-color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  margin-right: 5px;
  margin-bottom: 5px;
}
.remove-tag {
  margin-left: 5px;
  cursor: pointer;
  color: #ff0000;
}

/* Page Vote */
#entetevote{
  position: sticky !important;
  top: 20px;
  z-index: 20;
  transition: all 0.3s ease;
}
.mobile-entetevote{
  display: none;
}
#entetevote.glass{
  border-radius: 2.75rem;
}
/*
#entetevote.compact {
  top: 0;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
#entetevote.compact h4 {
  font-size: 1rem;
  margin: 0;
}
#entetevote.compact button {
  display: none;
}*/


.idea-card {
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #dee2e6; /* Bordure grise par défaut */
  border-radius: 2.75rem;
  height: 100%;
  margin-bottom: 1.25rem;
  display: grid;
  align-content: space-between;
  word-wrap:break-word;
}
.idea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #adb5bd;
}
.idea-card.selected {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}
.idea-card .card-body {
  min-height: 120px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.75rem;
}
.card-text {
  color: #495057;
  flex-grow: 1;
}
#ideas-grid {
  margin-top: 2rem;
  z-index: 0;
}
/*@media (max-width: 768px) {
  .idea-card {
    margin-bottom: 1.5rem;
  }
  #entetevote {
    top: 0;
  }
  .mobile-entetevote {
    display: inline;
  }
  #entetevote h4 {
    font-size: 1rem!important;
  }
  #entetevote button {
    display: none;
  }
}*/
.token-info {
  background: #f0f0f0;
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
}
.tokens-display {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto;
  min-height: 40px;
}
.tokens-count {
  display: none;
}
.token {
  content: url("https://cloud.agglo-montbeliard.fr/outils/allies_de_la_simplification/lightbulb.svg");
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 12px;
}
.plusdetoken {
  width: 300px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: red;
  font-size: 12px;
}
.token-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.add-btn {
  font-size: x-large;
  font-weight: 900;
  line-height: 24px;
  background: var(--btn-green);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
  color: white;
  width: -webkit-fill-available;
  width: -moz-available;
}
.remove-btn {
  font-size: x-large;
  font-weight: 900;
  line-height: 24px;
  background: var(--btn-blue);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
  color: white;
  width: -webkit-fill-available;
  width: -moz-available;
}
.token-count {
  background: #e9e9e9;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  display: none;
}
.text-muted.glass{
  min-height: 4.2rem;
}
.btn-success.btn-green, .btn-danger.btn-blue {
  box-shadow: unset;
  border-color: unset;
}
.card-text {
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;

    display: -webkit-box;
    -webkit-line-clamp: 3;       /* nombre de lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;     /* ajoute "…" à la fin */
  }

  /* Quand la case est cochée (on a cliqué sur "Lire la suite") */
  .toggle-text:checked ~ .card-text {
    max-height: max-content; /* assez grand pour tout afficher */
    transition: max-height 0.5s ease;

    display: -webkit-box;
    -webkit-line-clamp: unset;       /* nombre de lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;     /* ajoute "…" à la fin */
  }

  /* Bouton style */
  .read-more-btn {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
  }

  /* Quand c'est ouvert, on change le texte du bouton */
  .toggle-text:checked ~ .read-more-btn::after {
    content: " (Réduire)";
    transition: max-height 0.5s ease;
  }

  /* Page Situer */
  .statut_depasse  {
    background: var(--btn-green);
  }
  .statut_non_atteint  {
    background: var(--light-bg);
    color:lightgray;
  }
    .label_non_atteint  {
    color:lightgray !important;
  }
  .statut_en_cours  {
    background: var(--primary-blue);
  }
  .statut_non_recevable {
    background: var(--primary-red);
  }
  .progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .progress-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    border-radius: 10px;
    z-index: -1;
    margin: 5px;
  }

  .progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
  }

  .step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
    align-items: center;
  }

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

  .step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .step.active .step-circle {
    background: linear-gradient(135deg, #00d4ff, #00ffc8);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 255, 200, 0.4);
    animation: pulse 2s infinite;
  }

  .step.completed .step-circle {
    background: rgba(0, 255, 200, 0.3);
    border-color: #00ffc8;
    color: #00ffc8;
  }

  .step-label {
    margin-top: 15px;
    color: var(--dark-text);
    /*max-width: 120px;*/
    transition: all 0.3s ease;
    text-align: center;
    background-color: unset;
  }

  .step.active .step-label {
    color: var(--dark-text);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 255, 200, 0.5);
  }

  .step.completed .step-label {
    color: #00ffc8;
  }
.firework-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            width: 200px;
            height: 200px;
        }

        .particle {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        @keyframes explode {
            0% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(0.5);
            }
            50% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
            }
        }

        .particle.active {
            animation: explode 0.8s ease-out forwards;
        }

        .grow-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            width: 150px;
            height: 100px;
        }

        .grow-particule {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            top: 0%;
            left: 0%;
            background: var(--primary-blue);
            opacity: 0;
            transform: scale(0);
            animation: growPulse 1.8s ease-in-out forwards;
        }
        @keyframes growPulse {
          0% {
            opacity: 0;
            transform: scale(0.2);
          }
          20% {
            opacity: 1;
            transform: scale(1.2);
            filter: brightness(1.2);
          }
          50% {
            transform: scale(1);
          }
          80% {
            opacity: 1;
          }
          100% {
            opacity: 0;
            transform: scale(0.2);
          }
        }

        .bubble-container {
          position: absolute;
            top: 0%;
            left: 50%;
            transform: translate(-50%, -100%);
            pointer-events: none;
            width: 150px;
            height: 100px;
         
        }

        /* Bulle initiale */
        .bubble {
          position: absolute;
          bottom: 0;
          border-radius: 50%;
          opacity: 0;
          animation: rise 5s ease-in forwards;
          transition: opacity 1s ease;
        }

        /* Animation de montée et disparition */
        @keyframes rise {
          0% {
            transform: translateY(0) scale(1);
            opacity: 0;
          }
          10% {
            opacity: 1;
          }
          60% {
            transform: translateY(-300%) scale(1.1);
            opacity: 0.7;
          }
          100% {
            transform: translateY(-600%) scale(0.8);
            opacity: 0;
          }
        }


/* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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


  @media (max-width: 920px) {
    .logo-home img{
        width: 300px;
    }
    .tagline {
      font-size: 1rem;
      width: 50%;
      margin: auto;
    }
    .logo {
      width: 300px;
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin: 0rem;
      perspective: 1000px;
    }   
    .feature-card {
      padding: 2.5rem 2rem;
      text-align: center;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
    }
    .container {
      width: 300px;
      padding: 0;
    }
    .token {
      height: 40px;
      width: 40px;
    }
    .tokens-display {
      display: none;
    }
    .tokens-count {
      display: inline;
    }
    .token-info p {
      margin: 0;
    }
   /* .mobile-entetevote {
      display: inline;
    }
    /*#entetevote h4 {
      font-size: 16px;
    }*/
    .btn-blue:disabled {
      scale: 0.8;
      padding: 1.25rem;
      height: 0;
      line-height: 0;
    }
    .btn-green:disabled {
      scale: 0.8;
      padding: 1.25rem;
      height: 0;
      line-height: 0;
    }
  }
  /* Par défaut : texte tronqué en mobile */
@media (max-width: 768px) {
  .fade-in.visible {
    transition-delay: unset;
  }
  body{
    height: auto;
  }
  .container {
    margin: auto;
  }
  .logo-home {
    margin-top: 50%;
  }
  .tagline {
    width: auto;
    margin: 20px auto;
  }
  .logo {
    width: 200px;
  }
  .logo h1 {
    left: 35px;
    top: 35px;
    font-size: 1rem;
    max-width: 150px;
  }

  h1 {
    font-size: 2.5rem;
    font-weight: 900;
  }
  h2{
    font-size: 2rem;
    font-weight: 900;
  }
  h3{
    font-size: 1.5rem;
    font-weight: 900;
  }
  h4{
    font-size: 1.25rem;
    font-weight: 900;
  }
  h5{
    font-size: 1rem;
    font-weight: 900;
  }
  p{
    font-size: 1rem;
    font-weight: 300;
  }
  strong{
    font-weight: 900;
  }
  .step-label {
    display: none;
  }
  .step-label.label_en_cours, .step-label.statut_non_recevable {
    font-size: xx-small;
    display: inherit;
  }
  .card-body {
    max-width: 260px;
  }
}



/********* OLD **********/

/* Background animated*/

#home {
  clip-path: url(#cache);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
 }
    }
/* Vote_old */
.btn-lg {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
}
.vote-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.vote-instructions {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 1.5rem;
  text-align: center;
}
.vote-button {
  font-size: 1.2rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
}
.rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
}
.card-footer {
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid #dee2e6;
  padding: 0.75rem 1.25rem;
}