@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');@import url('https://fonts.googleapis.com/css2?family=K2D:wght@500&display=swap');.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.home {
  padding: 3rem 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.egg_trigger {
  cursor: pointer;
  text-decoration: underline dotted;
  transition: color 0.3s;
}

.egg_trigger:hover {
  color: var(--color-background-hover);
}

.home_about {
  display: flex;
  width: 100%;
  padding: 2rem 4rem 0 4rem;
  height: 45rem;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.home_box {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 75%;
}

.home_title {
  font-size: 2.5em;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.title_color--code {
  color: var(--color-text-on-dark);
  font-size: 0.7em;
}

.title_inline {
  display: flex;
  align-items: center;
}

.title_color--sec {
  color: var(--color-text-secondary);
  font-size: 1.1em;
}

.title_color--blue {
  color: var(--color-accent-tertiary);
  font-size: 1.1em;
}

.title_color--vio {
  color: var(--color-accent-secondary);
  font-size: 1.1em;
}

.home_tag {
  color: var(--color-text-on-dark);
  height: 2em;
  letter-spacing: 0.2rem;
  display: flex;
  align-items: flex-start;
  position: absolute;
  right: 4rem;
  top: 2rem;
}

.about_tag {
  color: var(--color-text-on-dark);
  height: 2em;
  letter-spacing: 0.2rem;
  display: flex;
  align-items: flex-start;
  position: absolute;
  right: 4rem;
  top: 2rem;
}

.contact_tag {
  color: var(--color-text-on-dark);
  height: 2em;
  letter-spacing: 0.2rem;
  display: flex;
  align-items: flex-start;
  position: absolute;
  right: 0;
  top: 2rem;
}

.tag_anim {
  color: var(--color-accent-primary);
  animation: tag-pulse 1s infinite;
}

@keyframes tag-pulse {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home_project {
  height: auto;
  min-height: 64rem;
  width: 100%;
  padding: 4rem 4rem;
}

.home_contact {
  display: flex;
  width: 100%;
  padding: 6rem 4rem 4rem 4rem;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.contact_text {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 2rem 0;
}

.text_contain {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.text_contain.contact_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  gap: 1.5rem;
  width: 100%;
  justify-items: stretch;
}

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

.contact_item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  justify-content: center;
  cursor: pointer;
}

.contact_item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact_item img {
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(90%) contrast(90%);
  opacity: 0.8;
}

.contact_item:hover img {
  transform: scale(1.05);
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Couleurs subtiles pour chaque plateforme */
.contact_item.linkedin:hover {
  border-color: #065973;
  background: rgba(101, 89, 115, 0.05);
}

.contact_item.linkedin:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(187deg) brightness(104%) contrast(97%);
}

.contact_item.github:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.05);
}

.contact_item.github:hover img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(0%) contrast(100%);
}

.contact_item.email:hover {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.contact_item.email:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(340deg) brightness(104%) contrast(97%);
}

.contact_item.notion:hover {
  border-color: #9f1066;
  background: rgba(159, 16, 102, 0.05);
}

.contact_item.notion:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(300deg) brightness(104%) contrast(97%);
}

.contact_item.calendly:hover {
  border-color: #4a90e2;
  background: rgba(74, 144, 226, 0.05);
}

.contact_item.calendly:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(210deg) brightness(104%) contrast(97%);
}

.contact_item.cv:hover {
  border-color: #e9503f;
  background: rgba(233, 80, 63, 0.05);
}

.contact_item.cv:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(340deg) brightness(104%) contrast(97%);
}

.contact_link {
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  position: relative;
  transition: all 0.3s ease;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.contact_link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--color-accent-primary);
  transition: width 0.3s ease;
}

.contact_item:hover .contact_link {
  color: var(--color-text-on-dark);
  opacity: 1;
}

.contact_item:hover .contact_link::after {
  width: 100%;
}

/* Couleurs de la ligne de soulignement pour chaque contact */
.contact_item.linkedin .contact_link::after {
  background: #065973;
}

.contact_item.github .contact_link::after {
  background: #000;
}

.contact_item.email .contact_link::after {
  background: #dc2626;
}

.contact_item.notion .contact_link::after {
  background: #9f1066;
}

.contact_item.calendly .contact_link::after {
  background: #4a90e2;
}

.contact_item.cv .contact_link::after {
  background: #e9503f;
}

.tag_container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 2rem;
  right: 4rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .home_contact {
    padding: 4rem 2rem 2rem 2rem;
  }

  .text_contain.contact_grid {
    gap: 1.2rem;
  }

  .tag_container {
    right: 2rem;
  }

  .about_tag {
    right: 2rem;
  }

  .contact_tag {
    right: 0;
  }
}

