:root {
  --color-white: #fff;
  --color-white-100: rgba(255, 255, 255, 0.1);
  --color-white-200: rgba(255, 255, 255, 0.2);
  --color-white-400: rgba(255, 255, 255, 0.4);
  --color-white-800: rgba(255, 255, 255, 0.8);
  --color-white-900: rgba(255, 255, 255, 0.9);
  --color-black: #1e1e1e;
  --color-black-100: rgba(0, 0, 0, 0.1);
  --color-black-50: rgba(211, 197, 197, 0.39);
  --color-black-200: rgba(0, 0, 0, 0.2);
  --color-black-500: rgba(0, 0, 0, 0.5);
  --color-black-600: rgba(0, 0, 0, 0.6);
  --color-blue-800: #007ff7;
  --app-color-white: rgb(252, 255, 251);
  --color-red: rgba(255, 2, 2, 0.788);
  --color-green: #11dd4e;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  list-style: none;
}

@media screen and (max-width: 900px) {
  .hidden {
    display: none;
  }
}

button,
input {
  background-color: transparent;
  border: 0;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  height: 100vh;
  user-select: none;
  font-family: "Lexend", sans-serif;
  background: url("../background/fondmac.jpeg") center/cover no-repeat;
  overflow: hidden;
}

#loading {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: url(../background/lock.gif) center/cover no-repeat;
  z-index: 9999;
}

.navbar {
  width: 100%;
  padding: 0.1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  color: var(--color-white-900);
  box-shadow: 0 2px 10px var(--color-black-100);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);  display: flex;
  align-items: center;
  justify-content: space-between;
  color:#fff;
  z-index: 20;
  animation: top-to-bottom 0.3s;
}

.navbar > ul {
  display: flex;
  align-items: center;
}

.navbar li {
  position: relative;
  font-size: 14px;
  margin: 0 4px;
  cursor: url(../cursor/Link.cur), pointer;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.288);
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.navbar .leftLi.logo img {
  transform: translateY(1px);
}

.navbar svg {
  fill: var(--color-white);
}

.navbar .leftLi {
  padding: 4px 8px;
}

.navbar .leftLi a {
  text-decoration: none;
  color: var(--color-white);
}

.navbar .leftLi:hover {
  color: var(--color-white);
  border-radius: 5px;
  background-color: var(--color-white-200);
}

li.app_name {
  display: none;
  font-weight: 900 !important;
}

.navbar__right li {
  margin: 0 10px;
}

.navbar__right li svg {
  transform: scale(0.8);
}

.wifi svg {
  transform: translateY(1px) scale(0.8) !important;
}

.navbar__right .clock #clock {
  margin-left: 15px;
  margin-right: 15px;
}

.navbar__right li .control-center {
  width: 32px;
  height: 19px;
  transform: scale(0.8) translateY(1px);
}

.navbar__right .battery {
  margin: 0;
  display: flex;
  cursor: pointer;
  user-select: none;
  position: relative;
  border-radius: 4px;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: transparent;
  transition: all ease-out 0.2s;
}
.navbar__right .battery.selected {
  background: var(--color-white-200);
}

