*,
::after,
::before {
    box-sizing: border-box
}

:root {
  --text-primary-color: #7d5ae6;
  --text-secondary-color: #ed375a;
  --text-tertiary: #a6a6a7;
  --text-success-color: #123123;
  --text-error-color: #123123;


  --btn-primary-color: #7d5ae6;
  --btn-secondary-color: #4a90e2;

  --bg-secondary-color: #2e4454;

  --border-light-mode-color: #e3e7ec;
  --border-dark-mode-color: #2e4454;

  --bs-danger-rgb: #ed375a;

}



@media (prefers-reduced-motion:no-preference) {
    :root {
        scroll-behavior: smooth
    }
}

.form-switch {
    user-select: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.form-switch .form-check-input {
      margin: 0;
}


.form-check {
  transform: scale(1.8) !important;
  transform-origin: right center; /* ← important */

}





.dvh-100 {
  height: 100vh;
  height: 100dvh !important;
}


.fixed-top {
  height: 70px;
}

section.content {
  padding-top: 70px;
}

section .content-wrapper{
  margin-bottom: 80px;
}

@media (min-width: 768px) {

  section.content {
    padding-top: 0;
  }

  .center-laptop {
    align-items: center;
  }

  section.content {
    padding-top: 0;
  }

  section .content-wrapper{
    margin-bottom: 0;
  }

}


body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1e1e1e;
    background-color: #f8faff;
    background: linear-gradient(
      to bottom,
        #f8faff 0%,
        #f8faff 50%,
        #ffffff 66%
      );
}


.fire {
  width: 120px;
  height: auto;
}

/* Point d’ancrage en bas */
.fire path {
  transform-origin: 50% 100%;
  transform-box: fill-box;
}


.shadow-hover {
  transition: box-shadow 0.25s ease-in;
}

.shadow-hover:hover {
  box-shadow: var(--bs-box-shadow-sm) !important;
}


.nav-header {
  background: transparent;
}

.nav-footer {
  background: #ffffff;
}







.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
  transition: font-variation-settings 0.15s;
}

/* quand le lien est marqué "active" (ou aria-current="page") */
/* quand le lien est marqué "active" (ou aria-current="page") */
a.active .material-symbols-rounded,
.activity.active .material-symbols-rounded,
a[aria-current="page"] .material-symbols-rounded {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}


.activity .material-symbols-rounded {
  opacity: 0.1;
}

.activity.active .material-symbols-rounded {
  opacity: 1;
  color: var(--text-primary-color);
}


.text-info {
  color: var(--text-primary-color) !important;
  }
.icon-lg {
  font-size: 2rem;
}

.icon-xlg {
  font-size: 3rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.subtitle,
.slogan,
.navbar-back-link {
    font-weight: 700;
    font-family: 'Lora';
    font-family: 'Euclid Circular A', sans-serif;

}

h1 {
  font-size:  1.6rem;
}

@media (min-width:768px) {
    h1 {
        font-size: 3rem
    }
}

@media (min-width:1200px) {
    h1 {
        font-size: 4rem
    }
}

h1 .material-symbols-rounded {
  font-size: 6rem;
}

h2 {
    font-size: calc(1.325rem + .9vw)
}

@media (min-width:1200px) {
    h2 {
        font-size: 2rem
    }
}

h3 {
    font-size: calc(1.3rem + .6vw)
}

@media (min-width:1200px) {
    h3 {
        font-size: 1.75rem
    }
}

h4 {
    font-size: calc(1.275rem + .3vw)
}

@media (min-width:1200px) {
    h4 {
        font-size: 1.5rem
    }
}

h5 {
    font-size: 1.25rem
}

h6 {
    font-size: 1rem
}

.medal {
  background: linear-gradient(45deg, #fd9922, #f6c465);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}






p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6rem;
}

b,
strong {
    font-weight: bolder
}

.small,
small {
    font-size: .875em;
}

.supersmall {
  font-size: .65rem;
  line-height: 1.5;
}

.navbar-back-link {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
}

a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.25s ease-in;
}



a:hover,
a.active,
.nav-link:focus,
.nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary-color);
}


a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none
}


.text-primary {
  color: var(--text-primary-color) !important;
}

.text-secondary {
  color: var(--text-secondary-color) !important;
}


.text-light {
  color: #87898d !important;
}


