@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-bold-rounded/css/uicons-bold-rounded.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-chubby/css/uicons-regular-chubby.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-straight/css/uicons-solid-straight.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-straight/css/uicons-regular-straight.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-bold-rounded/css/uicons-bold-rounded.css");

:root {
  /*variables de couleurs*/
  --footer-bg-color: #edf7f0;
  --accent-bg-color: #ab88d8;
  --less-bg-color: #ffefe8;
  --bg-soft: #f5f7f5;
  --light-red: #fff4f4;
  --extra-light-red: #d1d1d1;
  --mega-light-red: #eee;
  --extra-light: #e0e0e0;
  --transparent-red: #ffe5ea;
  --transparent-green: #edf7f0;
  --light-light-light: #f0f0f0;
  --accent-color: #9469cb;
  --accent-color2: #9469cb;

  --danger-bg: #ffebee;
  --transparent-orange: #fff4e5;
  --accent-color-light: #a075da;
  --dark-pink: #7b1fa2;
  --light-purple: #e0d6eb;
  --very-light-purple: #f0ebf8;
  --light-light-purple: #f3e5f5;
  --select-color: #ea2dd7;
  --icon-color: #ffe3d7;
  --result-line-color: #ad98c7;
  --accent-ff-color: #4c1690;
  --accent-ff-color2: #4c1690;

  --accent-transparant-color: #4c16901a;
  --accent-transparant-color2: #4c16901a;
  --text-dark: #2c3e50;
  --text-grey: #7f8c8d;
  --blue-link: rgba(81, 107, 223, 0.1);
  --blue-semi-transparant: #e3f2fd;
  --accent-fg-color: #7e7396;
  --accent-fg-color2: #7e7396;

  --white: #f5f5f5;
  --real-white: #ffffff;
  --presque-full-white: #fff0f0;
  --semi-transparant-white: rgba(255, 255, 255, 0.5);
  --transparant-white: rgba(255, 255, 255, 0.2);
  --darker-white: #ccc;
  --darker-white-slider: #ccc;
  --grey: #b3b3b3;
  --mid-dark-gray: #666;
  --dark-gray: #555;
  --darker-grey: #777;
  --orange: #ff9800;
  --transparant-purple: rgba(148, 105, 203, 0.3);
  --gold: gold;
  --yellow-bg: #ffc107;
  --dark-orange: #ff6b6b;
  --white-red: #ffcdd2;
  --danger-text: #c62828;
  --red: #d32f2f;
  --red-bg: #ffebee;
  --light-black: #333;
  --black: #030303;
  --dark-black: #000;
  --black-transparent: rgba(0, 0, 0, 0.05);
  --quarter-transparant-black: rgba(0, 0, 0, 0.25);
  --semi-transparant-black: rgba(0, 0, 0, 0.5);
  --lime: #51cf66;
  --light-lime: #ebfbee;
  --light-white: #fafafa;
  --white-light: #f9f9f9;
  --green: green;
  --green-bg: #e8f5e9;
  --blue: #1976d2;
  --light-blue: #2196f3;
  --light-gray: #aaa;
  --light-light-gray: #bbb;
  --gray-mid: #999;
  --greeen: #4caf50;
  --ddd: #ddd;
  --red-light: #d3d3d3;
  --beige: #fcddcf;
}

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

body {
  background-color: var(--white);
}

/* -- fil d'ariane -- */
.fil-ariane {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 0;
  flex-wrap: wrap;
}

.fil-ariane li {
  list-style: none;
  display: flex;
  align-items: center;
}

