:root {
  /* Couleur rose principale et variantes (modifiable) */
  --accent: #ff4da6;
  --accent-hover: #ff71b8;
  --text-on-accent: #ffffff;

  /* Image de fond (modifiable) */
  --background-image: url('backgroundwebsite.png');
  
  /* Couleur noire et variantes (modifiable) */
  --black: #000000;
  --black-hover: #333333;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: #222;
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Légère surcouche pour lisibilité du contenu */
.overlay {
  min-height: 100%;
  backdrop-filter: saturate(120%) brightness(0.98);
  background-color: rgba(255, 255, 255, 0.12);
}

.container {
  max-width: 190px;
  margin: 0;
  position: absolute;
  right: 295px;
  top: 170px;
}

.container-green {
  max-width: 190px;
  margin: 0;
  position: absolute;
  right: 205px;
  top: 350px;
}

.container-blue {
  max-width: 150px;
  margin: 0;
  position: absolute;
  right: 355px;
  top: 520px;
}

.container-orange {
  max-width: 150px;
  margin: 0;
  position: absolute;
  right: 140px;
  top: 510px;
}

.container-purple {
  max-width: 150px;
  margin: 0;
  position: absolute;
  left: 625px;
  top: 200px;
}

.container-red {
  max-width: 150px;
  margin: 0;
  position: absolute;
  left: 150px;
  top: 0px;
}

h1 {
  margin: 0 0 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Bloc rose cliquable */
.pink-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 175px;
  height: 150px;
  background-color: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(255, 77, 166, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.pink-part:hover,
.pink-part:focus {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 20px rgba(255, 77, 166, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.pink-part:active {
  transform: translateY(0);
}

/* Bloc vert cliquable */
.green-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 175px;
  height: 150px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.green-part:hover,
.green-part:focus {
  background-color: #45a049;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.green-part:active {
  transform: translateY(0);
}

/* Bloc bleu cliquable */
.blue-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 165px;
  height: 130px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.blue-part:hover,
.blue-part:focus {
  background-color: #1976D2;
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.blue-part:active {
  transform: translateY(0);
}

/* Bloc orange cliquable */
.orange-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 175px;
  height: 138px;
  background-color: #FF9800;
  color: white;
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(255, 152, 0, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.orange-part:hover,
.orange-part:focus {
  background-color: #F57C00;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.orange-part:active {
  transform: translateY(0);
}

/* Bloc violet cliquable */
.purple-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 680px;
  height: 415px;
  background-color: #9C27B0;
  color: white;
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(156, 39, 176, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.purple-part:hover,
.purple-part:focus {
  background-color: #7B1FA2;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.purple-part:active {
  transform: translateY(0);
}

/* Bloc rouge cliquable */
.red-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100px;
  height: 400px;
  background-color: #F44336;
  color: white;
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(244, 67, 54, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 18px;
  opacity: 0;
}

.red-part:hover,
.red-part:focus {
  background-color: #D32F2F;
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.red-part:active {
  transform: translateY(0);
}

/* Menu déroulant (visible par défaut jusqu'à 1920x1080 exclu) */
.dropdown-menu {
  display: block;
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.dropdown-toggle {
  background-image: url('LINKS.png');
  background-color: #9C27B0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 300px;
  height: 100px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  font-family: "vanilla", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.dropdown-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 8px;
  background: white;
  width: 300px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 16px;
  z-index: 1;
  border: 1px solid rgba(156, 39, 176, 0.1);
}

.dropdown-content a {
  color: #ac7ede;
  padding: 16px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(156, 39, 176, 0.1);
  font-family: "vanilla", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.dropdown-content a:first-child {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.dropdown-content a:last-child {
  border-bottom: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
  color: white;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.dropdown-content.show {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Désactiver les boutons par défaut (pour résolutions < 1920px) */
.pink-part, .green-part, .blue-part, .orange-part, .purple-part, .red-part {
  pointer-events: none;
  cursor: default;
}

/* Cacher le menu déroulant uniquement en 1920x1080 et au-dessus */
@media screen and (min-width: 1920px) {
  .dropdown-menu {
    display: none;
  }
  
  /* Réactiver les boutons en 1920x1080 et au-dessus */
  .pink-part, .green-part, .blue-part, .orange-part, .purple-part, .red-part {
    pointer-events: auto;
    cursor: pointer;
  }
}

/* Écrans moyens - zoomer progressivement sur l'image */
@media screen and (max-width: 1600px) {
  body {
    background-size: cover;
    background-position: center 20%;
  }
}

@media screen and (max-width: 1366px) {
  body {
    background-size: cover;
    background-position: center 30%;
  }
}

/* Responsive Design - Tablettes */
@media screen and (max-width: 1024px) {
  body {
    background-size: cover;
    background-position: center 40%;
  }
  
  .container {
    right: 25%;
    top: 15%;
  }
  
  .container-green {
    right: 20%;
    top: 30%;
  }
  
  .container-blue {
    right: 30%;
    top: 45%;
  }
  
  .container-orange {
    right: 15%;
    top: 45%;
  }
  
  .container-purple {
    left: 30%;
    top: 40%;
  }
  
  .container-red {
    left: 5%;
    top: 40%;
  }
  
  .pink-part, .green-part {
    width: 140px;
    height: 120px;
  }
  
  .blue-part {
    width: 130px;
    height: 110px;
  }
  
  .orange-part {
    width: 140px;
    height: 110px;
  }
  
  .purple-part {
    width: 500px;
    height: 300px;
  }
  
  .red-part {
    width: 160px;
    height: 80px;
  }
}

/* Responsive Design - Mobiles */
@media screen and (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center 50%;
  }
  
  .container {
    right: 20%;
    top: 10%;
  }
  
  .container-green {
    right: 15%;
    top: 25%;
  }
  
  .container-blue {
    right: 25%;
    top: 40%;
  }
  
  .container-orange {
    right: 10%;
    top: 40%;
  }
  
  .container-purple {
    left: 25%;
    top: 35%;
  }
  
  .container-red {
    left: 5%;
    top: 35%;
  }
  
  .pink-part, .green-part {
    width: 100px;
    height: 80px;
  }
  
  .blue-part {
    width: 90px;
    height: 70px;
  }
  
  .orange-part {
    width: 100px;
    height: 80px;
  }
  
  .purple-part {
    width: 300px;
    height: 200px;
  }
  
  .red-part {
    width: 120px;
    height: 60px;
  }
}

/* Responsive Design - Petits mobiles */
@media screen and (max-width: 480px) {
  body {
    background-size: cover;
    background-position: center 60%;
  }
  
  .container {
    right: 15%;
    top: 8%;
  }
  
  .container-green {
    right: 10%;
    top: 22%;
  }
  
  .container-blue {
    right: 20%;
    top: 36%;
  }
  
  .container-orange {
    right: 5%;
    top: 36%;
  }
  
  .container-purple {
    left: 20%;
    top: 30%;
  }
  
  .container-red {
    left: 5%;
    top: 30%;
  }
  
  .pink-part, .green-part {
    width: 80px;
    height: 60px;
  }
  
  .blue-part {
    width: 70px;
    height: 50px;
  }
  
  .orange-part {
    width: 80px;
    height: 60px;
  }
  
  .purple-part {
    width: 250px;
    height: 150px;
  }
  
  .red-part {
    width: 100px;
    height: 50px;
  }
}


