body {
    background: #ffbbbb
}


/* NAVIGATION GÉNÉRALE */
header {
  background-color: #fcd6e0;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 4px solid #f7b5c7;
    margin-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  border-radius: 30px;
  background-color: #fff;
  color: #d97b93;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

nav ul li a:hover {
  background-color: #fce5ec;
  color: #c84b6f;
  transform: scale(1.05);
}

/* SOUS-MENU */
.submenu {
  display: none;
  position: absolute;
  top: 107%;
  left: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 10px 0;
  min-width: 180px;
}

.menu-cours:hover .submenu {
  display: block;
}

.submenu li a {
  background: none;
  color: #d97b93;
  padding: 8px 20px;
  font-size: 0.95rem;
  border-radius: 0;
  text-align: left;
}

.submenu li a:hover {
  background-color: #ffeef2;
  color: #c84b6f;
  transform: none;
}


.personal-space {
  font-family: "Comic Sans MS", sans-serif;
  color: #333;
  background: #fff0f6;
  padding: 2rem;
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
    box-shadow: 0 0px 10px rgba(250,0,0,0.25);
}

/* Grille principale */
.grid-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Colonne 1 : fixe */
.sidebar {
  background: #ffe0f0;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #f88bc0;
  margin-bottom: 1rem;
}

.bio h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #d63384;
}

.details {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.details li {
  margin-bottom: 0.5rem;
}

#clock {
      font-size: 1.2rem;
      font-family: 'Dotum', sans-serif;
      margin: 10px;
}

/* Colonne 2 : tout le contenu */
.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.progress-section {
  margin-bottom: 2rem;
}

.progress-section textarea {
  width: 80%;
    height: 20px;
  padding: 8px;
  font-size: 1rem;
  margin-bottom: 3px;
  border-radius: 10px;
    resize: vertical;
}

.progress-bar-wrapper {
  position: relative;
  height: 30px;
}

.progress-bar {
  background: #eee;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease, background-color 0.3s ease;
  position: relative;
}

/* Optionnel : texte % joli dans la barre */
.bar span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-family: 'Itim', cursive;
  font-size: 1rem;
}

.progress-bar-wrapper {
  position: relative;
    width: 98%;
  height: 30px;
  background-color: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0px 10px rgba(255, 192, 203, 0.3);
  cursor: pointer;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease, background-color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-family: 'Itim', cursive;
  font-weight: bold;
  color: white;
  font-size: 0.95rem;
  background-image: 
    linear-gradient(135deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent),
    linear-gradient(to right, #FFB3BA, #BAE1FF); /* fallback gradient */
  background-size: 10px 10px, 100% 100%;
  background-repeat: repeat;
}


.percent-text {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}


.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
}

/* FELICITATION */
.star {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes sparkle {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(2) rotate(360deg);
    opacity: 0;
    top: -20px;
  }
}


/* Notes */
.quick-notes textarea {
  width: 95%;
  height: 100px;
  resize: vertical;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Bloc bas = objectifs, réalisations, etc. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.2rem;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
.card textarea {
  width: 90%;
  height: 20px;
  resize:vertical;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid #666666;
  font-family: inherit;
  box-shadow: inset 0 3px 4px rgba(0,0,0,0.20);
}

.pink {
  background: #f783ac;
}
.blue {
  background: #74c0fc;
}
.yellow {
  background: #ffd43b;
  color: #333;
}
.green {
  background: #69db7c;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
  }
}

footer {
  background-color: #fcd6e0;
  color: #a0556d;
  text-align: center;
  padding: 30px 20px 20px;
  margin-top: 20px;
  border-top: 4px solid #f7b5c7;
  font-size: 0.95rem;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
  border-radius: 20px 20px 0 0;
}

