/*------------------------ Custom Css ------------------------*/

body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

h3 {
  margin-top: 24px;
  font-size: 1.5rem;
  font-weight: bold;
}

h4 {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: bold;
}

p{
  font-size: 14px;
}

/* Nav liquid glass */
.liquidGlass-wrapper {
  position: relative;
  display: flex;
  font-weight: 600;
  color: black;
  cursor: pointer;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0), 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 360px;
}

.liquidGlass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;

  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  overflow: hidden;
  isolation: isolate;
  border-radius: 360px;
}

.liquidGlass-tint {
  z-index: 77;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 360px;
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 78;
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
  border-radius: 360px;
}

.liquidGlass-nav {
  position: fixed;
  z-index: 75;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.liquidGlass-dock li.home {
  height: 100%!important;
  all: unset;
}

.liquidGlass-dock li.contact {
  all: unset;
}

.liquidGlass-dock {
  z-index: 79;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px;
}

.liquidGlass-dock li {
  display: flex;
  position: relative;
}

.liquidGlass-dock svg {
  width: 18px;
  height: 18px;
  fill: #000;
  opacity: 0.5;
}

.liquidGlass-dock a {
  padding: 8px 20px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: #1f242e99;
  white-space: nowrap;
}

.liquidGlass-dock a.active {
  background-color: rgba(0,0,0,0.1);
  border-radius: 360px;
  color: #007bff;
}

.liquidGlass-dock a.active svg,
.liquidGlass-dock a.active svg path {
  fill: #007bff;
  stroke: #007bff;
}

.liquidGlass-dock a.active svg { opacity: 1; }

@media (max-width: 768px) {
  nav{
    display: flex!important;
    padding-bottom: 0;
  }

  .liquidGlass-nav {
    top: auto;
    bottom: 16px;
  }

  .liquidGlass-dock {
    gap: 0;
  }

  .liquidGlass-dock li.parcours, .liquidGlass-dock li.showroom {
    display: none;
  }
}

.home .home-inner .screen {
  position: relative;
  background-image: url('/images/hero.png'),linear-gradient(to top right,#0e95ee,#27c9f5);
  background-position: bottom;
  background-size: cover;
  max-width: 100%;
  height: 100vh;
  margin: auto;
  overflow: hidden;
}

.home .home-inner .screen .menu-bar {
  width: 100%;
  height: 36px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(83, 83, 83, 0.4);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.home .home-inner .screen .menu-bar .left {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: auto;
  margin-left: 20px;
}

.home .home-inner .screen .menu-bar .ico {
  width: auto;
  height: 15px;
  user-select: none;
}

.home .home-inner .screen .menu-bar .right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 20px;
}

.home .home-inner .screen .menu-bar .menu-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .home-inner .screen .date::first-letter { text-transform: uppercase; }

.home .home-inner .screen .date {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .home .home-inner .screen .menu-bar {
    height: 56px;
    background: none;
  }

  .home .home-inner .screen .date .date-text {
    display: none;
  }

  .home .home-inner .screen .menu-bar .left,
  .home .home-inner .screen .menu-bar .menu-ico {
    display: none;
  }

  .home .home-inner .screen .menu-bar .right {
    margin-left: 40px;
    margin-right: auto;
  }

  .home .home-inner .screen .date {
    font-size: 18px;
    font-weight: 500;
  }
}

.home .home-inner .screen .about {
  border-radius: .5rem;
  background-color: rgba(233, 233, 233, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 64px 40px 40px;
  box-shadow: 1px 2px 20px 7px rgba(4, 6, 4, 0.04);
  border: 0.5px solid #A7A7A7;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.window-title {
  position: absolute;
  top: 0;
  left: 0;
  margin: 8px;
  line-height: 0;
}

.window-title span {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
  background-color: #D2D2D2;
  border: 0.5px solid #A7A7A7;
}

.window-title .red {
	background: #ED6A5E;
}

.window-title .red .cross {
  width: 12px;
  height: 12px;
  display: block;
  opacity: 0.5;
}

.window-title .red .cross { visibility: hidden; }

.window-title .red:hover .cross { visibility: visible; }

.hidden { display: none!important; }

.home .home-inner .screen .about img {
  border-radius: .3rem;
}

.home .home-inner .screen .about h6 {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 1.5rem;
  font-weight: 700;
  color: #3B3A3A;
}

.home .home-inner .screen .about span, .home .home-inner .screen .about p {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 13.5px;
  line-height: 20px;
  color: #A7A7A7;
}

.home .home-inner .screen .title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Desktop Icons (macOS style) */
.desktop-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.desktop-icon {
  pointer-events: all;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: default;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .2s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.desktop-icon:active {
  background: rgba(255, 255, 255, 0.25);
}

.desktop-icon .icon-img img {
  width: 48px;
  /* height: 64px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-icon .icon-img .fa {
  font-size: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.desktop-icon .icon-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
  word-break: break-word;
}

/* Positioning: LinkedIn top-right of h1, CV bottom-left */
.linkedin-icon {
  top: 25%;
  right: 35%;
}

.cv-icon {
  bottom: 20%;
  left: 35%;
}

/* Mobile: iOS App Style */
@media (max-width: 768px) {
  .desktop-icons {
    position: static;
    display: flex;
    justify-content: center;
    gap: 32px;
    width: auto;
    height: auto;
    margin-top: 24px;
    pointer-events: all;
  }

  .desktop-icon {
    position: static;
    gap: 4px;
    padding: 0;
    border-radius: 0;
  }

  .desktop-icon:hover {
    background: none;
  }

  .desktop-icon .icon-img img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 0 0 0.5px rgba(255,255,255,0.3);
  }

  .desktop-icon .icon-label {
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    font-weight: 500;
  }

  .home .home-inner .screen .title {
    flex-direction: column;
  }
}

.home .home-inner h1 {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-weight: bold;
}

.home .home-inner h1 a
{
  cursor: pointer;
  color: #fff;
  transition: .3s;
}

.home .home-inner h1 a:hover
{ color: #0056b3; }

.hover-reveal {
  will-change: transform;
  pointer-events: none;
  position: fixed;
  top: 75px;
  left: 120px;
  z-index: 99;
  overflow: hidden;
  visibility: hidden;
  border-radius: 10px;
}

.section-title span {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 2rem;
}

.section-title span.blue {
  color: #0d9eff;
}

.section-title span.purple {
  color: #6366f1;
}

.section-title span.orange {
  color: #f97316;
}

.section-title span.red {
  color: #ff4141;
}

.section-title span.green, a.green {
  color: #10b981;
}

.select-cat {
  color: #783af5 !important;
}

.section-title .title {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 3rem;
  font-weight: 700;
  line-height: 40px!important;
}

p { color: #000; }

.owl-carousel .owl-wrapper-outer {
  overflow: visible;
}

.single_item img {
  border-radius: 12px;
  -webkit-border-radius: 12px;
}

.portfolio .row { margin: 0; }

.portfolio .more {
  display: flex;
  gap: 24px;
  margin: auto;
  margin-top: 30px;
  justify-content: center;
}

a.my-btn {
  background-color: #007bff;
  color: #fff;
  border: 2px solid #007bff;
  transition: .3s;
  border-radius: 0.75rem;
}

a.my-btn:hover {
  background-color: transparent;
  color: #007bff;
}

a.my-btn-2 {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  transition: .3s;
  border-radius: 0.75rem;

  display: flex;
  align-items: center;
  gap: 8px;
}

a.my-btn-2:hover {
  background-color: #007bff;
  color: #fff;
}

a.my-header-btn {
  background-color: #007bff;
  color: #fff;
  border: 2px solid #007bff;
  transition: .3s;
}

a.my-header-btn:hover {
  border-color: #fff;
  background-color: transparent;
  color: #fff;
}

a.my-link {
  display: inline-block;
}

a.my-link.instagram {
  color: #E6368A;
}

a.my-link.dribbble {
  color: #B75BF2;
}

a.my-link.behance {
  color: #6E60EF;
}

/* Compétences */
.work-areas .area {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
  background-color: rgb(249, 250, 251);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
}

.work-areas .area .icon {
  float: none;
}

.work-areas .area .icon img {
  width: 40px;
}

.work-areas .area .icon, .work-areas .area .text {
  width: 100%;
}

.work-areas .area .text h6 {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-weight: 700;
}

/* Stack */
.section-wrapper {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "stack expertise"
    "stats expertise";
  gap: 16px;
  margin: auto;
  align-items: start;
}

.stack-col      { grid-area: stack; }
.expertise-col  { grid-area: expertise; }
.stats-col      { grid-area: stats; }

.col-title {
  margin-bottom: 24px;
}

.expertise-col {
  height: stretch;
}

.expertise-col .col-title {
  margin-top: 0px;
  text-align: center;
  color: #FFF;
}

/* Stack card */
.stack-card {
  position: relative;
  width: 100%;
  height: 220px;
  background-image: linear-gradient(to right bottom, rgba(121, 220, 233, 0.1), rgba(53, 121, 245, 0.1));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stack-card .card-title {
  display: flex;
  align-items: center;
  padding: 20px;
  height: 100%;
}

.stack-card .card-title h3 {
  margin: 0;
}

.scattered-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scattered-icon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1),
              filter 0.4s ease;
  will-change: transform;
}

.scattered-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.scattered-icon:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 10;
}

.icon-chatgpt {
  width: 48px; height: 48px;
  top: 78px; right: 28%;
  transform: rotate(-6deg);
}

.icon-perplexity {
  width: 48px; height: 48px;
  top: 80px; right: 8%;
  transform: rotate(4deg);
}

.icon-claude {
  width: 48px; height: 48px;
  top: 28px; right: 18%;
  transform: rotate(-3deg);
}

.icon-figma {
  width: 48px; height: 48px;
  top: 14px; right: 4%;
  transform: rotate(10deg);
}

.icon-figma-make {
  width: 48px; height: 48px;
  bottom: 40px; right: 19%;
  transform: rotate(-12deg);
}

.icon-lovable {
  width: 48px; height: 48px;
  bottom: 18px; right: 32%;
  transform: rotate(6deg);
}

.icon-notion {
  width: 48px; height: 48px;
  bottom: 28px; right: 6%;
  transform: rotate(-5deg);
}

@media (max-width: 768px) {
  .section-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stack"
      "expertise"
      "stats";
    gap: 16px;
    margin: 15px;
  }
}

/* Expertise */
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expertise-item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  padding: 16px;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  cursor: default;
  display: flex;
  gap: 16px;
  align-items: center;
}

.expertise-item:hover {
  transform: translateX(4px);
  border-color: #d4d4d4;
  background-color: #f7f7f7;
}

.expertise-item:hover svg path.stroke { stroke: #000; }

.expertise-item:hover svg path.fill { fill: #000; }

.expertise-item h4 {
  margin-top: 0;
  margin-bottom: 4px;
}

.expertise-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #656565;
  font-size: 14px;
}

.expertise-item li {
  line-height: 1.5;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 700px;
}

.stat-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* aspect-ratio: 6 / 3; */
  gap: 8px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #d4d4d4;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7c6bc420;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.stat-label {
  font-size: 14px;
  color: #9a9aaa;
  font-weight: 500;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #1f242e;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Map grid (decorative background for location card) */
.map-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(to right, #e0dfe670 1px, transparent 1px),
    linear-gradient(to bottom, #e0dfe670 1px, transparent 1px);
  background-size: 50px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ping-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d9eff;
  box-shadow: 0 0 8px #0d9eff50;
  z-index: 2;
}

/* Pulsing ring */
.ping-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #0d9eff40;
  animation: none;
}

.stat-card:hover .map-bg,
.stat-card:hover .fig-bg {
  opacity: 1; /* old 0.5 */
}

/* ========== Figma background zone ========== */
.fig-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fig-cursor {
  display: flex;
  align-items: flex-start;
  gap: 0;
  transform: translate(-16px, 8px);
  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

.fig-cursor-arrow svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.fig-cursor-label {
  background: #0d99ff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 14px;
  margin-left: -2px;
  box-shadow: 0 2px 6px rgba(13, 153, 255, 0.3);
}

.fig-bg .doc {
  transform: rotate(4deg);
  background: linear-gradient(145deg, rgb(254, 240, 138) 0%, rgb(253, 224, 71) 100%);
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    /*
    aspect-ratio: auto;
    min-height: 160px;
    */
  }

  .stat-value {
    font-size: 24px;
  }
}

.my-carousel {
  cursor: grab;
  padding: 2rem;
  overflow: hidden;
  background-image: url('/images/hero.png'),linear-gradient(to top right,#0e95ee,#27c9f5);
  background-position: bottom;
  background-size: cover;
  border-radius: 1rem;
}

@media (max-width: 768px) {
  .my-carousel {
    padding: 2rem 1rem;
  }
}

.about .my-desc {
  font-size: 15px;
  color: #7b7B7B;
  line-height: 24px;
}

.my-section {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Parcours */
.parcours-carousel {
  cursor: grab;
  /* padding: 2rem; */
  overflow: hidden;
  background-color: #f7f7f9;
  border-radius: 1rem;
  width: 80%;
  margin: auto;
  height: 50vh;
  overflow: scroll;
  scroll-snap-type: y mandatory;
}

.parcours-carousel .header {
  width: 100%;
  height: 36px;
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(99, 102, 241, 0.08);
  z-index: 10;
  color: #6366f1;
  font-size: 14px;
}

.parcours-carousel .header .left {
  padding: 6px 14px;
  text-transform: uppercase;
}

.parcours-carousel .header .cv-link {
  font-weight: 600;
  color: #6366f1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.parcours-carousel .header a.cv-link:hover {
  text-decoration: underline!important;
}

.parcours-carousel .header .cv-link i {
  font-size: 12px;
}

.parcours-carousel .item {
  scroll-snap-align: center;
}

.parcours-carousel .item:first-child {
  margin-top: 40px;
}

.parcours-carousel .item:last-child {
  margin-bottom: 40px;
}

.parcours-carousel h4 {
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
  transition: .2s;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.parcours-carousel.work-areas .area {
  box-shadow: none;
  background-color: transparent;
}

.parcours-carousel.work-areas .area .text span {
  font-size: 24px;
  color: #7b7B7B;
}

.parcours-carousel.work-areas .area .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: .2s;
  margin: 8px;
  padding: 4px;
  box-sizing: content-box;
}

.parcours-carousel.work-areas .area a {
  color: #7b7b7b;
  font-size: 28px;
  transition: .2s;

  display: flex;
  align-items: center;
}

.parcours-carousel.work-areas .area a .external-link {
  opacity: 0;
  display: inline-block;
  transform: translateX(-24px); /* décale légèrement vers la gauche */
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 24px;
  height: 24px;
}

.parcours-carousel.work-areas .area a:hover .external-link {
  opacity: 0.5;
  transform: translateX(0); /* revient à la position normale */
  margin-left: 8px;
}

.parcours-carousel.work-areas .area.purple a:hover { color: #6366f1; }

.parcours-carousel.work-areas .area.purple a:hover .logo {
  box-shadow:0px 0px 0px 4px #6366f1;
}

.parcours-carousel.work-areas .area.green a:hover { color: #10b981; }

.parcours-carousel.work-areas .area.green a:hover .logo {
  box-shadow:0px 0px 0px 4px #10b981;
}

.parcours-carousel.work-areas .area .icon i { margin-left: 0; }

.parcours-carousel::-webkit-scrollbar {
  display: none;
}

.parcours-carousel.active {
  cursor: grabbing;
  scroll-snap-type: unset;
}

@media (max-width: 768px) {
  .parcours-carousel.work-areas .area {
    padding: 1rem;
  }

  .parcours-carousel.work-areas .area .text span {
    font-size: 18px;
  }

  .parcours-carousel h4 {
    font-size: 1.5rem;
    margin-top: 8px;
  }

  .parcours-carousel.work-areas .area a {
    font-size: 24px;
  }
}

.animate-up {
  will-change: transform, opacity;
  opacity: 0.1;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 472px) {

  .my-section { flex-direction: column; }

  .parcours-carousel {
    padding: 0;
    height: 40vh;
    /*
    padding: 1rem;
    height: 60vh;
    */
    margin: 15px;
    width: auto;
  }
}

@media (min-width: 1200px){
  .container {
      max-width: 1360px;
    }
}

.grid {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(328px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(328px, 1fr));
  grid-gap: 1rem;
  grid-auto-rows: minmax(328px, 328px); /* default minmax(328px, auto); */
}

@media screen and (max-width: 479px) {
  .grid {
    margin: 15px;
  }

  .grid .tile.md, .grid .tile.xl {
    grid-column-end: span 1;
    grid-row-end: span 1;
  }

  .grid .tile.lg {
    grid-row-end: span 2;
  }
}

.tile {
  position: relative;
  background-color: #f7f7f9;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}


.tile.md {
  grid-column-end: span 2;
  /* grid-row-end: span 2; */
}

.tile.lg {
  /* grid-column-end: span 2; */
  grid-row-end: span 2;
}

.tile.xl {
  grid-column-end: span 2;
  grid-row-end: span 2;
  padding: 32px;
}

.tile.hover .content {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
  background-color: rgb(249, 250, 251);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  transition: .3s;
}

.tile.hover .content h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tile.hover .content p {
  font-size: 13.5px;
  line-height: 20px;
  color: #7b7b7b;
}


.tile.hover .content:hover {
  background-color: #10b981;

  transform: rotate(-3deg);
  & * {
    color: #fff;
  }
}

.tile .dock {
  width: auto;
  height: 60px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
}

.tile .dock .dock-container {
  padding: 3px;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(83, 83, 83, 0.25);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tile .dock .li-bin {
  margin-left: 20px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0px 10px;
}

.tile .dock .li-1 {
  &::after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    content: "";
    bottom: 2px;
  }
}

.tile .dock li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  vertical-align: bottom;
  transition: 0.2s;
  transform-origin: 50% 100%;
  &:hover {
    margin: 0px 13px 0px 13px;
  }
}

.tile .dock .name {
  position: absolute;
  top: -70px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  height: auto;
  padding: 7px 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  visibility: hidden;
  &::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 0;
    height: 0;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 0, 0, 0.5);
  }
}

.tile .dock .ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s;
}

.tile .dock .ico-bin {
  width: 94% !important;
  height: 94% !important;
  object-fit: cover;
  transition: 0.2s;

  &:hover {
    margin-left: 10px;
  }
}

.tile .dock li:hover .name {
    visibility: visible !important;
}

@media screen and (max-width: 479px) {
  .tile .dock {
    height: auto;
  }

  .tile .dock li {
    width: 35px;
    height: 35px;
  }
}

/* Tile stickers */
.tile.stickers-tile {
  perspective: 500px;
  cursor: pointer;
}

.tile .stickers {
  -webkit-mask-image: url('/images/badge.svg');
  -webkit-mask-size: contain;
  height: 200px;
  width: 202px;
  padding: 20px 20px 20px 28px;
  background-image:url('/images/holographic.jpg');
  background-size: 150%;
  will-change: transform, background-position;
  transition: transform 0.1s ease-out, background-position 0.1s ease-out;
}

.tile .stickers img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tile.brightness {
  background: url('/images/bg-iphone-12.jpg') no-repeat center;
  background-size: cover;
}

.tile .brightness-base {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: scale(2);
}

.tile .brightness-base .light-base {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  transform: scale(0.7);
  z-index: 2;
  pointer-events: none;
  bottom: 1rem;
  &.highest {
    animation: pulse 0.2s ease-in-out forwards;
  }
}

.tile .brightness-base .light-source {
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: all 0.2s ease-in-out;
  &.mid {
    transform: scale(1.2);
  }
  &.low-color {
    background: rgba(255, 255, 255, 0.5);
  }
}

.tile .brightness-base .ray {
height: 6rem;
width: 1rem;
content: "";
position: absolute;
z-index: 2;
pointer-events: none;
transition: all 0.2s ease;
&:after {
  position: absolute;
  content: "";
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  width: 0.2rem;
  height: 0.2rem;
  bottom: 4rem;
  border-radius: 50%;
  left: 50%;
  transform: translatex(-50%);
  transition: all 0.2s ease;
}
  &.low {
    &:after {
      height: 0.2rem;
    }
  }
  &.mid {
    &:after {
      height: 0.4rem;
      border-radius: 60px;
    }
  }
  &.high {
    &:after {
      height: 0.6rem;
      border-radius: 60px;
    }
  }
}

 .brightness-base .ray-0 { transform: rotate(0deg); }
 .brightness-base .ray-1 { transform: rotate(45deg); }
 .brightness-base .ray-2 { transform: rotate(90deg); }
 .brightness-base .ray-3 { transform: rotate(135deg); }
 .brightness-base .ray-4 { transform: rotate(180deg); }
 .brightness-base .ray-5 { transform: rotate(225deg); }
 .brightness-base .ray-6 { transform: rotate(270deg); }
 .brightness-base .ray-7 { transform: rotate(315deg); }


.tile .brightness-base .range-base {
  position: absolute;
  transform: rotate(-90deg);
  z-index: 1;
  display: flex;
}

.tile .brightness-base .range-base input {
  -webkit-appearance: none;
  appearance: none;
  height: 5rem;
  width: 12rem;
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(16px);
  background-clip: padding-box;
}

.tile .brightness-base .range-base input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2rem;
  height: 5rem;
  cursor: pointer;
  transition: all 0.2s;
  background-clip: padding-box;
  box-shadow: none !important;
}

.tile.gallery {
  overflow: hidden;
  padding: 0;
}

.tile.gallery .small-app-icon {
  z-index: 2;
  position: absolute;
  top: 24px;
  bottom: auto;
  left: auto;
  right: 24px;
}

.tile.gallery .small-app-icon img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  transition: box-shadow .25s;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.tile.gallery .gallery-menu {
  z-index: 2;
  width: 280px;
  height: 48px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background-color: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.19);
  border-radius: 56px;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  display: flex;
  position: absolute;
  top: auto;
  bottom: 24px;
  left: 0%;
  right: 0%;
  transform: translate3d(0px, 170%, 0px);
  transition: .3s;
}

.tile.gallery:hover .gallery-menu {
  transition: transform .3;
  transform: translate3d(0px, 0%, 0px);
}

.tile.gallery .gallery-menu .gallery-floating-indicator {
    z-index: -1;
    width: 62px;
    height: 38px;
    background-color: #fff;
    border-radius: 230px;
    position: absolute;
    left: 4px;
    right: 4px;
}

.tile.gallery .gallery-slider {
  display: flex;
  position: relative;
}

.tile.gallery .gallery-slider img {
  width: 100%;
  transition: opacity .6s;
  opacity: 0;
  object-fit: contain;
}

.tile.gallery .gallery-slider img:first-child {
  opacity: 1;
}

.tile.gallery .gallery-title {
  z-index: 2;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translate3d(0px, 170%, 0px);
  transition: .3s;
  background-image: linear-gradient(#0000, #000000b3 75%);
  width: 100%;
  padding: 2rem;
}

.tile.gallery:hover .gallery-title {
  transform: translate3d(0px, 0%, 0px);
}

@media (max-width: 768px) {
  .tile.gallery .gallery-title {
    transform: translate3d(0px, 0%, 0px);
  }
}

.tile.gallery .gallery-title p {
  color: #FFF;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
}

/* Book tile */
.tile.books { padding: 0; }


.books-scroll {
  padding: 16px;
  display: flex;
  gap: 16px;
  /*
  overflow-x: auto;
  overflow-y: hidden;
  */
  flex: 1;
  align-items: flex-start;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: space-around;
}

@media (max-width: 768px) {
  .books-scroll {
    overflow: auto;
  }
}

.books-scroll::-webkit-scrollbar { display: none; }

/* ========== Book card ========== */
.book-card {
  flex-shrink: 0;
  width: 104px;
  display: flex;
  flex-direction: column;
  cursor: default;
}

/* --- Cover --- */
.book-cover {
  position: relative;
  width: 104px;
  height: 156px; /* ratio 2:3 */
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 2px 0 4px rgba(0,0,0,0.04);
  background: #e4e4e7;
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spine */
.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
}

/* Shine */
.book-cover::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 70%, rgba(255,255,255,0.08) 100%);
  z-index: 2;
  pointer-events: none;
}

.book-card:hover .book-cover {
  transform: translateX(-3px) translateY(-13px) scale(1.1) rotate(-1deg);
  box-shadow: 0 10px 24px rgba(0,0,0,0.13), 2px 0 4px rgba(0,0,0,0.04);
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.book-info {
  margin-top: 8px;
  padding: 0 1px;
}

.book-title {
  font-size: 12px;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.book-author {
  font-size: 11px;
  color: #a0a0a0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  text-align: left;
}

/* --- Progress bar --- */
.book-progress {
  margin-top: 8px;
  height: 3px;
  background: rgba(0,0,0,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.book-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: #f5d00b;
  transition: width 0.4s ease;
}

/* Tile dots */
.tile.dots {
  flex-direction: column;
  background: #fff;
  padding: 28px 28px 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  user-select: none;
  position: relative;
}

.tile.dots .tile-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 2px;
}

.tile.dots .tile-subtitle {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 16px;
}

/* ── SVG canvas ── */
.tile.dots .drawing-area {
  position: relative;
  width: 100%;
  height: 260px;
}

.tile.dots svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── Lines ── */
.tile.dots .drawn-line {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#sketch);
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 0.35s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ── Dots ── */
.tile.dots .dot-group {
  cursor: pointer;
}

.tile.dots .dot-circle {
  fill: #1a1a1a;
  transition: transform 0.15s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.tile.dots .dot-group.active .dot-circle {
  fill: #1a1a1a;
}

.tile.dots .dot-group.done .dot-circle {
  fill: #1a1a1a;
}

.tile.dots .dot-group.next .dot-circle {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { r: 5; opacity: 1; }
  50%       { r: 7; opacity: 0.6; }
}

.tile.dots .dot-label {
  font-size: 11px;
  font-weight: 600;
  fill: #555;
  pointer-events: none;
}

/* ── Pencil ── */
.tile.dots #pencil {
  font-size: 18px;
  position: absolute;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(.4,0,.2,1), top 0.3s cubic-bezier(.4,0,.2,1);
  transform: translate(-6px, -20px);
  z-index: 10;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}

/* ── Success state ── */
.tile.dots .success-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tile.dots .success-msg.show {
  opacity: 1;
  pointer-events: auto;
}

.tile.dots .success-icon { font-size: 36px; }

.tile.dots .success-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.tile.dots .reset-btn {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 99px;
  padding: 7px 18px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tile.dots .reset-btn:hover { opacity: 0.75; }

/* ── Instruction ── */
.tile.dots .hint {
  font-size: 11px;
  color: #bbb;
  text-align: center;
  margin-top: 2px;
}

/* Tile add cash */
.tile.add-cash {
  background: #0a0a0a;
  flex-direction: column;
  gap: 20px;
}

.tile.add-cash .amount-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* mechanical counter */
.tile.add-cash .money {
  display: flex;
  align-items: baseline;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: hidden;
}

.tile.add-cash .digit-wrapper {
  display: inline-flex;
  overflow: hidden;
  height: 1.2em;
  align-items: flex-start;
}

.tile.add-cash .digit {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--digit, 0) * -1.2em));
}

.tile.add-cash .digit.rolling {
  animation: rollDigit 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tile.add-cash .digit span {
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile.add-cash .static-char {
  display: inline-flex;
  align-items: baseline;
}

@keyframes rollDigit {
  0%   { transform: translateY(calc(var(--from-digit, 0) * -1.2em)); }
  100% { transform: translateY(calc(var(--digit, 0)      * -1.2em)); }
}

/* ── Floating "+100 €" badge ────────────────────── */
.tile.add-cash .floating-amount {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: #4ade80;
  pointer-events: none;
  opacity: 0;
}

.tile.add-cash .floating-amount.enter {
  animation: floatIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tile.add-cash .floating-amount.exit {
  animation: floatOut 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-0.4rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes floatOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-0.6rem); }
}

/* ── Add cash button ────────────────────────────── */
.tile.add-cash .add-cash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tile.add-cash .add-cash-btn:hover  { background: rgba(255, 255, 255, 0.16); }
.tile.add-cash .add-cash-btn:active { transform: scale(0.96); }
.tile.add-cash .add-cash-btn { touch-action: manipulation; }

.tile.add-cash .add-cash-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tile Chrono */
/* Bande de sélection */
.tile.chrono {
  background-color: f2f2f7;
  padding: 0; overflow: hidden;
}

.tile.chrono .selection-band {
  position: absolute;
  top: 50%; left: 12px; right: 12px;
  height: 52px;
  transform: translateY(-50%);
  background: rgba(116, 116, 128, 0.1);
  border-radius: 11px;
  pointer-events: none;
  z-index: 2;
}

/* Dégradés masque */
.tile.chrono .mask-top, .tile.chrono .mask-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 42%;
  pointer-events: none;
  z-index: 3;
}
.tile.chrono .mask-top {
  top: 0;
  background: linear-gradient(to bottom,
    rgba(242,242,247,1) 0%,
    rgba(242,242,247,0.9) 30%,
    rgba(242,242,247,0) 100%
  );
}
.tile.chrono .mask-bottom {
  bottom: 0;
  background: linear-gradient(to top,
    rgba(242,242,247,1) 0%,
    rgba(242,242,247,0.9) 30%,
    rgba(242,242,247,0) 100%
  );
}

/* Rouleaux */
.tile.chrono .drums {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
  position: absolute; inset: 0
}

.tile.chrono .drum {
  flex: 1;
  align-self: stretch;
  overflow: hidden;
  position: relative;
  cursor: ns-resize;
  -webkit-tap-highlight-color: transparent;
}

.tile.chrono .drum-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  will-change: transform;
  /* pas de transition ici — gérée en JS */
}

.tile.chrono .drum-item {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 300;
  color: #1c1c1e;
  letter-spacing: -0.02em;
  user-select: none;
  -webkit-user-select: none;
}

/* Séparateur ":"  */
.tile.chrono .colon {
  font-size: 34px;
  font-weight: 300;
  color: #1c1c1e;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 3px;
  flex-shrink: 0;
  z-index: 4;
  position: relative;
}

/* Tile nice day txt */
.tile.nice-day {
  background: #f7f7f9;
  padding: 32px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.tile.nice-day .nice-day-text { text-align: left; }

.tile.nice-day .nice-day-text p {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.tile.nice-day .word-have {
  color: #5B9CF6;
  transition: color 0.3s ease;
}

.tile.nice-day .word-nice {
  display: inline-block;
  font-size: inherit;
  transition: font-size 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile.nice-day .word-day {
  border-radius: 10px;
  padding: 0px 8px;
  margin: 0 -8px;
  transition: background 0.25s ease;
}

.tile.nice-day .nice-day-controls {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

/* Color picker pill */
.tile.nice-day .nd-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}

.tile.nice-day .nd-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  flex-shrink: 0;
}

.tile.nice-day .nd-color-dot:hover { transform: scale(1.12); }

.tile.nice-day .nd-color-dot.active {
  box-shadow: 0 0 0 2.5px #f7f7f9, 0 0 0 4.5px var(--dot-color);
}

/* Aa size toggle pill */
.tile.nice-day .nd-size-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}

.tile.nice-day .nd-aa {
  font-size: 0.88rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.02em;
}

.tile.nice-day .nd-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.tile.nice-day .nd-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tile.nice-day .nd-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d1d6;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
}

.tile.nice-day .nd-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile.nice-day .nd-toggle input:checked + .nd-toggle-track { background: #8e8e93; }
.tile.nice-day .nd-toggle input:checked + .nd-toggle-track::after { transform: translateX(18px); }

/* Highlight pill */
.tile.nice-day .nd-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.tile.nice-day .nd-highlight-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4DEEEA;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.tile.nice-day .nd-highlight-pill.active .nd-highlight-swatch {
  box-shadow: 0 0 0 2.5px #f7f7f9, 0 0 0 4.5px #4DEEEA;
}

.tile.nice-day .nd-highlight-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.01em;
}

/* Tile selection */
.tile.selection {
  /* background-color: #fff; */
}

.tile.selection .selection-rect {
  position: absolute;
  border: 1.5px solid rgba(0, 100, 255, 0.55);
  background: rgba(0, 100, 255, 0.10);
  border-radius: 4px;
  pointer-events: none;
  display: none;
  will-change: transform;
}

/* Tile rainbow btn */
.tile.rainbow-btn .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 52px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  background: #ececf2;
  box-shadow:
    7px 7px 16px rgba(0,0,0,.11),
    -5px -5px 12px rgba(255,255,255,.9),
    inset 1px 1px 2px rgba(255,255,255,.95),
    inset -1px -1px 2px rgba(0,0,0,.04);
  transition: all .4s ease;
}