@media screen and (max-width: 992px) {
  .home_contact {
    padding: 3rem 1rem 2rem 1rem;
    min-height: auto;
  }

  .contact_text {
    max-width: 600px;
    margin: 0 auto;
  }

  .text_contain.contact_grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .text_contain {
    gap: 0.8rem;
  }

  .contact_item {
    padding: 1.5rem;
    gap: 1rem;
    justify-content: center;
    text-align: center;
  }

  .contact_item img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .contact_link {
    font-size: 1rem;
    text-align: center;
  }

  .tag_container {
    right: 1rem;
    top: 1rem;
  }

  .about_tag {
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .contact_tag {
    right: 0;
    top: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .home_contact {
    padding: 2rem 0.5rem 1rem 0.5rem;
  }

  .text_contain.contact_grid {
    gap: 0.6rem;
  }

  .contact_item {
    padding: 1.2rem;
    gap: 0.8rem;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
  }

  .contact_item:hover {
    transform: translateY(-1px);
  }

  .contact_item img {
    width: 1.6rem;
    height: 1.6rem;
  }

  .contact_link {
    font-size: 0.95rem;
    text-align: center;
  }

  .tag_container {
    right: 0.5rem;
  }

  .about_tag {
    right: 1rem;
    top: 1rem;
  }

  .contact_tag {
    right: 0;
    top: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .home_contact {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }

  .text_contain.contact_grid {
    gap: 0.5rem;
  }

  .contact_item {
    padding: 1rem;
    gap: 0.7rem;
    border-radius: 8px;
    justify-content: center;
    text-align: center;
  }

  .contact_item img {
    width: 1.4rem;
    height: 1.4rem;
  }

  .contact_link {
    font-size: 0.9rem;
    text-align: center;
  }

  .tag_container {
    right: 0.5rem;
    top: 0.5rem;
  }

  .about_tag {
    right: 0.5rem;
    top: -0.5rem;
  }

  .contact_tag {
    right: 0;
    top: 0.5rem;
  }
}

.project_tag {
  color: var(--color-text-on-dark);
  height: 2em;
  letter-spacing: 0.2rem;
}

.project_tag_container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  width: 100%;
}

.button_container {
  display: flex;
  width: auto;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button_tag,
.active_tag {
  border-radius: 8px;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.button_tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.active_tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  border-width: 2px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.black {
  color: #4b5563;
  border-color: #4b5563;
}

.black:hover {
  color: #111827;
  border-color: #111827;
  background: #f3f4f6;
}

.red {
  color: #dc2626;
  border-color: #dc2626;
}

.red:hover {
  background: #fef2f2;
}

.blue {
  color: #065973;
  border-color: #065973;
}

.blue:hover {
  background: #eff6ff;
}

.green {
  color: #237c03;
  border-color: #237c03;
}

.green:hover {
  background: #ecfdf5;
}

.supabase {
  color: #4a90e2;
  border-color: #4a90e2;
}

.supabase:hover {
  background: #f0fdf4;
}

.ia {
  color: #0f766e;
  border-color: #0f766e;
}

.ia:hover {
  background: #f0fdfa;
}

.violet {
  color: #9f1066;
  border-color: #9f1066;
}

.violet:hover {
  background: #f0f9ff;
}

.orange {
  color: #be8110;
  border-color: #be8110;
}

.orange:hover {
  background: #fff7ed;
}

.pink {
  color: #e9503f;
  border-color: #e9503f;
}

.pink:hover {
  background: #fdf2f8;
}

.tailwind {
  color: #8b5cf6;
  border-color: #8b5cf6;
}

.tailwind:hover {
  background: #faf5ff;
}

.project_container {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  transition: all 0.5s ease;
}

.project_wrapper {
  perspective: 1000px;
  perspective-origin: top;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: projectAppear 0.5s ease forwards;
}

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

.project_wrapper:hover .project {
  transform: rotateY(180deg);
}

.project {
  position: relative;
  width: 28rem;
  height: 20rem;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.project_front,
.project_back {
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project_front {
  background-color: rgba(248, 250, 252, 0.05);
  border-radius: 90px 0;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.front_up {
  height: 10rem;
  background-color: var(--color-background-secondary);
  border-radius: 90px 0 0 0;
  text-align: center;
  padding: 1rem 0.5rem;
  margin-bottom: 2rem;
}

.up_title {
  font-size: 1.5em;
  color: var(--color-text-on-light);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 0.3rem;
}

.up_title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-text-on-light),
    var(--color-accent-tertiary)
  );
  transition: width 0.3s ease;
}

.up_title:hover::after {
  width: 100%;
}

.up_describe {
  font-size: 1.2em;
  color: var(--color-text-on-light);
  padding-top: 0.5rem;
}

.front_down {
  width: auto;
  height: 5rem;
  background: var(--color-background-secondary);
  border-radius: 0 0 90px 0;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  cursor: default;
  color: var(--color-text-on-light);
}

.down_list {
  display: flex;
  flex-wrap: wrap;
}

.down_list > li {
  margin: 0 0.3rem 0.3rem 0;
  font-size: 12px;
  padding: 0.2rem 0.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid;
  background: rgba(248, 250, 252, 0.3);
  transition: all 0.2s ease;
}

.down_list > li:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  background: rgba(248, 250, 252, 0.5);
}

/* Styles spécifiques pour les tags dans les projets */
.down_list > li.black {
  color: #000;
  border-color: #374151;
}

.down_list > li.black:hover {
  color: #000;
  border-color: #1f2937;
}

.down_list > li.red {
  color: #dc2626;
  border-color: #dc2626;
}

.down_list > li.red:hover {
  color: #dc2626;
  border-color: #b91c1c;
}

.down_list > li.blue {
  color: #065973;
  border-color: #0ea5e9;
}

.down_list > li.blue:hover {
  color: #065973;
  border-color: #0284c7;
}

.down_list > li.green {
  color: #237c03;
  border-color: #10b981;
}

.down_list > li.green:hover {
  color: #237c03;
  border-color: #059669;
}

.down_list > li.supabase {
  color: #4a90e2;
  border-color: #3ecf8e;
}

.down_list > li.supabase:hover {
  color: #4a90e2;
  border-color: #22c55e;
}

.down_list > li.violet {
  color: #9f1066;
  border-color: #a855f7;
}

.down_list > li.violet:hover {
  color: #9f1066;
  border-color: #9333ea;
}

.down_list > li.orange {
  color: #be8110;
  border-color: #f59e0b;
}

.down_list > li.orange:hover {
  color: #be8110;
  border-color: #d97706;
}

.down_list > li.pink {
  color: #e9503f;
  border-color: #ec4899;
}

.down_list > li.pink:hover {
  color: #e9503f;
  border-color: #db2777;
}

.down_list > li.tailwind {
  color: #8b5cf6;
  border-color: #8b5cf6;
}

.down_list > li.tailwind:hover {
  color: #8b5cf6;
  border-color: #7c3aed;
}

.project_back {
  background-color: rgba(248, 250, 252, 0.05);
  border-radius: 90px 0;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.5rem;
  transform: rotateY(180deg);
}

.back_container > img {
  width: 25rem;
  height: 18rem;
  border-radius: 90px 0 90px 0;
  object-fit: cover;
}

.project_button {
  margin: 1rem 0 4rem 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.project_link {
  font-size: 1.2em;
  color: var(--color-text-on-dark);
  border-radius: 5px;
  border: solid 2px var(--color-text-on-dark);
  background: none;
  padding: 0.2rem 1rem;
  transition: 0.45s;
  cursor: pointer;
}

.project_link:hover,
.project_link:focus {
  box-shadow: inset 6.5em 0 0 0 rgba(14, 165, 233, 0.15);
}

.project_button.show_all {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  width: 100%;
}

.project_button.show_all .project_link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform-origin: center;
}

.project_button.show_all .project_link:hover {
  transform: rotate(180deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(14, 165, 233, 0.1);
}

/****************************************** RESPONSIVE **************************************/

@media only screen and (max-width: 1480px) {
  /* Section project */
  .home_project {
    padding: 2rem 0.5rem;
    height: auto;
  }

  .project_tag_container {
    flex-direction: column-reverse;
  }

  .project_tag {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }

  .button_container {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
    justify-content: center;
  }

  .project_container {
    justify-content: center;
    gap: 2rem;
  }

  .project_wrapper {
    align-self: center;
  }
}

.presentation_container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card_container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1000;
}

.card_container > * {
  pointer-events: auto;
}

/* Section About */
@media screen and (max-width: 1200px) {
  .home_about {
    padding: 2rem 2rem 0 2rem;
    height: auto;
    min-height: 40rem;
  }

  .home_title {
    font-size: 2.2em;
  }

  .home_tag {
    right: 0;
  }

  .home_contact {
    padding: 4rem 2rem 2rem 2rem;
  }

  .text_contain.contact_grid {
    gap: 1.2rem;
  }

  .tag_container {
    right: 2rem;
  }
}

/* Media query spécifique pour 993px à 1784px */
@media screen and (min-width: 993px) and (max-width: 1784px) {
  .contact_text {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .text_contain.contact_grid {
    gap: 2rem;
  }

  .contact_item {
    max-width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.08em;
  }

  .contact_link {
    font-size: 1.18em;
  }
}

@media screen and (max-width: 992px) {
  .home {
    padding: 0.8rem;
  }

  .home_about {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }

  .home_box {
    width: 100%;
    justify-content: center;
  }

  .home_title {
    font-size: 2em;
    text-align: center;
  }

  .title_inline {
    justify-content: center;
  }

  .home_tag {
    position: absolute;
    right: 0;
    top: 1rem;
  }

  .home_contact {
    padding: 3rem 1rem 2rem 1rem;
    min-height: auto;
  }

  .contact_text {
    max-width: 600px;
    margin: 0 auto;
  }

  .text_contain.contact_grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .text_contain {
    gap: 0.8rem;
  }

  .contact_item {
    padding: 1.5rem;
    gap: 1rem;
    justify-content: center;
    text-align: center;
  }

  .contact_item img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .contact_link {
    font-size: 1rem;
    text-align: center;
  }

  .tag_container {
    right: 1rem;
    top: 1rem;
  }

  .project_container {
    justify-content: center;
    gap: 0rem;
  }

  .project {
    width: 25rem;
    height: 18rem;
  }

  .back_container > img {
    width: 22rem;
    height: 16rem;
  }
}

@media screen and (max-width: 768px) {
  .home_about {
    padding: 6rem 0;
    min-height: 35rem;
  }

  .home_title {
    font-size: 1.8em;
  }

  .title_color--code {
    font-size: 0.6em;
  }

  .title_color--sec,
  .title_color--blue,
  .title_color--vio {
    font-size: 1em;
  }

  .home_tag {
    right: 0;
    top: 1rem;
  }

  .home_contact {
    padding: 2rem 0.5rem 1rem 0.5rem;
  }

  .text_contain.contact_grid {
    gap: 0.6rem;
  }

  .contact_item {
    padding: 1.2rem;
    gap: 0.8rem;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
  }

  .contact_item:hover {
    transform: translateY(-1px);
  }

  .contact_item img {
    width: 1.6rem;
    height: 1.6rem;
  }

  .contact_link {
    font-size: 0.95rem;
    text-align: center;
  }

  .tag_container {
    right: 0.5rem;
  }

  .project {
    width: 22rem;
    height: 16rem;
  }

  .back_container > img {
    width: 19rem;
    height: 14rem;
  }

  .up_title {
    font-size: 1.3em;
  }

  .up_describe {
    font-size: 1em;
  }

  .project_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .project_button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
    margin-top: 2rem;
  }

  .project_link {
    padding: 0.5rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .home_about {
    padding: 0.5rem;
    min-height: 30rem;
  }

  .home_title {
    font-size: 1.5em;
  }

  .title_color--code {
    font-size: 0.5em;
  }

  .title_color--sec,
  .title_color--blue,
  .title_color--vio {
    font-size: 0.9em;
  }

  .home_tag {
    right: 0;
    top: 0.5rem;
  }

  .home_contact {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }

  .text_contain.contact_grid {
    gap: 0.6rem;
  }

  .contact_item {
    padding: 1rem;
    gap: 0.7rem;
    border-radius: 8px;
    justify-content: center;
    text-align: center;
  }

  .contact_item img {
    width: 1.4rem;
    height: 1.4rem;
  }

  .contact_link {
    font-size: 0.9rem;
    text-align: center;
  }

  .tag_container {
    right: 0.5rem;
    top: 0.5rem;
  }

  .project {
    width: 18rem;
    height: 14rem;
  }

  .back_container > img {
    width: 15rem;
    height: 12rem;
  }

  .up_title {
    font-size: 1.1em;
  }

  .up_describe {
    font-size: 0.9em;
  }

  .down_list > li {
    margin: 0 0.3rem 0.3rem 0;
    font-size: 12px;
    padding: 0.2rem 0.5rem;
  }

  .front_down {
    height: auto;
    padding: 0.5rem 1rem;
    border-radius: 0 0 45px 0;
  }
}

/* Media query pour les grands écrans */
@media screen and (min-width: 1400px) {
  .contact_item {
    padding: 2.5rem;
    gap: 1.8rem;
  }

  .contact_item img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .contact_link {
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 1800px) {
  .contact_item {
    padding: 3rem;
    gap: 2rem;
  }

  .contact_item img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .contact_link {
    font-size: 1.6rem;
  }
}
header {
  background-color: var(--color-background-primary);
  height: 8.12rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1000;
}

.header_container {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  transition: all 0.3s;
  z-index: 1000;
}

.header_shrink {
  height: 3rem;
  position: fixed;
  z-index: 1000;
}

.header_shrink .header_list {
  padding: 0 5rem 0 0;
  align-items: center;
}

.header_shrink .header_img {
  display: none;
}

.header_shrink .header::after {
  display: none;
}

.header_img {
  position: absolute;
  left: 5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-background-secondary);
  object-position: center 30%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header_img:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--color-accent-primary);
}

.header_list {
  color: var(--color-text-on-dark);
  display: flex;
  gap: 5rem;
  align-items: end;
  cursor: pointer;
  padding: 5rem;
}

.header_item a {
  text-decoration: none;
  color: var(--color-text-on-dark);
}

header::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  background-color: var(--color-background-primary);
  width: 100%;
  height: 0.3rem;
  z-index: -10;
}
.header_link {
  position: relative;
}

.header_link::before {
  content: '';
  position: absolute;
  background: var(--color-accent-primary);
  width: 100%;
  height: 0.15rem;
  bottom: -0.3rem;
  transform-origin: 100% 0;
  transform: scaleX(0);
  transition: transform 0.4s;
}

.header_link:hover::before {
  transform-origin: 0 0;
  transform: scaleX(1);
}

/* Burger Menu Styles */
.burger_menu {
  display: none;
  cursor: pointer;
  padding: 1.5rem;
  z-index: 1001;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-background-primary);
}

.burger_line {
  width: 35px;
  height: 3px;
  background-color: var(--color-text-on-dark);
  margin: 6px 0;
  transition: all 0.1s ease;
  border-radius: 2px;
  transform-origin: center;
}

.burger_menu.active .burger_line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger_menu.active .burger_line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger_menu.active .burger_line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .burger_menu {
    display: block;
    right: 2.5rem;
  }

  .header_list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-background-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 0;
    transition: right 0.5s ease;
    z-index: 999;
  }

  .header_list.active {
    right: 0;
  }

  .header_item a {
    font-size: 1.5em;
  }

  .header_img {
    width: 100px;
    height: 100px;
    left: 2rem;
  }

  .header_shrink .header_list {
    padding: 0;
  }
}