.navbar__right .battery__container {
  width: 22px;
  height: 10px;
  padding: 1px;
  position: relative;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar__right .battery__container::after {
  content: "";
  background: rgba(255, 255, 255, 0.4);
  width: 3px;
  height: 7px;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.navbar__right .battery__progress {
  height: 100%;
  display: flex;
  background: white;
  border-radius: 2px;
}

.navbar__right .battery__progress .is-charging {
  display: none;
  width: 100%;
  height: 100%;
}

.is-charging-visible {
  display: block !important;
}

.navbar__right .battery__low {
  background-color: var(--color-red);
}

.navbar__right .battery__high {
  background-color: var(--color-green);
}

.navbar__right .battery__text {
  font-size: 12px;
  margin-right: 4px;
}

.navbar__right .battery__popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  opacity: 0;
  width: 220px;
  transition: all ease-out 0.2s;
  padding: 4px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  border-radius: 8px;
}

.navbar__right .battery__popup.opened {
  opacity: 1;
}

.navbar__right .battery__popup header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.navbar__right .battery__popup header h3 {
  font-size: 16px;
  font-weight: 600;
}

.navbar__right .battery__popup header span {
  opacity: 0.75;
  font-size: 12px;
}

.navbar__right .battery__popup p {
  font-size: 11px;
  margin-top: 4px;
  padding: 0 10px;
}

.navbar__right .battery__popup hr {
  margin: 6px 8px;
  border: 0;
  border-radius: 99px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar__right .battery__popup button {
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  color: white;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.navbar__right .battery__popup button:hover {
  background-color: var(--color-blue-800);
}

.navbar__right .battery__popup button:active {
  background-color: #0063f7;
}

li > ul {
  display: none;
  position: absolute;
  align-items: center;
  flex-direction: column;
  left: 0;
  top: 100%;
  margin-top: 1px;
  font-weight: 600;
  padding: 4px;
  min-width: 200px;
  background: var(--color-white-400);
  backdrop-filter: blur(11px);
  border-radius: 5px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.363);
}

li:hover > ul {
  display: flex;
}

li > ul > li {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 5px;
  margin-bottom: 5px !important;
}

li > ul > li:last-child {
  border-bottom: 0;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

li > ul > li > button {
  color: var(--color-white);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  text-align: left;
  font-family: "Lexend", sans-serif;
  font-weight: 100;
  padding: 4px 8px;
  border-radius: 5px;
  transition: 80ms;
  font-size: 14px;
  cursor: url(../cursor/Link.cur), pointer;
}

li > ul > li > button:hover {
  color: var(--color-white);
  background: var(--color-blue-800);
}

li > ul > li > button:active {
  background-color: #0063f7;
}

li > .menu__container {
  display: none;
  position: absolute;
  width: 380px;
  border-radius: 20px;
  top: 100%;
  right: 50%;
  height: 24rem;
  transform: translateX(50%);
  background-color: rgba(224, 222, 222, 0.349);
  backdrop-filter: blur(11px);
  border: 1px solid rgba(70, 50, 77, 0.308);
  box-shadow: 0 7px 15px rgba(26, 26, 26, 0.24);
  overflow: hidden;
  padding: 15px;
}

li:hover .menu__container {
  display: flex;
}

li > .menu__container > .grid__controling {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-template-areas:
    "Toggles Toggles DoNotDisturb DoNotDisturb"
    "Toggles Toggles KeyboardBrightness Battery"
    "Display Display Display Display"
    "Audio Audio Audio Audio"
    "Music Music Music Music";
  grid-gap: 1em 1em;
}
li > .menu__container > .grid__controling .control_center--grid {
  display: grid;
  box-shadow: 0 5px 15px rgba(44, 44, 44, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.178);
  overflow: hidden;
  border-radius: 12px;
}
.menu__container > .grid__controling .col-5 {
  grid-area: Toggles;
}
.menu__container > .grid__controling .col-7 {
  grid-area: DoNotDisturb;
}

.menu__container > .grid__controling .col-3--brightness {
  grid-area: KeyboardBrightness;
}
.menu__container > .grid__controling .col-3--battery {
  grid-area: Battery;
}

.menu__container > .grid__controling .col-12--light {
  grid-area: Display;
}
.menu__container > .grid__controling .col-12--volume {
  grid-area: Audio;
}
.menu__container > .grid__controling .col-12--music {
  grid-area: Music;
}

.grid__controling .control_center--grid button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 20px;
  transition: all 120ms ease-in-out;
  font-family: "Lexend", sans-serif;
  cursor: url(../cursor/Link.cur), pointer;
}
.sound,
.brightness {
  position: relative;
}

.menu__container > .grid__controling input[type="range"] {
  -webkit-appearance: none;
  outline: 0;
  border: 0;
}
.sound img {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translatey(-50%);
}
.brightness img {
  /* z-index: -1; */
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translatey(-50%);
}
.menu__container > .grid__controling input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 2rem;
  width: 2rem;
  background-color: var(--color-white);
  box-shadow: -2px 0px 3px -2px #5f6063, -340px 0 0 320px #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.226);
  cursor: pointer;
}

.grid__controling input[type="range"]::-webkit-slider-runnable-track {
  margin: 10px;
  background: rgba(255, 255, 255, 0.404);
  border-radius: 50px;
  overflow: hidden;
}

.grid__controling .control_center--grid button p {
  display: block;
  font-size: 14px;
  font-family: "Lexend", sans-serif;
}
.nobtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nobtn svg {
  background-color: transparent !important;
}

.grid__controling .control_center--grid button svg {
  background-color: var(--color-blue-800);
  padding: 5px;
  border-radius: 50%;
  margin: 0 5px;
}
.col-7 button svg {
  background-color: #b63333 !important;
}
.col-7 button:focus {
  background: #b63333 !important;
  color: var(--color-white);
}

.grid__controling .control_center--grid button:focus {
  background: var(--color-blue-800);
  color: var(--color-white);
}

.grid__controling .control_center--grid .musicPlayer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.musicPlayer--image {
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
}
.musicPlayer--image img {
  width: 50px;
  margin: 0 0 0 10px;
}
.musicPlayer--content {
  width: 30%;
  height: 100%;
  display: flex;
  align-items: center;
}
.musicPlayer--content span {
  font-size: 40px;
}

@media screen and (max-width: 600px) {
  .navbar__right .clock #clock {
    margin-left: 0;
  }
}

.dock {
  display: flex;
  align-items: center;
  position: fixed;
  padding: 0.2rem 0.5rem 0 0.5rem;
  bottom: 3%;
  left: 50%;
  height: 65px;
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-200);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.555);
  z-index: 10;
}



.dock .point {
  width: 6px;
  height: 6px;
  margin: 0;
  background: #f08080;
  border-radius: 50%;
  display: none;
  animation: top-to-bottom 0.3s;
  transition: 0.3s;
}

.dock .column {
  width: 1px;
  height: 45px;
  margin: 0 4px;
  background: var(--color-white-400);
}

.dock .icon {
  position: relative;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  outline: none;
  transition: all 0.3s;
  transform: translate3d(0px, 0%, 0px);
  -webkit-tap-highlight-color: transparent;
}

.dock .icon::after {
  font-size: 15px;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.39);
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  width: 95px;
  height: 25px;
  padding: 4px 3px 10px;
  border-radius: 8px;
  font-family: "lexend", sans-serif;
  font-weight: 700;
  clip-path: polygon(
    100% 0%,
    100% 0%,
    0% 0%,
    0% 0%,
    0% 0%,
    0% 0%,
    0% 0%,
    0% 0%,
    0% 80%,
    43% 80%,
    50% 101%,
    57% 80%,
    100% 80%,
    100% 0%
  );
}

.dock .icon:nth-child(1):hover::after {
  content: "Finder";
}