.tile.rainbow-btn .btn span {
  z-index: 2;
  font-size: 18px;
  font-weight: 500;
  color: rgba(80,70,110,.65);
}

.tile.rainbow-btn .btn:hover {
  box-shadow:
    4px 4px 10px rgba(0,0,0,.08),
    -3px -3px 8px rgba(255,255,255,.75);
}

.tile.rainbow-btn .btn-aurora::before {
  content: '';
  position: absolute;
  width: 50%; height: 150%;
  top: 50%; right: -20%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(94,174,255,1),
    rgba(124,111,255,1),
    rgba(214,90,255,1),
    rgba(255,110,180,1),
    rgba(255,122,90,1),
    rgba(255,191,63,1)
  );
  filter: blur(22px);
  opacity: .88;
  transition: width .65s cubic-bezier(.22,1,.36,1),
              height .65s cubic-bezier(.22,1,.36,1),
              right  .65s cubic-bezier(.22,1,.36,1),
              filter .5s ease;
}
.tile.rainbow-btn .btn-aurora:hover::before {
  width: 165%; height: 270%; right: -32%;
  filter: blur(15px); opacity: 1;
}
.tile.rainbow-btn .btn-aurora:hover span { color: rgba(255,255,255,.9); }


/* Popup browser project */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 90;

  background-color: rgba(235, 235, 235, 0.7);
  backdrop-filter: blur(40px);

  /* display: flex; */
  align-items: center;
  justify-content: center;
}