@media screen and (max-width: 480px) {
  .header_img {
    width: 80px;
    height: 80px;
    left: 1rem;
  }

  .burger_menu {
    right: 1rem;
    padding: 1.2rem;
  }

  .burger_line {
    width: 30px;
    height: 2px;
    margin: 5px 0;
  }

  .burger_menu.active .burger_line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger_menu.active .burger_line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
footer {
  background-color: var(--color-background-primary);
  width: 100%;
  height: 8.12rem;
  box-sizing: border-box;
  position: relative;
}

.footer_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--color-text-on-dark);
}

footer::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  background-color: var(--color-background-primary);
  width: 100%;
  height: 0.3rem;
}
.modal {
  position: fixed;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  overflow: hidden;
  background-color: var(--color-background-primary);
}

/* Masquer toutes les barres de défilement dans la modal */
.modal *,
.modal *::-webkit-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal *::-webkit-scrollbar {
  display: none;
}

.modal_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem;
  width: 80%;
  max-width: 1200px;
  position: relative;
  animation: modal-enter 0.8s;
  overflow-y: auto;
  background-color: rgba(245, 233, 226, 0.05);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  max-height: 100vh;
  border-radius: 5px;
  /* Masquer la barre de défilement */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Masquer la barre de défilement pour WebKit (Chrome, Safari, Edge) */
