@import url('https://fonts.googleapis.com/css2?family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

@font-face {
	font-family: 'Adam', sans-serif;
	src: url('https://www.mrpoupou.ovh/portail/fonts/AdamBold.ttf') format('truetype'),
  url('https://www.mrpoupou.ovh/portail/fonts/fonts/AdamBold.woff2') format('woff2');
}

/* Variables de thème */
:root[data-theme="light"] {
  --bg-color: #f0f0f0;
  --text-color: #fff;
  --text-secondary: #666;
  --accent-color: #0078d4;
  --window-bg: rgba(32, 32, 32, 0.95);
  --window-border: rgba(0, 0, 0, 0.1);
  --taskbar-bg: rgba(255, 255, 255, 0.8);
  --start-menu-bg: rgba(32, 32, 32, 0.95);
  --input-bg: #fff;

  --ombre: rgb(170, 102, 225);
  --back: rgb(113, 44, 170);
  --scroll: rgb(198, 136, 255);
}

:root[data-theme="dark"] {
  --bg-color: #202020;
  --text-color: #fff;
  --text-secondary: #ccc;
  --accent-color: #60cdff;
  --window-bg: rgba(32, 32, 32, 0.95);
  --window-border: rgba(255, 255, 255, 0.1);
  --taskbar-bg: rgba(32, 32, 32, 0.8);
  --start-menu-bg: rgba(32, 32, 32, 0.95);
  --input-bg: #333;

  --ombre: rgb(102, 166, 225);
  --back: rgba(62, 130, 182);
  --scroll: rgb(128, 167, 252);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: 'Overlock', cursive;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.4) }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 15px; }
::-webkit-scrollbar-button { display: var(--bg-color); }
::-webkit-scrollbar-corner { display: none; }




body {
  background-color: grey;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background-image: url('../decors/fond.jpg');
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  min-width: 1100px;
}


/*! ENTETE */
#entete {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  /*border: 1px dashed yellow;*/
}
#entete #logo {
  position: absolute;
  height: 200px;
  width: 180px;
  background: var(--back);
  box-shadow: 0 0 10px black;
  border-radius: 50%;
  top: -100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 5px 0;
  border: 4px solid white;
}
#entete #logo img {
  padding-top: 4px;
  height: 90px;
}
#entete #titre {
  text-indent: 220px;
  font-size: 2.1vw;
  font-family: 'Adam', sans-serif;
  color: white;
  letter-spacing: 0.10em;
  text-shadow: 3px 3px 2px var(--ombre);
  margin-top: -30px;
}
#entete #param {
  position: absolute;
  top: 25px; right: -230px;
  height: 50px;
  width: 280px;
  background: var(--back);
  box-shadow: 0 0 10px black;
  border-radius: 20px;
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 4px solid white;
  transition-duration: 0.4s;
}
#entete #param.active {
  /*right: -20px;*/
  transform: translateX(-210px);
  transition-duration: 1s;
}
#entete #param ion-icon {
  color: white;
  font-size: 32px;
  cursor: pointer;
}
#entete #param ion-icon {
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition-duration: 0.5s;
}
#entete #param ion-icon:nth-child(1):hover {
  transform:rotateZ(180deg);
  transition-duration: 1s;
}


/*! CENTRE */
#centre {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#centre #affichage {
  width: 98%;
  height: 98%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
#centre #affichage #vid {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
}
#centre #affichage #vid video {
  object-fit: cover;
  filter: grayscale(60%);
  width: 100%;
}

#centre #welcome-popup {
  position: absolute;
  z-index: 500;
  font-size: 56px;
  text-shadow: 2px 2px 2px black;
  text-align: center;
  color: white;
  padding: 10px 30px;
  margin: 0 50px;
  background: var(--back);
  letter-spacing: 0.2em;
  border-radius: 15px;
  filter: drop-shadow(2px 2px 2px black);
  opacity: 1;
      /* FORCE LA TRANSITION */
      transition-property: opacity;
      transition-duration: 2s;
      transition-timing-function: ease-out;
}