.popup {
  display: block;
  /* width: auto; */
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 24px;
  z-index: 91;
}

body.noscroll {
  overflow: hidden;
}

.browser {
  /*
  width: 1024px;
  height: 700px;
  */
  aspect-ratio: 16 / 9;
  width: 70vw;

  background: rgba(235,235,235,0.7);
  border-radius: 10px;
  margin: auto;
  display: flex;
  flex-direction: column;

  backdrop-filter: blur(40px);
  box-shadow: inset 0px 0px 0.5px rgba(0, 0, 0, 0.60), 0px 20px 20px rgba(0, 0, 0, 0.10);
}

@media (max-width: 768px) {
  .browser {
    aspect-ratio: 16 / 12;
    width: 90vw;
  }
}

.browser .tabbar {
  display: flex;
  align-items: flex-end;
}
.browser .tabbar .dots {
  display: flex;
  gap: 8px;
  padding: 16px 14px 14px 18px;
}
.browser .tabbar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.browser .tabbar .dot.red {
  background-color: #EC6A5E;
  border: 0.5px solid #B0534A;
}
.browser .tabbar .dot.yellow {
  background: rgba(244,190,79,1);
  border: 0.5px solid #AE8C4E;
}
.browser .tabbar .dot.green {
  background: rgba(98,197,84,1);
  border: 0.5px solid #69945F;
}