.modal_content::-webkit-scrollbar {
  display: none;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal_slider {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  margin: 1rem 0;
}

.modal_slider > button {
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--color-text-secondary);
  font-size: 2em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  line-height: 1;
  text-align: center;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.modal_slider > button::before,
.modal_slider > button::after {
  content: attr(data-arrow);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: inherit;
  color: inherit;
  opacity: 0;
  transition: all 0.4s ease;
}

.modal_slider > button::before {
  transform: translate(-50%, -50%) translateX(-15px);
}

.modal_slider > button::after {
  transform: translate(-50%, -50%) translateX(15px);
}

.modal_slider > button:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal_slider > button:hover::before {
  opacity: 0.6;
  transform: translate(-50%, -50%) translateX(-8px);
}

.modal_slider > button:hover::after {
  opacity: 0.6;
  transform: translate(-50%, -50%) translateX(8px);
}

.slider {
  max-width: 1000px;
  min-height: 300px;
  height: 50vh;
  max-height: 60vh;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 233, 226, 0.1);
}

.slider_img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
}

.slider_dots {
  display: flex;
  justify-content: center;
  margin: 1rem 0 2.75rem 0;
  gap: 0.85rem;
}

.dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: var(--color-text-secondary) solid 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-text-secondary);
}

.modal_close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5em;
  color: var(--color-text-secondary);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.modal_close:hover {
  transform: scale(1.1);
}