.fil-ariane a {
  text-decoration: none;
  color: var(--accent-fg-color);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.fil-ariane a:hover {
  color: var(--accent-ff-color);
  text-decoration: none;
}

.fil-ariane .separator {
  color: var(--darker-white);
  font-size: 0.8rem;
  margin: 0 5px;
}

.fil-ariane .current-page {
  color: var(--accent-ff-color);
  font-weight: 700;
  background-color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 5px var(--accent-fg-color);
}

nav {
  background-color: var(--white);
  position: sticky;
  top: 0;
  left: 0;
  height: 70px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.nav-header {
  height: auto;
  width: auto;
  background: transparent;
  padding-left: 50px;
  border-radius: 0;
  display: flex;
  align-items: center;
}

.logo-white {
  color: var(--select-color);
  height: 40px;
  width: auto;
  filter: none;
  opacity: 1;
}

nav > ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

nav li {
  list-style-type: none;
}

nav a {
  color: var(--accent-ff-color);
  text-decoration: none;
}

.btn-nav {
  font-size: 1.25;
}

.logo {
  height: 40px;
}

.div-liens {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding-left: 50px;
  align-items: center;
  height: 100%;
  padding-right: 120px;
}

.div-liens a {
  font-weight: 600;
  position: relative;
}

.div-liens a::before {
  position: absolute;
  content: "";
  top: 100%;
  height: 2px;
  width: 0%;
  right: 50%;
  background-color: var(--accent-ff-color);
  transition: 0.3s;
}

.div-liens a:hover::before {
  width: 50%;
}

.div-liens a::after {
  position: absolute;
  content: "";
  top: 100%;
  height: 2px;
  width: 0%;
  left: 50%;
  background-color: var(--accent-ff-color);
  transition: 0.3s;
}

.div-liens a:hover::after {
  width: 50%;
}

.activelink::before {
  width: 50% !important;
}

.activelink::after {
  width: 50% !important;
}

.div-logo {
  display: flex;
  justify-content: center;
}

.a-logo:hover::before {
  width: 0% !important;
}

.a-logo:hover::after {
  width: 0% !important;
}

.div-btn {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  padding-right: 50px;
}

.logout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: var(--white);
  padding: 10px 18px 6px 18px;
  border-radius: 15px;
  border: 2px solid var(--accent-ff-color);
  position: relative;
  overflow: hidden;
}

.logout::before {
  position: absolute;
  height: 100%;
  width: 100%;
  content: "";
  top: 0;
  transform: translateX(-100%);
  border-radius: 10px;
  background-color: var(--accent-ff-color);
}

.logout:hover::before {
  transform: translateX(0%);
  transition: 0.4s;
}

.logout i {
  color: var(--accent-ff-color);
  z-index: 1;
}

.logout:hover i {
  color: var(--white);
  transition: 0.4s;
}

.logout span {
  padding-bottom: 4px;
  color: var(--accent-ff-color);
  z-index: 1;
}

.logout:hover span {
  color: var(--white);
  transition: 0.4s;
}

.div-settings-nav {
  display: none;
}

.fi-rs-angle-small-right {
  display: none;
}

@media (max-width: 1065px) {
  .fi-rs-angle-small-right {
    display: block;
  }
  .div-liens a:before,
  .div-liens a:after {
    display: none !important;
  }

  .first-section {
    padding-top: 90px;
  }

  .first-section h1 {
    font-size: 2rem;
    margin-bottom: 5px;
  }

  .first-section h2 {
    font-size: 1rem;
    font-weight: 400;
  }

  .tacheEtRepas {
    gap: 40px !important;
  }

  .no-scroll {
    overflow: hidden;
  }

  .overlay-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 10000vh;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background-color: var(--semi-transparant-black);
  }

  .btn-hamburger {
    position: fixed;
    top: 25px;
    left: 20px;
    right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 13000;
    height: 25px;
    width: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  .btn-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-ff-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  .btn-hamburger span.openspan {
    background-color: var(--white);
  }

  #trait-hamburger1.openspan {
    transform: translateY(9px) rotate(45deg) !important;
  }

  #trait-hamburger2.openspan {
    opacity: 0;
  }
  #trait-hamburger3.openspan {
    transform: translateY(-9px) rotate(-45deg) !important;
  }

  nav {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 80%;
    max-width: 350px;
    z-index: 4500;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;

    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .div-settings-nav {
    display: flex;
    justify-content: center;
    align-items: end;
    padding-bottom: 30px;
    height: 120px;
    width: 100%;
  }
  .div-settings-nav li {
    width: 100%;
  }
  .div-settings-nav a {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-top: 30px;
    border-top: 1px solid var(--accent-ff-color);
  }

  nav.open {
    left: 0%;
  }
  .nav-header {
    background-color: var(--accent-ff-color);
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0px;
    border-bottom-left-radius: 0;
  }

  .logo-white {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
  }

  nav > ul {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 0 40px;
  }

  .btn-nav {
    font-size: 1.25rem;
  }

  .div-liens {
    padding: 0px;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    text-align: center;
    gap: 0px;
    height: fit-content;
    flex: 1;
  }

  .div-liens li {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .div-liens li i {
    color: var(--accent-ff-color);
  }

  .div-liens a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-fg-color);
    text-decoration: none;
    transition: 0.2s;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
  }

  .div-liens i {
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: 0.2s;
  }

  .a-logo {
    display: none;
  }

  .div-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    padding-top: 20px;
  }
}
.close-modal i {
  font-size: 1.2rem;
  color: var(--light-gray);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover i {
  color: var(--dark-black);
  cursor: pointer;
}

/* menu deroulant type netflix pour les profils */
.check-icon {
  margin-left: auto;
  color: var(--accent-ff-color);
  font-size: 1rem;
  display: none;
}

.active-group .check-icon {
  display: block;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  transition: 0.3s;
}

.avatar-circle {
  width: 35px;
  height: 35px;
  background-color: var(--accent-ff-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.profile-trigger:hover .avatar-circle {
  border-color: var(--accent-color);
}

.arrow-icon {
  color: var(--accent-ff-color);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.profile-menu-container:hover .arrow-icon {
  transform: rotate(180deg);
}

/*-- menu deroulant --*/
.dropdown-menu {
  position: absolute;
  top: 60px;
  right: 50px;
  width: 220px;
  z-index: 4500 !important;
  background-color: var(--real-white);
  border-radius: 15px;
  border: solid 2px var(--accent-ff-color);
  padding: 15px 0;
  drop-shadow: 0 8px 16px var(--black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}

.dropdown-divider {
  border: 0;
  height: 1px;
  background-color: var(--accent-ff-color);
  width: 80%;
  margin: 5px auto;
}

.profile-menu-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section {
  padding: 0 15px;
}

.dropdown-title {
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

/* Liste des groupes */
.group-list,
.dropdown-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 15px;
}

.group-list {
  max-height: 318px;
  overflow-y: auto;
}

.group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ff-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  transition: 0.2s;
}

.group-item:hover {
  color: var(--accent-fg-color);
}

.group-item span {
  max-width: 50vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* avatar des groupes */
.group-avatar-mini {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: var(--accent-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.group-avatar-mini.color-2 {
  background-color: var(--orange);
}

.dropdown-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-ff-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 20px;
  margin: 0 -15px;
  transition: 0.2s;
}

.dropdown-links li a:hover {
  background-color: var(--blue-link);
  color: var(--accent-color);
}

.dropdown-links i {
  font-size: 1.1rem;
  color: var(--grey);
}

/* Déconnexion */
.dropdown-logout-section {
  text-align: center;
  padding-top: 10px;
}

.logout-link {
  color: var(--red);
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: 0.2s;
  padding: 5px;
}

.logout-link i {
  font-size: 1rem;
}

.logout-link:hover {
  opacity: 0.8;
  background-color: var(--less-bg-color);

  border-radius: 8px;
}

.avatar-circle {
  width: 35px;
  height: 35px;
  background-color: var(--accent-ff-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  transition: 0.2s;
}

.profile-menu-container:hover .avatar-circle {
  border-color: var(--accent-color);
}

.profile-menu-container {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

@media (max-width: 1065px) {
  .arrow-icon {
    display: none;
  }

  .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    border: none;
    padding-top: 15px;
    padding-bottom: 30px;
    transform: translateY(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0px 5px var(--accent-fg-color);
  }

  .profile-menu-container.sheet-active .dropdown-menu {
    transform: translateY(0);
  }

  .handle-bar {
    width: 40px;
    height: 5px;
    background-color: var(--darker-white);
    border-radius: 10px;
    margin: -5px auto 15px auto;
    display: block;
  }

  .profile-menu-container:hover .dropdown-menu {
    transform: translateY(100%);
  }
  .profile-menu-container.sheet-active:hover .dropdown-menu {
    transform: translateY(0);
  }
}

@media (min-width: 1066px) {
  .handle-bar {
    display: none;
  }

  .profile-menu-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/*-- FOOTER --*/

.main-footer {
  background-color: var(--footer-bg-color);
  padding: 60px 5% 20px 5%;
  margin-top: 80px;
  color: var(--accent-ff-color);
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: var(--accent-fg-color);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--accent-ff-color);
  transition:
    transform 0.3s,
    color 0.3s;
}

.footer-socials a:hover {
  color: var(--accent-color);
}

.footer-group h4 {
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-group ul {
  list-style: none;
  padding: 0;
}

.footer-group ul li {
  margin-bottom: 12px;
}

.footer-group ul li a {
  text-decoration: none;
  color: var(--accent-fg-color);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-group ul li a:hover {
  color: var(--accent-ff-color);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--accent-ff-color);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--accent-fg-color);
}

/* -- footer responsive -- */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-socials {
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/*-- mode sombre --*/
body.dark-mode {
  /* Fonds */
  --white: #1e1e1e;
  --real-white: #323232;
  --bg-soft: #121212;
  --footer-bg-color: #0d0d0d;

  /* Textes */
  --text-dark: #e0e0e0;
  --accent-fg-color: #b0b0b0;
  --text-grey: #a0a0a0;
  --accent-fg-color2: #f2f2f2;
  --dark-black: #f2f2f2;

  /* Accents */
  --accent-ff-color: #f2f2f2;
  --accent-color: #9c7dd6;
  --accent-bg-color: #86828b;
  --accent-color2: #d9d9d9;

  /* Éléments divers */
  --icon-color: #333;
  --blue-semi-transparant: #1a2733;
  --very-light-purple: #555555;
  --accent-transparant-color2: #f2f2f2;

  /* Ombres et Bordures */
  --darker-white: #333;
  --semi-transparant-black: rgba(255, 255, 255, 0.1);
  --darker-white-slider: #000000;

  /* Alertes */
  --danger-bg: #450b0b;
  --red-bg: #450b0b;
  --green-bg: #0b3d0b;
  --light-purple: #2a1a38;

  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Inversion de la couleur du logo en mode sombre */
body.dark-mode img.logo-white {
  filter: brightness(0) invert(1);
}

/* Formulaires en mode sombre */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--real-white);
  color: var(--text-dark);
}

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f9f9f9;
  --header-bg: #ffffff;
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #f0f0f0;
  --card-bg: #2d2d2d;
  --header-bg: #2d2d2d;
  background-color: #1e1e1e;
}

body {
  color: var(--text-color);
  transition:
    background-color 0.3s,
    color 0.3s;
}

.card-param,
.modal-content {
  background-color: var(--card-bg);
  color: var(--text-color);
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: var(--footer-bg-color);
  color: var(--text-grey);
}

div.div-changer-taille-curseur {
  background-color: var(--real-white);
  border: solid 1px var(--accent-ff-color);
}

/* --- mode daltonien (Palette Okabe & Ito) --- */
body.daltonien-mode {
  /* Fonds */
  --white: #ffffff;
  --real-white: #ffffff;
  --bg-soft: #f5f5f5;
  --footer-bg-color: #e6e6e6;
  --less-bg-color: #fff0c2;

  /* Textes */
  --text-dark: #000000;
  --text-grey: #222222;
  --accent-fg-color: #333333;
  --accent-fg-color2: #000000;

  /* Accents */
  --accent-ff-color: #000000;
  --accent-color: #0072b2;
  --accent-bg-color: #56b4e9;
  --accent-color2: #e69f00;

  /* Éléments spécifiques */
  --icon-color: #000000;
  --blue-semi-transparant: #d0eaff;
  --accent-transparant-color: rgba(0, 114, 178, 0.2);
  --accent-transparant-color2: rgba(0, 114, 178, 0.1);

  /* Alertes & États */
  --danger-bg: #ffe0e0;
  --danger-text: #d55e00;
  --red: #d55e00;
  --red-bg: #ffe0e0;

  --green: #009e73;
  --green-bg: #d9f2e9;
  --lime: #009e73;

  --orange: #e69f00;
  --yellow-bg: #f0e442;

  /* Bordures */
  --darker-white: #000000;
  --semi-transparant-black: rgba(0, 0, 0, 0.2);

  background-color: var(--white);
  color: var(--text-dark);
}

body.daltonien-mode .card-param,
body.daltonien-mode .modal-content,
body.daltonien-mode .choice-card {
  border: 2px solid #000000;
  box-shadow: none;
}

body.daltonien-mode .btn-save,
body.daltonien-mode .btn-create-group {
  border: 2px solid #000000;
}

body.daltonien-mode .btn-secondary {
  background-color: var(--real-white);
  border: solid 1px #000000;
}

.div-btn-remonter {
  position: fixed;
  left: calc(100% - 70px);
  bottom: 20px;
  width: 50px;
  height: 50px;
  color: var(--real-white);
  background-color: var(--accent-ff-color);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: none;
  cursor: pointer;
  z-index: 9;
}

#barre-chargement {
  position: fixed;
  left: calc(100% - 73px);
  bottom: 17px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: none;
  z-index: 8;
  --progress: 0deg;

  background: conic-gradient(#9469cb var(--progress), #e0e0e0 var(--progress));
}

#barre-chargement::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: var(--white);
}

.remonterActif {
  display: flex !important;
}

/* --- responsive --- */
@media (max-width: 500px) {
  #prefInput,
  #prefInput2,
  #prefInput3 {
    max-width: 80%;
  }
  .modal-footer {
    display: flex;
    flex-direction: column;
  }
}

/* --- MODALE AVIS --- */
.modal-avis-overlay {
    display: none; 
    position: fixed;
    z-index: 15000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(3px); 
}

.modal-avis-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background-color: var(--real-white, #fff);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
  }

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

.close-avis {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-avis:hover {
    color: var(--couleur-principale); 
}

.form-avis-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    resize: vertical;
    font-family: inherit;
}

.btn-submit-avis {
    background-color: var(--couleur-principale);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-submit-avis:hover {
    transform: scale(1.05);
}

.stars-input {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.stars-input input {
    display: none;
}

.stars-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label {
    color: #ffc107; 
}

.btn-submit-avis {
    background-color: var(--accent-color);
    color: white; 
}