body.dark .text-light {
  color: #a6a6a7 !important;
}

.bg-primary,
body.dark .bg-primary {
  background-color: var(--text-primary-color) !important;
}



hr {
  margin: 0.75rem 0;
}

.form-control:focus {
  border-color: #dee2e6;
}

.form-switch .form-check-input {
  border: 0;
  width: 1.75em;
}

.form-switch .form-check-input:active {
  filter: brightness(100%);
}

.form-switch .form-check-input:hover {
  cursor: pointer;
}


.fixed-bottom {
  z-index: 999;
}


label {
    display: inline-block
}

button {
    border-radius: 0
}

button:focus:not(:focus-visible) {
    outline: 0
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit
}


body.home {
  position: relative;
  min-height: 100vh;
}

body.home::before {
  content: "";
  position: fixed; /* ou absolute */
  inset: 0;
  background-image: url('../img/anim.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.1; /* ← ici */
  z-index: -1;
}








.form-check-input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}



.form-check-input {
  background-color: #d8d8d8;
  border-color: #d8d8d8;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
}

.dark .form-check-input {
  background-color: #2e4454;
  border-color: #2e4454;
}

/* Couleur du fond ON + puce blanche (SVG modifié) */
.form-check-input:checked {
  background-color: var(--text-primary-color);
  border-color: var(--text-primary-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}




.w-15 {
    width: 15%;
}


.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.dropdown,
.dropend,
.dropup {
    position: relative
}

.dropdown-toggle {
    white-space: nowrap
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent
}

.dropdown-toggle:empty::after {
    margin-left: 0
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem
}

.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: 0;
    margin-top: .125rem
}

.dropdown-menu-start {
    --bs-position: start
}

.dropdown-menu-start[data-bs-popper] {
    right: auto;
    left: 0
}

.dropdown-menu-end {
    --bs-position: end
}

.dropdown-menu-end[data-bs-popper] {
    right: 0;
    left: auto
}

.dropup .dropdown-menu[data-bs-popper] {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: .125rem
}

.dropup .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: 0;
    border-right: .3em solid transparent;
    border-bottom: .3em solid;
    border-left: .3em solid transparent
}

.dropup .dropdown-toggle:empty::after {
    margin-left: 0
}

.dropend .dropdown-menu[data-bs-popper] {
    top: 0;
    right: auto;
    left: 100%;
    margin-top: 0;
    margin-left: .125rem
}

.dropend .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid
}

.dropend .dropdown-toggle:empty::after {
    margin-left: 0
}

.dropend .dropdown-toggle::after {
    vertical-align: 0
}

.dropdown-divider {
    height: 0;
    margin: .5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, .15)
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #0d6efd
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #adb5bd;
    pointer-events: none;
    background-color: transparent
}

.dropdown-menu.show {
    display: block
}

.dropdown-header {
    display: block;
    padding: .5rem 1rem;
    margin-bottom: 0;
    font-size: .875rem;
    color: #6c757d;
    white-space: nowrap
}

.dropdown-item-text {
    display: block;
    padding: .25rem 1rem;
    color: #212529
}


.bg-success {
  --bs-bg-opacity: 1;
  background-color: #a0d468 !important;
}


.nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out
}

@media (prefers-reduced-motion:reduce) {
    .nav-link {
        transition: none
    }
}




.navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
    height: 70px;
}

.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-lg,
.navbar>.container-md,
.navbar>.container-sm,
.navbar>.container-xl,
.navbar>.container-xxl {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: inherit;
    flex-wrap: inherit;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.navbar-brand {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap
}

.navbar-nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0
}

.navbar-nav .dropdown-menu {
    position: static
}

.navbar-text {
    padding-top: .5rem;
    padding-bottom: .5rem
}

.navbar-collapse {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -ms-flex-align: center;
    align-items: center
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: box-shadow .15s ease-in-out
}

@media (prefers-reduced-motion:reduce) {
    .navbar-toggler {
        transition: none
    }
}

.navbar-toggler:hover {
    text-decoration: none
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 .25rem
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%
}

.navbar-nav-scroll {
    max-height: var(--bs-scroll-height, 75vh);
    overflow-y: auto
}



.navbar-nav .nav-item,
.features .subtitle {
  position: relative;
}