/* Liens réseaux sociaux */
footer .socials {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

footer .socials a {
  background-color: #fff;
  color: #d97b93;
  padding: 8px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

footer .socials a:hover {
  background-color: #ffeef2;
  color: #c84b6f;
  transform: scale(1.05);
}

/* Texte du bas */
footer p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}


/* Style de la fenêtre modale */
.modal {
  display: none; /* Par défaut, la modale est cachée */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 30%;
  max-width: 400px;
}

.close {
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Style des boutons kawaii */
.kawaii-button {
  background-color: #FFB3BA;
  color: white;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border: solid;
  border-radius: 50px;
  cursor:auto;
  font-family: 'Itim', cursive;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.kawaii-button:hover {
  background-color: #FF8DAA;
  transform: scale(1.1);
}

/* Effet d'animation kawaii */
.kawaii-button:active {
  transform: scale(0.9);
}

/* THEME SELECTOR */
.theme-selector {
    margin-bottom: 1.5rem;
    text-align: center;
}

.theme-selector label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    color: #777;
}

.theme-selector select {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 2px solid #ccc;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.theme-selector select:hover {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255,182,193, 0.6);
}



/* Transitions générales */
body, header, footer, .personal-space, .sidebar, .avatar, .bio, .nav, .modal-content {
    transition: background-color 1.0s ease, color 1.5s ease;
}

/* Thème marron */
header.marron {
  background-color: #eadbcb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 4px solid #b48450;
}

footer.marron {
  background-color: #eadbcb;
  color: #b48450;
  border-top: 4px solid #b48450;
}

body.marron {
    background-color: #d9a56d; /* marron */
    color: #fff;
}

.personal-space.marron {
    background-color: #f3ebe3; /* marron clair */
    box-shadow: 0 0px 10px rgba(139,98,54,0.65);   
}

.sidebar.marron {
  background: #eadbcb;
}

.avatar.marron {
  border: 3px solid #b48450;
}

.bio.marron h2 {
    color: #4e2100;
}

.modal-content.marron {
    color: black
}

.kawaii-button.marron {
  background-color: #d9a56d;
}

/* Thème bleu */
header.bleu {
  background-color: #cbdffb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 4px solid #5a8aa8;
}

footer.bleu {
  background-color: #cbdffb;
  color: #5a8aa8;
  border-top: 4px solid #5a8aa8;
}

body.bleu {
    background-color: #95bdf6; /* bleu */
    color: #fff;
}

.personal-space.bleu {
    background-color: #e1ecfd; /* bleu clair */
    box-shadow: 0 0px 10px rgba(78,130,202,0.65);  
}

.sidebar.bleu {
  background: #cbdffb;
}


.avatar.bleu {
    border: 3px solid #5a8aa8; /* bleu moyen */
}

.bio.bleu h2 {
    color: #0d4da6;
}

.modal-content.bleu {
    color: black
}

.kawaii-button.bleu {
  background-color: #95bdf6;
}


/*Thème nocturne */
header.nocturne {
  background-color: #1c1c2c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 4px solid #555;
}

footer.nocturne {
  background-color: #1c1c2c;
  color: #555;
  border-top: 4px solid #555;
}

body.nocturne {
    background-color: #1e1e2f;
    color: #f0f0f0;
}

.personal-space.nocturne {
    background-color: #2c2c3f;
    box-shadow: 0 0px 10px rgba(80, 80, 100, 0.7);
}

.sidebar.nocturne {
    background: #1c1c2c;
}

.avatar.nocturne {
    border: 3px solid #555;
}

.bio.nocturne h2 {
    color: #709bd5;
    
}.bio.nocturne {
    color: #b0cfff;
}

.modal-content.nocturne {
    background-color: #1e2a38;
}

.kawaii-button.nocturne {
  background-color: #1e1e2f;
}

.pink.nocturne {
  background: #a35571;
}
.blue.nocturne {
  background: #436f91;
}
.yellow.nocturne {
  background: #a38826;
  color: #fff;
}
.green.nocturne {
  background: #3b7a45;
}

.quick-notes.nocturne h3 {
    color: aliceblue;
}

.progress.nocturne h3 {
    color: aliceblue;
}

/* Thème forêt */
header.foret {
  background-color: #c3d1bb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 4px solid #6d8a4a;
}

footer.foret {
  background-color: #c3d1bb;
  color: #6d8a4a;
  border-top: 4px solid #6d8a4a;
}

body.foret {
    background-color: #556b2f; /* vert olive foncé */
    color: #fff;
}

.personal-space.foret {
    background-color: #e2e8d8; /* vert clair */
    box-shadow: 0 0px 10px rgba(80, 120, 60, 0.5);
}

.sidebar.foret {
    background: #c3d1bb;
}

.avatar.foret {
    border: 3px solid #6d8a4a;
}

.bio.foret h2 {
    color: #3a4f1c;
}

.modal-content.foret {
    background-color: #2e381e;
}

.kawaii-button.foret {
  background-color: #556b2f;