.modal_text {
  background-color: var(--color-background-secondary);
  width: 90%;
  line-height: 1.8;
  font-size: 1.3em;
  padding: 2rem;
  border-radius: 15px;
  color: var(--color-text-on-light);
  white-space: pre-line;
}

.modal_text > h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 1rem;
}

.text_link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-style: italic;
  margin: 1rem 0;
}

.link_slide {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-on-light);
  position: relative;
}

.link_slide::before {
  content: '';
  position: absolute;
  background: var(--color-text-on-light);
  width: 100%;
  height: 0.15rem;
  bottom: -2px;
  transform-origin: 100% 0;
  transform: scaleX(0);
  transition: transform 0.4s;
}

.link_slide:hover::before {
  transform-origin: 0 0;
  transform: scaleX(1);
}

@media screen and (max-width: 992px) {
  .modal_content {
    width: 90%;
    margin: 0 auto;
    padding: 1.2rem;
  }

  .modal_text {
    font-size: 1.1em;
    padding: 1.5rem;
  }

  .modal_text > h2 {
    font-size: 1.5em;
  }

  .slider {
    max-width: 800px;
  }

  .slider_dots {
    margin: 0.8rem 0 2.2rem 0;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
  }

  .dot {
    width: 0.85rem;
    height: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .modal_content {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    max-height: 100vh;
  }

  .modal_slider {
    overflow: visible !important;
    position: relative !important;
  }

  .slider {
    overflow: visible !important;
    position: relative !important;
    height: auto;
    padding-bottom: 0;
    min-height: unset;
    max-height: unset;
    display: block;
  }

  .slider_img {
    object-fit: contain;
    width: 100vw;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: static;
    top: unset;
    left: unset;
    transform: none;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background: transparent;
    z-index: 10;
    border: none;
    opacity: 1;
    visibility: visible;
  }

  .modal_slider > button {
    font-size: 1.8em;
    width: 35px;
    height: 35px;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
  }

  .modal_slider > button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  }

  .modal_text {
    width: 100%;
    font-size: 1em;
    padding: 1rem;
  }

  .modal_text > h2 {
    font-size: 1.3em;
  }

  .text_link {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .link_slide {
    font-size: 0.9em;
  }

  .slider_dots {
    margin: 0.6rem 0 1.9rem 0;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.25rem;
    min-height: 28px;
  }

  .dot {
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    min-height: 0.75rem;
    /* Zone de touch plus grande pour l’accessibilité */
    padding: 0.25rem;
    margin: -0.25rem;
    box-sizing: content-box;
  }

  .swipe_hint {
    display: block !important;
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    padding: 0.3em 0.9em !important;
    border-radius: 16px !important;
    font-size: 0.95em !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    font-family: inherit !important;
    letter-spacing: 0.04em !important;
    opacity: 0.85 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    outline: none !important;
    animation: none !important;
  }
}

@keyframes swipe-bounce {
  from {
    transform: translateX(-50%) translateX(0);
  }
  to {
    transform: translateX(-50%) translateX(12px);
  }
}

@media screen and (max-width: 480px) {
  .modal_content {
    padding: 0.8rem;
  }

  .modal_slider {
    margin: 0.8rem 0;
  }

  .slider {
    height: auto;
    padding-bottom: 0;
    min-height: unset;
    max-height: unset;
    display: block;
    position: relative;
  }

  .slider_img {
    object-fit: contain;
    width: 100vw;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: static;
    top: unset;
    left: unset;
    transform: none;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background: transparent;
    z-index: 10;
    border: none;
    opacity: 1;
    visibility: visible;
  }

  .modal_slider > button {
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
  }

  .modal_slider > button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .modal_text {
    font-size: 0.9em;
    padding: 0.8rem;
  }

  .modal_text > h2 {
    font-size: 1.2em;
  }

  .link_slide {
    font-size: 0.8em;
  }

  .slider_dots {
    margin: 0.5rem 0 1.6rem 0;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.15rem;
    min-height: 24px;
  }

  .dot {
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    min-height: 0.65rem;
    padding: 0.2rem;
    margin: -0.2rem;
    box-sizing: content-box;
  }
}

.swipe_hint {
  display: none;
}


.quest {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(
      135deg,
      rgba(58, 53, 49, 0.932),
      rgba(245, 248, 246, 0.829)
    ),
    url('/background-archemin.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  border-radius: 18px;
  padding: 2rem 2.4rem;
  max-width: 60rem;
  width: min(90%, 960px);
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'IM Fell English SC', serif;
  font-size: 1rem;
  color: #0f172a;
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.7),
    inset 0 0 30px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center;
  opacity: 0;
  z-index: 1000;
}

@keyframes scrollOpen {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes scrollClose {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

.quest_open {
  animation: scrollOpen 0.5s ease-out forwards;
}

.quest_closing {
  animation: scrollClose 0.5s ease-out forwards;
  pointer-events: none;
}

.quest_header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quest_header h2 {
  color: #3a2710;
  font-size: 1.8rem;
  margin-top: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.horde_logo {
  width: 60px;
}

.quest_body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quest_title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b08a2a;
  position: relative;
  padding-bottom: 0.15rem;
}

.quest_title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(240, 212, 122, 0.9),
    rgba(212, 175, 55, 0.3)
  );
}

.quest_reward ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  list-style-type: '🪙 ';
  color: #3b2916;
}