.navbar-nav .nav-item::after,
.features .subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40%;
  height: 4px;
  background-color: var(--text-primary-color);
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.features .subtitle::after {
  width: 20%;
}

.navbar-nav .nav-item:hover::after,
.navbar-nav .nav-item.show::after,
.navbar-nav .nav-item:has(a.active)::after,
.features .subtitle::after {
  transform: translateX(-50%) scaleX(1);
  transform-origin: left;
}

.dark.features .card {
  color: #ffffff;
}



.slogan {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 600;
}



header .navbar-brand {
    margin-top: -5px;
    z-index: 999;
}

header .navbar-nav .nav-item {
    padding: 0 15px
}

header .navbar-nav .nav-item>.dropdown-menu {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}

header .navbar-nav .nav-item .dropdown-menu {
    border: none;
    border-radius: 8px;
    margin-top: 0;
    margin-left: 0;
    min-width: auto;
    width: max-content;
    white-space: nowrap;
}

header .navbar-nav .nav-item .dropdown-menu .dropdown-item {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    padding: 8px 30px;
    color: #495057;
    margin: 0
}


header .navbar-nav .nav-item .dropdown-toggle::after {
  display: none !important;
}




header .navbar-nav .nav-item .dropdown-menu .dropdown-item .mt-2 {
    margin-top: .4rem !important
}

header .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover {
    color:var(--text-primary-color);
    background-color: transparent
}

header .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover svg path {
    fill: #ed6f8a
}

header .navbar-nav .nav-item .dropdown-menu .dropdown-item:focus {
    background-color: transparent
}


header .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0
}

header .nav-link, header .navbar-breadcrumbs {
    color: #1e1e1e;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.25s;
}


.nav-icon {
  opacity: 0.5;
  transition: all 0.5s ease;
}

.nav-icon.active, .nav-icon:hover {
  opacity: 1;
}





@media screen and (min-width:992px) {

    header .dropdown>.dropdown-menu .dropright:hover .dropdown-menu {
        display: block
    }
    header .navbar-nav li:first-child .dropdown-menu .dropright .dropdown-menu {
        margin-top: -8px
    }

}




@media screen and (max-width:991px) {

    h4 {
        line-height: 1.75rem
    }
    p {
        line-height: 24px
    }
    .navbar-toggler {
        padding: 0;
        z-index: 99999;
    }
    .navbar-toggler:focus {
        box-shadow: none;
        outline: 0
    }


    header .navbar-nav .nav-item {
        padding: 0;

    }


header .navbar-nav .nav-item .dropdown-menu .dropdown-item, header .nav-link {
          font-family: "Lora" !important;
}

    header .navbar-nav .nav-link,
    header .navbar-nav .nav-item .dropdown-menu .dropdown-item {
        font-size: 1.2rem;
    }

    header .navbar-nav .nav-item .dropdown-menu {
        left: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    header .navbar-nav .nav-item svg {
        float: right;
        margin-top: 7px
    }

    header .navbar-nav~.btn {
        width: 100%
    }

    .navbar-collapse {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        height: 0;
        opacity: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        height: 100dvh !important;
        min-height: 100vh;
        min-height: 100dvh !important;
        transition: opacity 0.2s ease-in;
}

.navbar-collapse.show {

  opacity: 1;
}

/* état fermé */
.navbar-collapse .navbar-nav {
    opacity: 0;
    transform: translateY(30px); /* 👈 vient du bas */
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

/* état ouvert */
.navbar-collapse.show .navbar-nav {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s; /* optionnel */
}



    header .navbar-nav .nav-link {
        padding: 0
    }
    header .navbar-nav .nav-item .dropdown-menu {
        box-shadow: none !important;
        border-radius: 0;
        padding: 0;
        background-color: transparent
    }
    header .navbar-nav .nav-item .dropdown-menu .dropdown-item {
        padding: 5px 0;
    }


header .navbar-collapse.collapse .navbar-nav .nav-item .dropdown-menu .dropdown-item {
      font-size: 1.2rem;
      padding: 2px 0;
    }

    .navbar-toggler.collapsed .menu-close {
        display: none
    }
    .navbar-toggler.collapsed .menu-icon {
        display: block;
        z-index: 999;
        color: #1e1e1e;
    }
    .navbar-toggler .menu-icon {
        display: none
    }
    .navbar-toggler .menu-close {
        display: block;
        color: #ffffff;
    }



}

@media screen and (max-width:767px) {

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    .btn-sign {
      width: 100%;
    }

    .nav-wrapper small {
      font-size: 0.7rem;
      font-weight: bold;
      line-height: 1;
    }

    .nav-footer span.material-symbols-rounded {
      font-size: 1.5rem !important;
    }

}




#word-bank {
  min-height: 70px;           /* ta hauteur souhaitée */
  align-items: flex-start; /* empêche les boutons d'être étirés verticalement */
}


body.dark .table tr.selected td {
    background-color: #ceeffe !important;
    transition: background-color 0.2s ease;
}

body.dark .table tr td .input-word{
    color: #ffffff;
}

body.dark .table tr.selected td .input-word{
    color: #172f41;
}



.stats .material-symbols-rounded {
  font-size: 16px;
}

#words_flow {
  overflow-y: auto;
  height: 100vh;
}