.browser .tabbar .active-tab {
  display: flex;
  gap: 0px;
  align-items: flex-end;
  z-index: 9;
}

.browser .tabbar .active-tab .before, .browser .tabbar .active-tab .after {
  width: 12px;
  height: 12px;
}

.browser .tabbar .tab {
  background: rgba(252,252,252,1);
  padding: 8px 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  /* box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.10); */

  display: flex;
  flex-direction: row;
  gap: 4px;
  width: 160px;
}

.browser .tabbar .tab .favicon img {
  display: block;
  width: 16px; height: 16px;
}

.browser .tabbar .tab .title {
  font-size: 12px;
  width: 100%;
  mask-image: linear-gradient(90deg, #fff 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #fff 80%, transparent);
  white-space: nowrap;
  overflow: hidden;
}

.browser .frame {
  width: 100%;
  height: 100%;
  padding: 0 6px 6px 6px;
}
.browser .frame-2 {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.browser .url-bar {
  display: flex;
  background-color: #FCFCFC;
  padding: 6px;
  /* border: 1px solid rgba(50, 50, 50, 0.1); */
  box-shadow:0px 0px 1px 1px rgba(50, 50, 50, 0.1);
  gap: 4px;
  position: relative;
}
.browser .url-bar .controls {
  display: flex;
  gap: 4px;
}
.browser .url-bar .controls img, .browser .url-bar .copy-btn img {
  display: block;
  width: 28px;
  height: 28px;
}

.browser .tabbar .active-tab .before,
.browser .tabbar .active-tab .favicon,
.browser .tabbar .active-tab .after,
.browser .url-bar .controls .back,
.browser .url-bar .controls .forward,
.browser .url-bar .controls .refresh,
.browser .url-bar .copy-btn {
  user-select: none;
}

.browser .url-bar .controls .back,
.browser .url-bar .controls .refresh,
.browser .url-bar .copy-btn {
  border-radius: 4px;
}

.browser .url-bar .controls .back:hover,
.browser .url-bar .controls .refresh:hover,
.browser .url-bar .copy-btn:hover {
  background-color: #F5F5F5;
}

.browser .url-bar .input-url {
  display: flex;
  width: 100%;
}
.browser .url-bar .input-url input {
  border: none;
  background-color: transparent;
  font-size: 14px;
  width: 100%;
  border-radius: 4px;
  padding: 4px;
}
.browser .url-bar .input-url input:hover {
  background-color: #F5F5F5;
}
.browser .url-bar .input-url input:focus-visible {
  outline: 0;
  background-color: #F5F5F5;
}

.browser .screen {
  width: 100%;
  height: 100%;
}

.browser .screen img {
  width: 100%;
}

.popup .content {
  margin: auto;
  margin-top: 32px;
  text-align: left;

  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;

  width: 70vw;
}

@media (max-width: 768px) {
  .popup .content {
    width: 90vw;
  }
}

.popup .content .head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.popup .content .head .col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.popup .content .head .col p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.popup .content .head .col .title {
  font-weight: 700;
}

.popup .content p {
  color: rgba(0,0,0,0.5);
}

.popup .content h3, .popup .content h4, .popup .content .title {
  color: rgba(0,0,0,0.7);
}

.popup .content p span {
  font-weight: bold;
  font-style: italic;
}

.popup .bottom {
  margin: auto;
  margin-top: 32px;
  width: fit-content;
}

.popup .bottom .close-btn {
  width: 40px; height: 40px;
  border-radius: 360px;
  background-color: #f4f4f4;
  transition: .2s;
  cursor: pointer;
}

.popup .bottom .close-btn img {
  width: 40px; height: 40px;
  opacity: 0.5;
  transition: .2s;
}

.popup .bottom .close-btn:hover {
  background-color: #e4e4e4;
}
.popup .bottom .close-btn:hover img {
  opacity: 0.7;
}

/* Contact Section */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: auto;
  margin-top: 30px;
  background-color: #f0f0f0;
  border-radius: 26px;
  width: fit-content;
  padding: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: #525252;
  border: 1px solid #e8e8e8;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'GlacialIndifferenceRegular', sans-serif;
}

.contact-pill:hover {
  will-change: transform;
  transform: translateX(-3px) translateY(-13px) scale(1.1) rotate(-1deg);
}

.contact-pill i {
  font-size: 16px;
}

.contact-pill .confirm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

.contact-pill.copied {
  border: 1px solid #bbf7d0;
  transform: translateX(-3px) translateY(-13px) scale(1.1) rotate(-1deg);
}

.contact-pill.copied .confirm { opacity: 1; }