.dock .icon:nth-child(2):hover::after {
  content: "Launchpad";
}


.dock .icon:nth-child(3):hover::after {
  content: "Pages";
}


.dock .icon:nth-child(4):hover::after {
  content: "VScode";
}

.dock .icon:nth-child(5):hover::after {
  content: "Mail";
}

.dock .icon:nth-child(6):hover::after {
  content: "Safari";
}

.dock .icon:nth-child(7):hover::after {
  content: "maps";
}

.dock .icon:nth-child(8):hover::after {
  content: "Calculator";
}

.dock .icon:nth-child(9):hover::after {
  content: "notes";
}

.dock .icon:nth-child(10):hover::after {
  content: "terminal";
}
.dock .icon:nth-child(11):hover::after {
  content: "Preferences";
}

.dock .icon img {
  width: 3.6rem;
  transition: 0.2s;
  transform: translateY(-2.5px);
}

.dock .icon:hover img {
  margin: 0 0 40px 0;
  width: 7.1rem;
}
.dock .icon:hover + .icon img {
  width: 5.6rem;
  margin: 0 0 25px 0;
}

.dock .icon img:active {
  filter: brightness(0.6) drop-shadow(0 0 10px #2c2c2c);
}

/* Add this media query for mobile devices */
@media screen and (max-width: 768px) {
  .dock .icon img {
    width: 3rem; /* Smaller size for mobile */
  }
  
  .dock .icon:hover img {
    width: 4rem; /* Smaller hover size for mobile */
    margin: 0 0 20px 0; /* Reduced margin for mobile */
  }
  
  .dock .icon:hover + .icon img {
    width: 3rem; /* Smaller adjacent hover size for mobile */
    margin: 0 0 12px 0; /* Reduced margin for mobile */
  }
}


.container__Window {
  width: 100%;
  height: 90%;
  justify-content: space-around;
  align-items: center;
  display: none;
}

.window {
  display: none;
  position:absolute;
  min-width: 60%;
  max-width: 80%;
  height: 460px;
  /* FORCE TOUTES LES FENÊTRES AU CENTRE ET EN OVERLAP */
  transform-origin: center center; /* Garder l'origine de la transformation au centre */
  will-change: transform, opacity; /* Optimisation des performances */
  overflow: hidden;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0 20px 30px var(--color-black-500);
  border: 1px solid #ffffff34;
  animation: zoom-out 0.3s;
  z-index: 10;
  touch-action: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .window {
  
    min-width: 83%;
   max-width: 83%;
   height: 60%;

  }
}

.window__taskbar {
  height: 12%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  background-color: var(--app-color-white);
}

.Vscode .window__taskbar {
  height: 12%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  background-color:#343333;
}
.window__taskbar--actions {
  display: flex;
  align-items: center;
}

.window__taskbar:hover button::after {
  color: #000;
}

.window__taskbar--actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0.8rem;
  height: 0.8rem;
  padding: 8px;
  border-radius: 50%;
  transition: 0.4s;
}

.window__taskbar--actions button:not(:last-child) {
  margin-right: 8px;
}

.window__taskbar--actions button:nth-child(1) {
  background-color: #ff5f56;
  box-shadow: 0 0 0 0.5px #e0443e;
}

.window__taskbar--actions button::after {
  display: block;
  font-size: 14px;
  color: transparent;
  font-weight: 900;
}

.window__taskbar--actions button:nth-child(1)::after {
  content: "×";
}

.window__taskbar--actions button:nth-child(1):hover {
  background-color: #fc3c32;
}

.window__taskbar--actions button:nth-child(2) {
  background-color: #ffbd2e;
  box-shadow: 0 0 0 0.5px #dea123;
}

.window__taskbar--actions button:nth-child(2)::after {
  content: "−";
}

.window__taskbar--actions button:nth-child(2):hover {
  background-color: #ffa600;
}

.window__taskbar--actions button:nth-child(3) {
  background-color: #27c93f;
  box-shadow: 0 0 0 0.5px #1aab29;
}

.window__taskbar--actions button:nth-child(3)::after {
  content: "⤡";
}

.window__taskbar--actions button:nth-child(3):hover {
  background-color: #12aa29;
}

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

.window__taskbar--content h2 {
  color: var(--color-black);
  font-weight: 600;
  font-size: 18px;
}

.terminal .window__taskbar,
.Vscode .window__taskbar,
.maps .window__taskbar ,
.finder .window__taskbar,
.editor .window__taskbar {
  height: 9%;
}




.terminal_content {
  width: 100%;
  height: 91%;
  overflow-y: scroll;
  padding-left: 1rem;
  background-color: rgba(5, 5, 99, 0.63);
  backdrop-filter: blur(12px);
  color: rgb(235, 235, 235);
  font-size: 20px;
  font-family: "Roboto Mono", monospace;
}

.color_green {
  color: green;
}

.color_blue {
  color: #1f48ff;
}

.window__taskbar--right {
  width: 60%;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media screen and (max-width: 900px) {
  .window__taskbar--right {
    width: 70%;
  }
}
.Customize__icon span {
  border: 1px solid rgba(204, 200, 200, 0.412);
  border-radius: 9px;
  transition: 0.2s;
  padding: 5px;
  cursor: url(../cursor/Link.cur), pointer;
}

.window__taskbar--right .containerSearch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 45%;
  height: 75%;
  background-color: var(--app-color-white);
  border-radius: 5px;
  border: 1px solid rgba(123, 123, 123, 0.412);
  padding-left: 8px;
}
.window__taskbar--right .containerSearch svg {
  fill: rgba(123, 123, 123, 0.412);
}
.window__taskbar--right input[type="search"] {
  width: 85%;
  height: 100%;
  background-color: transparent;
  color: var(--color-black);
  font-size: 18px;
  padding-right: 10px;
  font-family: "Lexend", sans-serif;
}