@media screen and (min-width:768px) {

  .dvh-100 {
    height: 100vh;
    height: 100dvh !important;
  }


  #words_flow {
    overflow-y: auto;
    height: 50vh;
  }

}



#words_table thead th {
    position: sticky;
    top: 0;
    z-index: 10;            /* Pour rester au-dessus des lignes du corps */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); /* Optionnel : petite ombre pour séparer */
}

.no-overflow {
  overflow: hidden;

  position: relative;
}




.modal-header {
  border-bottom: 0;
}

.modal-body {
  padding: 0rem 2rem 0rem 2rem;
}

/* Menu Navigation -----------------------------------------------------------*/
img.logo {
  width: 220px;
  height: auto;
  padding: 10px 0px;
}


@media (min-width:1200px) {
    .container {
        max-width: 1140px
    }
}



.logo {
  height: 32px; /* ou ce que tu utilises */
}

/* par défaut (light) */
.logo-dark {
  display: none;
}

/* mode sombre */
body.dark .logo-light {
  display: none;
}

body.dark .logo-dark {
  display: inline;
}



.btn-speak {
    border: none;
    background-color: var(--text-primary-color);
    color: #ffffff;
    border-radius: 9999px !important;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.15s ease-in-out;
}

.btn-speak:hover {
    transform: scale(1.2);
}


.mobile-icon {
  display: none;
}

header ul.navbar-nav {
  padding: 0 25px;
}


@media screen and (max-width:991px) {

  #languageDropdown,  #optionsDropdown{
    display: none !important;
  }

  #languageDropdown + .dropdown-menu, #optionsDropdown + .dropdown-menu {
    display: block; /* Assure que les sous-liens de la liste déroulante restent visibles */
  }

  .mobile-icon {
    display: block;
    width: 50px;
    height: auto;
    padding: 10px 0;
  }



  ul#languages, ul#options {
    text-align: center;
  }

  header .navbar-nav .nav-item .dropdown-menu .dropdown-item,
  header .navbar-nav .nav-link,
  .nav-item.separator span {
    color: #ffffff;
  }

header .navbar-nav .nav-item.separator {
  padding: 10px 0;
}


    img.logo {
      width: 140px;
      height: auto;
      padding: 10px 0px;
    }

}




.card.quiz, .card.quiz .card-body, .card.quiz label {
  cursor: pointer
}

.btn-rounded {
  border-radius: 999px;
  padding:15px 30px;
}



.text-danger {
  color: #ed375a !important;
}

.text-success {
    color: #a0d468 !important;

}

/* signin & login inputs */



.form-control-lg, .btn-lg {
  font-size: 1rem;
  padding: 1rem;
}

.form-control.is-invalid {
  background-image: none;
}



/* Buttons --------------------------------------------------------------------*/


.btn-primary {
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--text-primary-color);
  border-color: var(--text-primary-color);
  transition: filter 0.25s ease-in;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--text-primary-color) !important;
  border-color: var(--text-primary-color);
  filter: brightness(110%);
}


.input-group-text {
  background: #ffffff;
}

.input-word {
  border: 0;
  text-align: left;
  width: 100%;
  background: none;
  padding: 0.75rem 1rem;
  color: #1e1e1e;
}

.input-word:focus {
  outline: none;
}


.text-word {
  padding: 0.75rem 1rem;
}

/* Animation Delays -----------------------------------------------------------*/