.quest_close-btn,
.quest_new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto 0;
  background: linear-gradient(
    135deg,
    rgba(182, 140, 42, 0.9),
    rgba(240, 212, 122, 0.95)
  );
  color: #2a1b07;
  padding: 0.55rem 1.9rem;
  font-family: inherit;
  border: 1px solid rgba(107, 77, 34, 0.8);
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(240, 212, 122, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.quest_close-btn {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.quest_close-btn:hover,
.quest_new-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(240, 212, 122, 0.65);
}

.quest_close-btn:active,
.quest_new-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(240, 212, 122, 0.5);
  filter: brightness(0.98);
}

/* Responsive Design */

@media screen and (max-width: 768px) {
  .quest {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 1rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    margin: 0;
    position: fixed;
    overflow-x: hidden;
  }

  .quest.quest_open {
    animation: mobile_quest_open 0.5s ease-out forwards;
  }

  .quest.quest_closing {
    animation: mobile_quest_close 0.5s ease-out forwards;
  }

  @keyframes mobile_quest_open {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes mobile_quest_close {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(100%);
      opacity: 0;
    }
  }

  .quest_header h2 {
    font-size: 1.5rem;
  }

  .quest_body p {
    font-size: 0.9rem;
  }

  .quest_title {
    font-size: 0.9rem;
  }

  .quest_reward ul {
    font-size: 0.9rem;
  }

  .quest_close-btn,
  .quest_new-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
  }

  .quest_new-btn {
    bottom: 7.5rem;
  }

  .quest_close-btn {
    bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .quest {
    border-width: 6px;
    padding: 0.8rem;
  }

  .quest_header h2 {
    font-size: 1.3rem;
  }

  .horde_logo {
    width: 50px;
  }

  .quest_body p {
    font-size: 0.85rem;
  }

  .quest_title {
    font-size: 0.85rem;
  }

  .quest_reward ul {
    font-size: 0.85rem;
  }

  .quest_close-btn,
  .quest_new-btn {
    font-size: 1rem;
  }
}