.window .content {
  width: 100%;
  height: 92%;
  display: flex;
}
/* Style de base amélioré */
.window.note {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.window__taskbar {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.window__taskbar--actions {
  display: flex;
  gap: 8px;
}

.window__taskbar--actions button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.close-note {
  background-color: #ff6b6b;
}

.backfull-note {
  background-color: #ffd43b;
}

.full-note {
  background-color: #69db7c;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  display: flex;
  height: 500px;
}

.content__sidebar {
  width: 30%;
  height: 100%;
  background: #f1f3f5;
  transition: all 0.3s ease;
}

.Parent__content--typing {
  width: 70%;
  height: 100%;
  border-top: 1px solid #e0e2e1;
  background-color: #fff;
  transition: all 0.3s ease;
}

.content__typing {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  display: block; /* Modifié pour être visible par défaut */
  color: #343a40;
  font-weight: 600;
  font-size: 16px;
  font-family: "Courier New", monospace; /* Police monospace pour meilleure lisibilité des tirets et alignements */
  padding: 20px;
  line-height: 1.5;
}

/* Media query pour mobile */
@media (max-width: 768px) {
  .content__sidebar {
    display: none; /* Cache la sidebar */
  }
  
  .Parent__content--typing {
    width: 100%; /* Prend toute la largeur */
  }
  
  .content__typing {
    font-size: 14px; /* Police légèrement réduite pour mobile */
    padding: 15px;
  }
  
  .window__taskbar {
    padding: 8px 12px; /* Barre supérieure plus compacte */
  }
}

.spotlight_serach {
  width: 400px;
  height: 50px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  border: 1px solid var(--color-white-100);
  justify-content: start;
  border-radius: 8px;
  background-color: transparent;
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 10px 10px rgba(37, 37, 37, 0.137);
}
.spotlight_serach svg {
  margin-left: 10px;
}
.spotlight_serach input {
  width: 90%;
  font-size: 20px;
  font-weight: 100;
  font-family: Lexend;
  margin-left: 10px;
  padding-right: 10px;
}
.spotlight_serach input::placeholder {
  color: white;
}

.launchpad {
  display: none;
  animation: opacity 300ms;
  width: 100%;
  height: 100%;
  background-color: transparent;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.searchbox {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.searchbox .searchContainer {
  height: 30px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-top: 1px solid rgba(255, 255, 255, 0.582);
  border-bottom: 1px solid rgba(255, 255, 255, 0.582);
  border-right: 1px solid rgba(255, 255, 255, 0.219);
  border-left: 1px solid rgba(255, 255, 255, 0.219);
  border-radius: 4px;
  padding: 0 3px;
}

.searchbox .searchContainer svg {
  fill: #fff;
}

.searchbox input {
  text-align: center;
  color: #fff;
  font-size: 17px;
  height: 100%;
  font-family: "Roboto", sans-serif;
}

.searchbox input::placeholder {
  color: #fff;
  font-weight: 100;
}

.searchbox input:focus {
  text-align: left;
}

.Apps-container {
  width: 90%;
  height: 60%;
  margin: 0 auto;
  display: grid;
  grid-row-gap: 10px;
  grid-template-columns: 25% 25% 25% 25%;
  grid-template-rows: 25% 25% 25% 25%;
}

.launchpad .child-launchpad {
  display: flex;
  place-items: center;
  flex-direction: column;
  cursor: url(../cursor/Link.cur), pointer;
}

.launchpad .child-launchpad img {
  width: 80px;
}

@media screen and (min-width: 1200px) {
  .launchpad .Apps-container {
    grid-row-gap: 20px;
  }
  .launchpad .child-launchpad img {
    width: 80px;
  }
  .launchpad .child-launchpad strong {
    font-size: 18px;
  }
}

.launchpad .child-launchpad:active {
  animation: vibrate 0.1s ease-in forwards infinite alternate;
  transition: transform 0.1s cubic-bezier(0.42, 0, 1, 0.2);
}

.launchpad .child-launchpad strong {
  color: #fff;
}

::-webkit-scrollbar {
  background-color: #fff;
  width: 16px;
}

/* background of the scrollbar except button or resizer */
::-webkit-scrollbar-track {
  background-color: #fff;
}

/* scrollbar itself */
::-webkit-scrollbar-thumb {
  background-color: #babac0;
  border-radius: 16px;
  border: 4px solid #fff;
}

/* set button(top and bottom of the scrollbar) */
::-webkit-scrollbar-button {
  display: none;
}

/******Animations*****/

@keyframes zoom-out {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes to-top-bottom {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translateY(-12px);
  }
  50% {
    transform: translateY(-3px);
  }
  75% {
    transform: translateY(-21px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes vibrate {
  0% {
    transform: rotate(9deg);
  }
  100% {
    transform: rotate(-9deg);
  }
}

@keyframes top-to-bottom {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes opacity {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.calculator {
  display: none;
  width: 20rem;
  max-width: 100%;
  height: 25rem;
  max-height: 80%;
  background: var(--color-black-500);
  backdrop-filter: blur(1rem);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem var(--color-black-500);
  border: 1px solid var(--color-white-200);
  animation: zoom-out 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.calculator__top {
  width: 100%;
  height: 30%;
  display: flex;
  flex-direction: column;
}

.calculator__top--taskabr {
  height: 40px;
  padding: 0 2px;
  display: flex;
  align-items: center;
}

.calculator__top--taskabr button {
  position: relative;
  width: 1px;
  height: 1px;
  padding: 8px;
  border-radius: 50%;
  margin-left: 8px;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator__top--taskabr button:nth-child(1) {
  background-color: #ff6059;
}

.calculator__top--taskabr button:nth-child(1):hover {
  background-color: #fc3c32;
}

.calculator__top--taskabr button:nth-child(2) {
  background-color: #ffbd2e;
}

.calculator__top--taskabr button:nth-child(2):hover {
  background-color: #ffa600;
}

.calculator__top--taskabr button:nth-child(3) {
  background-color: #28c941;
}

.calculator__top--taskabr button:nth-child(3):hover {
  background-color: #12aa29;
}

.calculator__top--taskabr button::after {
  display: block;
  font-size: 14px;
  color: transparent;
  font-weight: 900;
  position: absolute;
}

.calculator__top--taskabr:hover button::after {
  color: #000;
}

.calculator__top--taskabr button:nth-child(1)::after {
  content: "×";
}

.calculator__top--taskabr button:nth-child(2)::after {
  content: "−";
}

.calculator__top--taskabr button:nth-child(3)::after {
  content: "⤡";
}

.calculator__top--output {
  flex: 1;
  color: var(--color-white);
  font-size: 2rem;
  text-align: right;
  font-family: "Lexend";
  border: none;
  background: transparent;
  padding: 0 0.8rem;
}

.input {
  width: 100%;
  height: 70%;
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  grid-template-rows: 20% 20% 20% 20% 20%;
}

.input .button {
  width: 100%;
  height: 100%;
  font-size: 1.8rem;
  font-family: "Montserrat";
  font-weight: bold;
  border: 1px solid rgba(95, 95, 95, 0.336);
}

.r-radius {
  border-bottom-right-radius: 15px;
}

.large {
  grid-column-start: span 2;
  border-bottom-left-radius: 15px;
}

.operator {
  background-color: #fd9e2a;
  color: #fff;
}

.number {
  background-color: #d6d6d6;
  color: rgb(0, 0, 0);
}

.operator-2 {
  background-color: #ccc9c9;
  color: rgb(0, 0, 0);
}

.context-menu {
  padding: 0 3px;
  position: absolute;
  border-radius: 7px;
  text-align: center;
  background: rgba(255, 255, 255, 0.219);
  border: 1px solid rgba(255, 255, 255, 0.281);
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.context-menu ul {
  padding: 0;
  margin: 0;
  min-width: 250px;
  list-style: none;
}

.context-menu ul li {
  margin: 4px 0;
  border-bottom: 1px solid rgba(65, 64, 64, 0.288);
}

.context-menu ul li:last-child {
  border: none;
}

.context-menu ul li button {
  color: var(--color-white);
  width: 100%;
  height: 100%;
  text-align: left;
  font-size: 15px;
  font-family: "Lexend", sans-serif;
  border-radius: 5px;
  padding: 4px 8px;
  transition: 80ms;
  font-weight: 300;
  margin: 0 0 4px 0;
  display: flex;
  flex-direction: row;
  cursor: url(../cursor/Link.cur), pointer;
}
.context-menu ul button:hover {
  background: var(--color-blue-800);
}

/* Widgets panel */
.widgets-panel {
  position: fixed;
  top: 42px;
  right: 10px;
  transform: translateX(115%);
  transition: all 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  backdrop-filter: blur(1rem);
  border: 1px solid var(--color-white-200);
  border-radius: 16px;
  overflow: hidden;
}
.widgets-panel.open {
  transform: translateX(0);
}
.widgets-panel__calendar {
  background: transparent;
  padding: 16px;
  min-width: 160px;
}
.widgets-panel #taghvim {
  display: flex;
  align-items: center;
  justify-content: center;
}
.widgets-panel__calendar h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 8px;
  margin-bottom: -10px;
}
.widgets-panel__calendar h2 {
  color: #ffffff;
  font-size: 45px;
  font-weight: 300;
}
.widgets-panel__calendar li {
  position: relative;
  padding: 4px 10px;
  font-size: 15px;
  border-radius: 4px;
  margin-left: 8px;
  margin: 8px 0;
}
.widgets-panel__calendar li::before {
  content: "";
  width: 8px;
  height: calc(100% - 2px);
  position: absolute;
  border-radius: 99px;
  top: 2px;
  left: -12px;
}
.widgets-panel__calendar li.blue {
  color: #34aadc;
  background: #283646;
}
.widgets-panel__calendar li.blue::before {
  background: #34aadc;
}
.widgets-panel__calendar li.green {
  color: #32d74b;
  background: #2d402e;
}
.widgets-panel__calendar li.green::before {
  background: #32d74b;
}
.widgets-panel__calendar li.purple {
  color: #9c5ffd;
  background: #422948;
}
.widgets-panel__calendar li.purple::before {
  background: #7a3edb;
}
.widgets-panel__calendar li span {
  display: block;
}
.widgets-panel__calendar li span:first-child {
  font-weight: bold;
}


/* code pour le vs code interface*/
/* container général */
/* Conteneur général */
.code-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Courier New', monospace;

  overflow: hidden;
}

/* Barre d’onglets en haut */
.editor-tabs {
  display: flex;
  background: #2d2d2d;
  padding: 4px 8px;
  gap: 4px;
  flex-shrink: 0;
}
.editor-tabs .tab {
  padding: 4px 10px;
  border-radius: 4px 4px 0 0;
  background: #2d2d2d;
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
}
.editor-tabs .tab.active {
  background: #1e1e1e;
  color: #fff;
  border-bottom: 2px solid #007acc;
}

/* Zone de code */
.code-block {
  flex: 1;
  padding: 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Simples règles de “syntax highlighting” */
.token.comment  { color: #6a9955; }
.token.keyword  { color: #569cd6; }
.token.variable { color: #9cdcfe; }
.token.property { color: #4ec9b0; }
.token.string   { color: #ce9178; }

/* Responsive si ton container est très bas (12% de la hauteur par ex.) */
@media (max-height: 300px), (max-width: 400px) {
  .editor-tabs .tab { padding: 3px 6px; font-size: 11px; }
  .code-block { padding: 6px; font-size: 11px; }
}





/* Amélioration de la barre de menu de l'éditeur */
.editor-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(to bottom, #f9fafc, #eef1f7);
  border-bottom: 1px solid #dcdfe6;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.editor-menu button {
  background: white;
  border: 1px solid #e0e3e9;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.2s ease-in-out;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.editor-menu button:hover {
  background: #f0f4ff;
  border-color: #c0d0ea;
  color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.editor-menu button:active {
  transform: translateY(0);
  box-shadow: none;
}

.editor-separator {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, #e2e8f0, #edf2f7, #e2e8f0);
  margin: 0 10px;
}

/* Styles pour les documents dans l'éditeur */
.editor-document {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  padding: 15px;
  line-height: 1.6;
}

.editor-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
}

.editor-logo {
  margin-right: 15px;
}

.editor-header h3 {
  font-size: 22px;
  color: #2c3e50;
  margin: 0;
}

.editor-section {
  margin-bottom: 25px;
}

.editor-section h4 {
  color: #3498db;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
}

/* Styles spécifiques pour Whisp */
.feature-box {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  background: #f5f9ff;
  padding: 15px;
  border-radius: 8px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 30%;
}

.feature-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
}

.whisp-mockup {
  display: flex;
  align-items: center;
  margin: 15px 0;
  background: #eef2f7;
  padding: 15px;
  border-radius: 10px;
}

.mockup-img {
  width: 70px;
}

.mockup-content {
  flex: 1;
  margin-left: 15px;
}

.chat-bubble {
  background: #dcf8c6;
  padding: 8px 12px;
  border-radius: 18px;
  margin-bottom: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-bubble:nth-child(2) {
  background: #ffffff;
  align-self: flex-start;
  margin-left: 30px;
}

/* Styles spécifiques pour ViteMonGrandOral */
.grand-oral-doc .editor-header {
  border-bottom-color: #ffd166;
}

.grand-oral-doc h4 {
  color: #ff9f1c;
}

.scenario-box {
  display: flex;
  align-items: flex-start;
  background: #f7f7f7;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.scenario-icon {
  font-size: 24px;
  margin-right: 15px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  border-radius: 50%;
}

.scenario-text h5 {
  margin-top: 0;
  margin-bottom: 5px;
  color: #333;
}

.scenario-text p {
  margin: 0;
}

.solution .scenario-icon {
  background: #d1ecf1;
}

.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
  padding: 20px;
  background: #f0f7fc;
  border-radius: 8px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-number {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff9f1c;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 8px;
}

.process-arrow {
  font-size: 20px;
  color: #666;
}

/* Styles spécifiques pour Vago */
.vago-doc .editor-header {
  border-bottom-color: #06d6a0;
}

.vago-doc h4 {
  color: #087f5b;
}

.vago-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #11998e, #38ef7d);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.banner-text {
  font-size: 20px;
  font-weight: bold;
  max-width: 70%;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.stat-box {
  width: 30%;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #087f5b;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #555;
}

.task-examples {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.task-card {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  width: 30%;
}

.task-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.task-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.task-reward {
  color: #087f5b;
  font-size: 14px;
}

/* Styles spécifiques pour Portfolio */
.portfolio-doc .editor-header {
  border-bottom-color: #8338ec;
}

.portfolio-doc h4 {
  color: #5a189a;
}

.portfolio-banner {
  background: linear-gradient(to right, #3f51b5, #673ab7);
  color: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.portfolio-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.portfolio-grid {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.portfolio-item {
  width: 30%;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

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

.portfolio-icon {
  margin-bottom: 15px;
}

.portfolio-item-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.portfolio-item-desc {
  font-size: 14px;
  color: #666;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.skill-tag {
  background: #e9ecef;
  color: #495057;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-box, .portfolio-grid, .stats-container, .task-examples, .process-flow {
    flex-direction: column;
    gap: 15px;
  }
  
  .feature, .portfolio-item, .stat-box, .task-card {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .process-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}








/* CSS amélioré pour le Finder */
.finder-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.finder-body {
  flex: 1;
  width: 100%;
  display: flex;
  overflow: hidden;
}

/* Sidebar améliorée */
.finder-sidebar {
  width: 180px;
  background: #f3f3f3;
  border-right: 1px solid #e0e0e0;
  padding: 12px 8px;
  overflow-y: auto;
}
.finder-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.finder-sidebar li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.finder-sidebar li.active {
  background: #e2e9fd;
  color: #4a6bf5;
  font-weight: 500;
}
.finder-sidebar li:hover:not(.active) {
  background: #e9e9e9;
}

/* Main pane amélioré */
.finder-main {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Toolbar améliorée */
.finder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(to bottom, #fbfbfb, #f3f3f3);
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}
.breadcrumb {
  color: #444;
  font-weight: 500;
}
.finder-actions img {
  margin-left: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.finder-actions img:hover {
  opacity: 1;
}

/* File grid améliorée */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  background-color: #fafbfc;
}

.file-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.file-card:hover {
  background: #f7f9ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: #d0d9ff;
}
.file-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  transition: transform 0.2s;
}
.file-card:hover img {
  transform: scale(1.05);
}
.file-card span {
  font-size: 13px;
  color: #444;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Editor amélioré */
.editor-content {
  display: flex;
  flex-direction: column;
  background: #fff;
  height: calc(100% - 28px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.menu-button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
}
.menu-button:hover {
  background: #e9e9e9;
  border-color: #d1d1d1;
}
.editor-separator {
  width: 1px;
  height: 24px;
  background: #ddd;
  margin: 0 8px;
}
.editor-area {
  flex: 1;
  padding: 24px 32px;
  overflow: auto;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

.font-select, .size-select {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}

/* Responsive: plus compact et adaptatif */
@media(max-width:768px) {
  .finder-sidebar { width: 140px; }
  .editor-menu { padding: 4px 6px; gap: 2px; }
  .menu-button { padding: 3px 6px; }
  .editor-separator { margin: 0 4px; }
  .editor-area { padding: 16px 20px; }
  .file-grid { padding: 12px; gap: 12px; }
}

@media(max-width:600px) {
  .finder-sidebar { display: none; }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-menu { font-size: 12px; }
  .menu-button { padding: 2px 4px; }
}


/* Email window - Apple Mail Style */
.window.email {
  background-color: white;
  max-width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.window.email .window__taskbar {
  background: linear-gradient(to bottom, #f7f7f7, #e8e8e8);
  border-bottom: 1px solid #d1d1d1;
}

.window.email .window-content {
  background-color: #ffffff;
  padding: 0;
  border-radius: 0 0 8px 8px;
  color: #333;
}

/* Toolbar */
.email-toolbar {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border-bottom: 1px solid #d1d1d1;
  padding: 8px 12px;
  gap: 10px;
}

.email-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-toolbar-divider {
  height: 24px;
  width: 1px;
  background-color: #d1d1d1;
  margin: 0 4px;
}

.email-toolbar-button {
  border: none;
  background: transparent;
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  font-size: 12px;
}

.email-send-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #0071e3;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.email-send-button:hover {
  background-color: #0077ed;
}

.email-send-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.email-toolbar-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.email-toolbar-button svg {
  width: 16px;
  height: 16px;
  fill: #666;
}

/* Email composition area */
.email-composition {
  height: 100%;
  padding: 16px 20px;
}

.email-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.email-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.email-header-label {
  width: 80px;
  color: #666;
  font-weight: 500;
  font-size: 13px;
  text-align: right;
}

.email-header-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
  color: #333;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.email-header-input:focus {
  border-bottom: 1px solid #0071e3;
}

/* Message area */
.email-message {
  height: 100%;
  min-height: 200px;
  margin-bottom: 20px;
}

.email-message textarea {
  width: 100%;
  min-height: 200px;
  border: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .email-toolbar {
    overflow-x: auto;
    padding: 6px;
    gap: 6px;
  }
  
  .email-toolbar-button {
    padding: 3px 6px;
  }
  
  .email-send-button {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .email-header-label {
    width: 60px;
    font-size: 12px;
  }
  
  .email-header-input {
    font-size: 12px;
  }
}



.window.safari .window-content {
  background-color: #ffffff;
  height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Barre de navigation Safari */
.safari-navbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f5f7;
  border-bottom: 1px solid #e0e0e0;
  gap: 10px;
}

.safari-navbar-controls {
  display: flex;
  gap: 8px;
}

.safari-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  transition: border-color 0.2s ease;
}

.safari-address-bar:focus-within {
  border-color: #0071e3;
}

.safari-icon {
  color: #8e8e93;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.safari-url {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.safari-actions {
  display: flex;
  gap: 8px;
}

.safari-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e5e5e;
  cursor: pointer;
  transition: background-color 0.2s;
}

.safari-btn:hover {
  background-color: #e0e0e0;
}

.safari-btn svg {
  width: 16px;
  height: 16px;
}

/* Contenu de la page Safari */
.safari-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background-color: #f5f5f7;
}

.safari-homepage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.safari-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  border-radius: 12px;
  margin-bottom: 30px;
  color: #333;
}

.safari-hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  margin-bottom: 20px;
  color: #1d1d1f;
}

.safari-hero-tagline {
  font-size: 20px;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

.safari-section {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.safari-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.safari-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
}

.safari-section:nth-child(3) .safari-section-icon {
  background: linear-gradient(120deg, #ff9a9e 0%, #fad0c4 100%);
}

.safari-section:nth-child(4) .safari-section-icon {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.safari-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #1d1d1f;
}

.safari-section-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.safari-section-content p {
  margin-bottom: 15px;
}

.safari-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
}

.safari-world-map {
  justify-content: center;
}

.safari-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 200px;
}

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

.safari-image-caption {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

/* Responsive design */
@media (max-width: 768px) {
  .safari-navbar {
    padding: 6px 8px;
  }
  
  .safari-btn {
    width: 24px;
    height: 24px;
  }
  
  .safari-address-bar {
    padding: 3px 6px;
  }
  
  .safari-hero {
    padding: 40px 15px;
  }
  
  .safari-hero h1 {
    font-size: 32px;
  }
  
  .safari-hero-tagline {
    font-size: 16px;
  }
  
  .safari-section {
    padding: 20px;
  }
  
  .safari-section h2 {
    font-size: 20px;
  }
  
  .safari-images {
    flex-direction: column;
  }
}


/* Styles pour l'onglet Paramètres */
.parametres-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
  color: #f5f5f7;
}

.parametres-body {
  flex: 1;
  width: 100%;
  display: flex;
  overflow: hidden; /* Important pour empêcher le double scroll */
}

/* Masquer les scrollbars tout en conservant la fonctionnalité */
/* Pour Webkit (Chrome, Safari, nouveaux Edge) */
.parametres-sidebar::-webkit-scrollbar,
.parametres-main::-webkit-scrollbar {
  width: 0px;
    display: none;
  
  background: transparent;
}

/* Pour Firefox */
.parametres-sidebar, .parametres-main {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer/Edge */
}

/* Pour IE et Edge */
.parametres-sidebar, .parametres-main {
  -ms-overflow-style: none;
}

.parametres .window__taskbar {
  color: white;
  background: #2a2a2a;
}

/* Sidebar avec icônes */
.parametres-sidebar {
  width: 220px;
  min-width: 220px; /* Empêche la sidebar de rétrécir */
  background: #2a2a2a;
  padding: 20px 0;
  overflow-y: auto;
  border-right: 1px solid #3a3a3a;
}

.parametres-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parametres-sidebar li {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  color: #d9d9d9;
  display: flex;
  align-items: center;
}

.sidebar-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
}

.parametres-sidebar li.active {
  background: #3a3a3a;
  color: #fff;
  font-weight: 500;
}

.parametres-sidebar li.active .sidebar-icon {
  color: #0a84ff; /* Couleur bleue Apple pour l'icône active */
}

.parametres-sidebar li:hover:not(.active) {
  background: #333333;
}

/* Main content avec scroll fonctionnel */
.parametres-main {
  flex: 1;
  padding: 30px 30px 100px 30px; /* Ajoute un padding bottom important pour que tout soit visible */
  overflow-y: auto; /* Permet le défilement à l'intérieur du contenu principal */
  background-color: #1e1e1e;
  height: 100%; /* Assure que le conteneur prend toute la hauteur disponible */
}

/* Fix pour s'assurer que le contenu est scrollable */
.parametres_content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* Empêche le double scroll */
}

/* Header */
.parametres-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3a3a3a;
}

.header-icon {
  margin-right: 20px;
}

.header-icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 8px rgba(0, 136, 255, 0.3)); /* Ajoute un léger glow à l'icône */
}

.header-text h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: #fff;
}

.subtitle {
  font-size: 16px;
  color: #a1a1a1;
  margin: 0;
}

/* Sections */
.parametres-section {
  margin-bottom: 40px;
}

.parametres-section h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
}

.parametres-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #0a84ff;
  margin-right: 10px;
  border-radius: 2px;
}

.concept-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.concept-content p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #d9d9d9;
}

.concept-content p:last-child {
  margin-bottom: 0;
}

/* App sections */
.app-section {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-section:hover {
  background: #303030;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.app-section.reverse {
  flex-direction: row-reverse;
}

.app-icon {
  min-width: 80px;
  margin: 0 20px;
  display: flex;
  justify-content: center;
}

.app-icon img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

.app-section:hover .app-icon img {
  transform: scale(1.1);
}

.app-description {
  flex: 1;
}

.app-description h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #fff;
}

.app-description p {
  margin: 0;
  line-height: 1.5;
  color: #b8b8b8;
}

/* Responsive */
@media (max-width: 800px) {
  .parametres-body {
    flex-direction: column;
  }

  .parametres-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #3a3a3a;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #2a2a2a;
    transition: transform 0.3s ease;
  }

  /* Navigation mobile avec seulement les icônes importantes visibles */
  .parametres-sidebar ul {
    display: flex;
    padding: 5px 15px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Pour une meilleure expérience tactile */
  }

  .parametres-sidebar li {
    flex: 0 0 auto; /* Empêche l'élément de s'étirer */
    padding: 8px 15px;
    margin-right: 5px;
    border-radius: 6px;
    white-space: nowrap;
  }

  /* Style compact pour mobile */
  .sidebar-icon {
    margin-right: 8px;
  }

  /* Animation de la navbar lors du défilement */
  .nav-hidden {
    transform: translateY(-100%);
  }

  .parametres-main {
    padding: 20px 20px 80px 20px;
  }

  .parametres-header {
    flex-direction: column;
    text-align: center;
  }

  .header-icon {
    margin-right: 0;
    border-radius: 50px;
    margin-bottom: 15px;
  }

  .app-section, .app-section.reverse {
    flex-direction: column;
  }

  .app-icon {
    margin-bottom: 15px;
  }

  .app-description {
    text-align: center;
  }
}

/* Spécifiquement pour la sidebar en mode horizontal sur mobile */
@media screen and (max-width: 768px) {
  .parametres-sidebar ul {
    -webkit-overflow-scrolling: touch; /* Pour une meilleure expérience tactile */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .parametres-sidebar ul::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
  }
}