.delay-250ms {
  animation-delay: 0.25s;
}

.delay-500ms {
  animation-delay: 0.50s;
}

.delay-750ms {
  animation-delay: 0.75s;
}



.carousel {
    position: relative;
}

.carousel-inner {
    min-height: 150px; /* adapte à ton contenu max */
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--text-primary-color);
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999em;
}

.carousel-indicators .active {
  opacity: 1;
  width: 32px;
}

.nav-footer span.material-symbols-rounded {
  font-size: 1.8rem;
}


.nav-footer .nav-wrapper {
  max-width: 500px;   /* limite la largeur sur desktop */
  width: 100%;        /* prend toute la largeur en mobile */
}








/* Game questions Prev/Next navigation-----------------------------------------*/
.nav-arrows {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%; /* occupe toute la hauteur de l'écran */
  z-index: 1000;
  pointer-events: none;
}

.nav-arrows .circle-btn {
  position: absolute;
  top: 50%; /* centre verticalement par rapport à l'écran */
  transform: translateY(-50%);

}

.nav-arrows .left-btn {
  left: 25px;
}

.nav-arrows .right-btn {
  right: 25px;
}



.card.quiz,
#writing_input {
    border: 2px solid var(--border-light-mode-color);
}


body.dark.lists .card {
    border: 0;
}



.card-body, .input-term {
  padding: 0.75rem 1rem;
  height: 64px;
}

.card a {
  font-weight: 500;
}



.global.progress {
  height: 10px;
}

.global.progress .progress-bar {
  width: 0; /* on commence à 0 pour l'animation */
  height: 20px;

  background: linear-gradient(to right, #fd9922, #f6c465);
  transition: width 1.5s ease-out; /* transition ease-out */
}




.progress-bar {
    background: linear-gradient(to right, #fd9922, #f6c465);*/

}




.lists .card {
  padding: 0.75rem 0rem;
  border: 2px solid var(--border-light-mode-color)
}

.lists .card-body {
  padding: 0rem 1rem 0rem 1rem;
  height: auto;
}

.lists .list.progress {
  height: 4px;
  background-color: #f8faff;
  margin: 2px 1rem 0 1rem;
}

.dark.lists .list.progress {
  background-color: transparent;
}



.lists .list.progress .progress-bar {
  border-radius: 999px;
}





.xsmall {
  font-size: 0.75rem;
}

.table {
  margin: 0;
}







.btn-rev.pushable {
  margin: 0 auto;
  position: relative;
  background: transparent;
  padding: 0px;
  border: none;
  cursor: pointer;
  outline-offset: 4px;
  outline-color: deeppink;
  transition: filter 250ms;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  width: 58px;
  height: 56px;
}

.btn-rev .shadow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: hsl(226, 25%, 69%);
  border-radius: 25px;
  filter: blur(2px);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.dark .btn-rev .shadow {
  background: none;
}


.btn-rev .edge {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 25px;
  background: linear-gradient(
    to right,
    hsl(248, 39%, 39%) 0%,
    hsl(248, 39%, 49%) 8%,
    hsl(248, 39%, 39%) 92%,
    hsl(248, 39%, 29%) 100%
  );
}

.btn-rev .front {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 58px;
  height: 56px;
  border: 0;
  border-radius: 25px;

  background: var(--text-primary-color);
  color: white;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.btn-rev.pushable:hover {
  filter: brightness(110%);
}

.btn-rev.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.btn-rev.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.btn-rev.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.btn-rev.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.btn-rev.pushable:focus:not(:focus-visible) {
  outline: none;
}

.btn-rev.pushable a,
.btn-rev.pushable a:hover,
.btn-rev.pushable a:active {
  color: #ffffff !important;
  font-size: 2rem;
}




.number-wrapper {
  width: 3.15em;
  height: 1.8em;            /* même hauteur */
  background: #ffffff;
  border-radius: 999px;     /* très arrondi */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
}

.dark .number-wrapper  {
  border: 1px solid #ffffff;
}


.number-wrapper input[type="number"] {
  width: 100%;
  height: 100%;
  background: transparent;
  font-size: 1rem;
  border: none;
  text-align: center;
  outline: none;
  appearance: textfield;
}

/* Supprimer les flèches natives */
.number-wrapper input::-webkit-inner-spin-button,
.number-wrapper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



.select-wrapper {
  width: 8em;
  height: 1.8em;
  background: #ffffff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  position: relative;
  padding: 0 1.2em 0 0.8em;  /* espace pour la flèche */
}

.dark .select-wrapper {
  border: 1px solid #ffffff;
}
.select-wrapper select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 0.6em;
  font-size: 0.7em;
  color: #6c757d;
  pointer-events: none;
}









/* Overlay menu --------------------------------------------------------------*/

@media screen and (max-width:992px) {
  body .navbar-collapse {
      background-color: var(--text-primary-color);
  }
}







body header .navbar-brand {
  display: none;
}

body.revocabulary header .navbar-brand,
body.welcome header .navbar-brand {
  display: block;
}

body.revocabulary header .navbar-back-link,
body.welcome header .navbar-back-link {
  display: none !important;
}

@media (min-width: 992px) {
  body header .navbar-brand {
    display: block;
  }

  body.revocabulary header .navbar-brand,
  body.welcome header .navbar-brand {
    display: block;
  }

  body header .navbar-back-link {
    display: none !important;
  }

}


/* SIGN IN & SIGN UP ------------------------------------------------------------ */

.flip-card-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.flip-card {
  height: 200px;
}


@media (min-width:768px) {
    .flip-card-wrapper {
        max-width: 65%;
    }

    .flip-card {
        height: 60px;
    }
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  background-color: transparent;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
}

@media screen and (max-width:767px) {
  .flip-card .input-group > .form-control,
  .flip-card .btn-pink {
    width: 100%;
  }

  .flip-card input, .flip-card button {
    border-radius: 0.5rem !important;
  }
}

#authentication-error {
  height: 40px;
}

#authentication-error span {
  font-size: 0.9rem;
}