.presentation_ui {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(
      135deg,
      rgba(108, 110, 94, 0.911),
      rgba(245, 248, 246, 0.829)
    ),
    url('/background-archemin.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  border-radius: 18px 0 0 18px;
  padding: 2rem 2.4rem;
  max-width: 60rem;
  width: min(90%, 960px);
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'IM Fell English SC', serif;
  font-size: 1rem;
  color: #0f172a;
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.7),
    inset 0 0 30px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center;
  opacity: 0;
  transition: transform 0.3s ease;
  z-index: 1000;
}

/* Scrollbar styling */

.presentation_ui::-webkit-scrollbar {
  width: 8px;
}

.presentation_ui::-webkit-scrollbar-track {
  background: transparent;
}

.presentation_ui::-webkit-scrollbar-thumb {
  background: rgba(116, 82, 44, 0.45);
  border-radius: 999px;
  border: 1px solid rgba(249, 230, 168, 0.5);
}

.presentation_ui::-webkit-scrollbar-thumb:hover {
  background: rgba(116, 82, 44, 0.75);
}

.presentation_ui {
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 82, 44, 0.65) transparent;
}

@keyframes presentation_open {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes presentation_close {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

.presentation_open {
  animation: presentation_open 0.5s ease-out forwards;
}

.presentation_closing {
  animation: presentation_close 0.5s ease-out forwards;
  pointer-events: none;
}

.presentation_header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.presentation_header h2 {
  color: var(--color-text-on-light);
  font-size: 1.8rem;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.presentation_header_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(90, 63, 33, 0.75);
}

.presentation_header_badge-word {
  position: relative;
  cursor: default;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(182, 140, 42, 0.9) 0%,
    rgba(240, 212, 122, 0.95) 40%,
    rgba(212, 175, 55, 0.95) 60%,
    rgba(240, 212, 122, 0.95) 80%,
    rgba(182, 140, 42, 0.9) 100%
  );
  color: #2a1b07;
  border: 1px solid rgba(107, 77, 34, 0.75);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.35),
    0 0 6px rgba(240, 212, 122, 0.45);
  background-size: 220% 220%;
  background-position: 0% 50%;
  transition:
    background-position 0.45s ease-out,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.presentation_header_badge-word:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  background-position: 100% 50%;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(240, 212, 122, 0.65);
}

.presentation_header_badge-separator {
  opacity: 0.7;
  color: rgba(116, 82, 44, 0.9);
}