/* Barre des tâches flottante */
.taskbar {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  height: 48px;
  background: var(--back);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  border: thin rgb(78, 78, 78) solid;
  border-radius: 12px;
  width: 65vw;
  max-width: 1200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.taskbar .boutons {
  background: none;
  color: var(--text-color);
  font-size: 28px;
  width: 42px; height: 42px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.taskbar .boutons:hover {
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}


.taskbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

#clock {
  font-size: 16px;
}
.taskbar-right .boutons {
  margin-right: -5px;
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Menu Démarrer */
.start-menu {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: calc(100% - 32px);
    background: var(--start-menu-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.start-menu.active {
    display: block;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: white;
    font-size: 1.4rem;
    text-shadow: 1px 1px 0.6px black;
}
.app-item ion-icon {
  font-size: 2.4rem;
  color: white;
  filter: drop-shadow(1px 1px 0.2px black);
}

.app-item:hover {
    background: var(--back);
}
.app-item.param:hover {
  background: transparent;
}

.app-item svg {
    margin-bottom: 8px;
}

/* Pages et fenêtres */
.page-content {
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    bottom: 16px;
    overflow: auto;
    padding: 0 16px;
    z-index: 900;
}

.page {
    display: none;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

.window {
    background: var(--window-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--window-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: fixed;
    cursor: default;
    user-select: none;
}

.window-header {
    padding: 6px 16px;
    background: var(--back);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--window-border);
    cursor: move;
    user-select: none;
}
.window-header span {
  font-size: 24px;
}

.close-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: rgba(255, 0, 0, 0.6);
}

.window-content {
    padding: 20px;
    border-bottom: 4px solid var(--back);
    max-height: calc(100vh - 258px);
    width: 100%;
    overflow: hidden;
}

.window-content .double {
  display: flex;
  width: 100%;
  overflow: auto;
  gap: 5px;
}

.window-content .double .schoix {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  height: 75%;
  border-right: 1px solid var(--back);
  gap: 10px;
}
.window-content .double .schoix a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  width: 120px; height: 120px;
  border-radius: 12px;
}
.window-content .double .schoix a ion-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 3rem;
}
.window-content .double .schoix a:hover {
  background: rgba(80, 76, 76, 0.288);
  color: var(--ombre);
}

.window-content .double .scontenu {
  /*border: 1px dashed red;*/
  flex: 1;
  margin-left: 175px;
  height: calc(100vh - 360px);
  /*scroll-behavior: smooth;*/
  scroll-snap-type: y mandatory;
  overflow: hidden;
}
.window-content .double .scontenu .cadre {
  height: 100%;
  /*border: 1px dashed yellow;*/
  scroll-snap-align: start;
}
.window-content .double .scontenu .cadre h2 {
  color: var(--back);
  margin-bottom: 10px;
}

#psites .window .window-content {
  height: calc(100vh - 200px);
}

#papplis .window-content .scontenu .det {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 60px;
}
#papplis .window-content .scontenu .det a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}
#papplis .window-content .scontenu .det a img {
  border-radius: 20px;
  margin-bottom: 5px;
  height: 80px;
}

#pwindows .window-content {
  display: flex;
  flex-direction: column;
  gap: 20px 0;
}
#pwindows .window-content div {
  padding: 5px 10px;
  text-align: justify;
  border-radius: 12px;
  background-color: var(--back);
  font-size: 1.15rem;
}
#pwindows .window-content {
  overflow-y: auto;
}
#pwindows .window-content .wimgs {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
#pwindows .details {
  text-indent: 10px;
}
#pwindows .details::before {
  content:'=> ';
}
#pwindows .window-content .btLien {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pwindows .window-content a {
  background-color: var(--back);
  padding: 5px 20px;
  color: white;
  border-radius: 12px;
}


#pfonds .window-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-y: auto;
}
#pfonds .window-content .image {
  position: relative;
}
#pfonds .window-content .image img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  filter: brightness(110%);
}
#pfonds .window-content .image .survol {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display : flex;
  align-items: center;
  justify-content: center;
  transition: background 0.50s ease-in-out;
}
#pfonds .window-content .image:hover .survol {
  z-index: 5;
  background: rgba(0,0,0,0.4);
  transition: background 0.50s ease-in-out;
}
#pfonds .window-content .image .survol ion-icon {
  font-size: 32px;
  color: white;
  filter: drop-shadow(1px 1px 0px black);
  
}
#pfonds .window-content .image .survol a:nth-child(1) {
  padding: 10px 10px 10px 20px;
  background: var(--scroll);
  border-radius: 20px 0 0 20px;
}
#pfonds .window-content .image .survol a:nth-child(2) {
  padding: 10px 20px 10px 10px;
  background: var(--scroll);
  border-radius: 0px 20px 20px 0;
}

#pmateriels .window-content .scontenu .cadre {
  position: relative;
  overflow-y: auto;
}
#pmateriels .window-content .scontenu .matos {
  position: absolute;
  right: 0px; top: 35px;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pmateriels .window-content .scontenu .matos img {
  width: 90%;
  height: 90%;
}
#pmateriels .window-content .scontenu .config {
  margin-top: 20px;
  width: 100%;
  border-radius: 0 25px 0 0;
  border: 2px solid white;
  box-shadow: 4px 4px 10px black;
  overflow: hidden;
  position: relative;
}
#pmateriels .window-content .scontenu .config ion-icon {
  padding-right: 10px;
}
#pmateriels .window-content .scontenu .config h4 {
  font-size: 20px;
  padding: 5px 10px;
  letter-spacing: 0.1em;
  background-color: var(--back);
  border-bottom: 2px solid white;
}
#pmateriels .window-content .scontenu .config .mlogo {
  position: absolute;
  top: 2px;
  right: 10px;
  font-size: 28px;
  color: white;
}
#pmateriels .window-content .scontenu .config .matos_det li {
  margin: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
}
#pmateriels .window-content .scontenu .down {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 15px;
}
#pmateriels .window-content .scontenu .down .btDown {
  width: 250px;
  border-radius: 12px;
  background-color: var(--back);
  font-size: 1.5rem;
  padding: 5px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}





/*! BAS */
#pied {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pied p {
  background: black;
  z-index: 10;
  padding: 0 20px;
}
#piedLigne {
  width: 100%;
  height: 4px;
  background-color: var(--back);
  position: absolute;
  bottom: 10px;
}




@media (max-width: 2100px) {
  #centre #affichage #vid video {
    object-fit: cover;
    height: 100%;
  }
}