.img-score {
  max-width: 200px;
  height: auto;
}


.circle-btn {
  position: relative;
  overflow: hidden;
  margin-top: -2px;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  font-size: 32px;
  text-decoration: none;
  pointer-events: auto;

  width: 58px;
  height: 56px;
  border: 0;
  border-radius: 25px;
  background-color: var(--text-primary-color);
  color: #ffffff;

  box-shadow:
    0 3px 0 #3D2AAA,
    0 10px 18px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;

  z-index: 0;
}

.circle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background-color: #8B7CDF;*/
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  z-index: -1;
  border-radius: 999em;
}

.circle-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 5px 0 #3D2AAA,
    0 16px 24px rgba(0, 0, 0, 0.28);

  color: #fafafa !important;
  font-size: 36px;
}

.circle-btn:hover::before {
  transform: scale(1);
}












.circle-btn-grey {
  background-color: #cdd1da;
  border: 1px solid #aab2bf;

  box-shadow:
    0 3px 0 #aab2bf,
    0 10px 18px rgba(0, 0, 0, 0.22);
  color: #1e1e1e;
}

.circle-btn-grey:hover {
    color: #1e1e1e !important;
}


/* PRESSÉ : le bouton s'enfonce */
.circle-btn-grey:active {
  background-color: #656d78;
  box-shadow:
    0 2px 0 #aab2bf,
    0 6px 10px rgba(0, 0, 0, 0.25);
}







.bl-0 {
  border-left: 0;
}

.br-0 {
  border-right: 0;
}


/* Zone où les mots se placent */
.answer-area {
  min-height: 100px;
  background-color: white;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: center;
  border: 2px solid #e3e7ec;

}

#writing_input {
    border: 2px solid var(--border-light-mode-color);
}

.dark #writing_input {
    border: 2px solid var(--border-dark-mode-color);
}



/* Banque de mots */
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

/* Style des mots sous forme de bulles */
.word-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: grab;
  white-space: nowrap;
  margin-bottom: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
}

/* Effet au clic */
.word-btn:active {
  transform: scale(0.95);
}


.word-btn:hover,
.word-btn.selected {
  background-color: var(--btn-primary-color);
  color: #ffffff;
}


/* check de reponse */

.form-control.is-valid,
.was-validated .form-control:valid {
  /* SVG encodé avec fill en vert */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23a0d468' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");
}

.btn-light {
  background-color: #ffffff;
  color: #1e1e1e;
}








/* DARK MODE */