.presentation_body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.presentation_body_text {
  margin-top: 1.4rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  text-align: center;
  color: #3a2710;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(240, 212, 122, 0.45) 0%,
    rgba(212, 175, 55, 0.75) 40%,
    rgba(240, 212, 122, 0.9) 60%,
    rgba(212, 175, 55, 0.75) 80%,
    rgba(182, 140, 42, 0.85) 100%
  );
  background-size: 220% 220%;
  background-position: 0% 50%;
  border-radius: 999px;
  border: 1px solid rgba(107, 77, 34, 0.75);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(240, 212, 122, 0.45);
  transition:
    background-position 0.45s ease-out,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.presentation_body_text:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  background-position: 100% 50%;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(240, 212, 122, 0.7);
}

.presentation_reward {
  width: 100%;
  margin-top: 1.8rem;
  padding: 1.15rem 1.4rem 1.6rem;
  border-radius: 16px;
  background-color: #5a4128;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 244, 220, 0.008) 0px,
    rgba(255, 244, 220, 0.008) 4px,
    rgba(72, 50, 30, 0.02) 4px,
    rgba(72, 50, 30, 0.02) 10px
  );
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
  position: relative;
}

.presentation_reward::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(240, 212, 122, 0.22);
  pointer-events: none;
  opacity: 0.9;
}

.presentation_reward_title {
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f9e6a8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.presentation_reward_title::before {
  content: '✦';
  font-size: 0.85rem;
  color: #f0d47a;
}

.presentation_reward_title::after {
  content: ' ✦ :';
  font-size: 0.85rem;
  color: #f0d47a;
}

.presentation_reward ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  list-style-type: '🪙 ';
  font-size: 0.96rem;
  color: #f5f1e6;
}

.presentation_close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;
  background: linear-gradient(
    135deg,
    rgba(182, 140, 42, 0.9),
    rgba(240, 212, 122, 0.95)
  );
  color: #2a1b07;
  padding: 0.55rem 1.9rem;
  font-family: inherit;
  border: 1px solid rgba(107, 77, 34, 0.8);
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(240, 212, 122, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.presentation_close-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(240, 212, 122, 0.65);
}

.presentation_close-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(240, 212, 122, 0.5);
  filter: brightness(0.98);
}

/* Responsive Design */

@media screen and (max-width: 768px) {
  .presentation_card {
    width: 90%;
    height: 90%;
    padding: 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
  }

  .presentation_content {
    gap: 1.5rem;
  }

  .presentation_title {
    font-size: 1.8em;
    margin-bottom: 1rem;
  }

  .presentation_text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .presentation_close {
    top: 1rem;
    right: 1rem;
    font-size: 2em;
  }

  .presentation_ui {
    top: 0;
    left: 0;
    transform: none !important;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 1.4rem 1.1rem 2rem;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
  }

  .presentation_ui.presentation_open {
    animation: mobile_presentation_open 0.4s ease-out forwards;
  }

  .presentation_ui.presentation_closing {
    animation: mobile_presentation_close 0.3s ease-out forwards;
  }

  @keyframes mobile_presentation_open {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes mobile_presentation_close {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  .presentation_header h2 {
    font-size: 1.5rem;
  }

  .presentation_body p {
    font-size: 0.9rem;
  }

  .presentation_body_text {
    font-size: 1rem;
  }

  .presentation_reward ul {
    font-size: 0.9rem;
  }

  .presentation_close-btn {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .presentation_card {
    width: 95%;
    height: 95%;
    padding: 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
  }

  .presentation_content {
    gap: 1.2rem;
  }

  .presentation_title {
    font-size: 1.5em;
    margin-bottom: 0.8rem;
  }

  .presentation_text {
    font-size: 0.9em;
    margin-bottom: 1.2rem;
  }

  .presentation_header h2 {
    font-size: 1.5rem;
  }

  .presentation_body p {
    font-size: 0.9rem;
  }

  .presentation_body_text {
    font-size: 1rem;
  }

  .presentation_reward ul {
    font-size: 0.9rem;
  }

  .presentation_close-btn {
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 1.8rem auto 0;
    font-size: 0.9rem;
  }
}


/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  font-family: 'K2D', sans-serif;

  /* Palette de couleurs sémantique */
  --color-background-primary: #0f172a; /* Fond principal sombre */
  --color-background-secondary: #f8fafc; /* Fond clair pour les cartes */
  --color-background-hover: #f1f5f9; /* Fond pour les survols */

  --color-text-on-dark: #f8fafc; /* Texte sur fond sombre */
  --color-text-on-light: #0f172a; /* Texte sur fond clair */
  --color-text-secondary: #78716c; /* Texte secondaire (gris chaud) */

  --color-accent-primary: #0ea5e9; /* Accent principal (bleu ciel) */
  --color-accent-secondary: #0284c7; /* Accent secondaire (bleu océan) */
  --color-accent-tertiary: #38bdf8; /* Accent tertiaire (bleu ciel clair) */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-background-primary);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}