body.dark .navbar-nav .nav-link.show,
body.dark a:hover,
body.dark .nav-link:focus, body.dark .nav-link:hover,
.link-primary,
.link-primary:hover,
.link-primary:active {
  color: var(--text-primary-color) !important;
}


body.dark,
body.dark header .nav-link, body.dark header .navbar-breadcrumbs,
body.dark a,
body.dark .nav-link:focus,
body.dark .nav-link:hover,
body.dark .navbar-nav .nav-link.active,
body.dark .card.quiz,
body.dark .input-term,
body.dark header .navbar-nav .nav-item .dropdown-menu .dropdown-item,
body.dark header .navbar-collapse.collapse a,
body.dark header .navbar-collapse.collapse a:hover,
body.dark .table th,
body.dark .table td,
body.dark .navbar-toggler.collapsed .menu-icon,
body.dark h1,
body.dark h2 {
  color: #fdfdfd !important;
}


.modal .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fdfdfd'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
}

.modal-backdrop.show {
  opacity: 0.75;
}



body.dark, body.dark .nav-header {
  background: none;
  background-color: #172f41;
}

body.dark .nav-footer {
  background: #172F41;
  background: linear-gradient(180deg,rgba(23, 47, 65, 0) 0%, rgba(23, 47, 65, 1) 10%);
}



body.dark .card,
body.dark .table td,
body.dark .input-term,
body.dark .dropdown-menu,
body.dark .modal .form-control,
body.dark.reorder .answer-area {
  background-color: var(--bg-secondary-color);
}

body .table th {
  background-color: var(--text-primary-color);
  color: #ffffff;
}


body.dark .modal .modal-content {
    background-color: #172f41;
}


body.dark.writing .input-term,
body.dark.quiz .card.quiz,
body.dark.reorder .answer-area,
body.dark .modal .form-control {
  border: 2px solid var(--bg-secondary-color);
}

body.dark .modal .form-control {
  color: #ffffff;
}


body.dark .card .stats,
body.dark button.text-tertiary {
  color: #a6a6a7 !important;
}



body.dark .table th, body.dark .table td{
  border-color: #989b9e;
}

body.dark .input-term,
body.dark .form-check-input {
  border: 0;
}


body.quiz .is-invalid,
body.reorder .answer-area.is-invalid,
body.writing #writing_input.is-invalid,
body.dark.quiz .card.quiz.is-invalid,
body.dark.reorder .answer-area.is-invalid,
body.dark.writing .input-term.form-control.is-invalid {
  border: 2px solid #ed375a;
  background-color: #ed375a;
  color: #ffffff;
}

body.quiz .is-valid,
body.reorder .answer-area.is-valid,
body.writing #writing_input.is-valid,
body.dark.quiz .card.quiz.is-valid,
body.dark.reorder .answer-area.is-valid,
body.dark.writing .input-term.form-control.is-valid {
  border: 2px solid #a0d468;
  background-color: #a0d468;
  color: #ffffff;
}





/* Configuration du rail du switch */
.custom-switch-v2 {
    position: relative;
    padding-left: 0; /* On gère l'espacement manuellement */
}

.custom-switch-v2 .form-check-input {
    margin: 0;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

/* 3. Le conteneur d'icônes corrigé */
.switch-icon-container {
    position: absolute;
    top: 50%; /* Positionne le haut à 50% */
    left: 0;
    transform: translateY(-50%); /* Recentrage vertical mathématique */
    height: 100%; /* Prend toute la hauteur du parent */
    width: 100%;
    display: flex;
    align-items: center; /* Centre les icônes verticalement dans le flex */
    justify-content: space-between;

    padding: 0 3px; /* Ajustez le padding horizontal uniquement */
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

/* Style des icônes Material */
.switch-icon-container .material-symbols-rounded {
    font-size: 10px;
    transition: opacity 0.2s ease;
    color: #ffffff;
    margin-top: -1px;
}

/* Logique d'affichage : Mode Clair (Non coché) */
.icon-sun { opacity: 0; }
.icon-moon { opacity: 0.5; }

/* Logique d'affichage : Mode Sombre (Coché) */
.form-check-input:checked ~ .switch-icon-container .icon-sun {
    opacity: 0.5;
}
.form-check-input:checked ~ .switch-icon-container .icon-moon {
    opacity: 0;
}



/* Hide dropdown on small screens */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Hide mobile button on desktop */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
