/* Fond général */
body {
  margin: 0;
  font-family: "Georgia", serif;
  background: linear-gradient(180deg, #fff6fb, #f0f4ff);
  color: #5a5a6a;
  overflow-x: hidden;
}

/* Petits coeurs flottants */
body::after {
  content: "♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡";
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: rgba(255, 170, 210, 0.25);
  font-size: 18px;
  pointer-events: none;
}

/* Header */
header {
  text-align: center;
  padding: 50px 20px 30px 20px;
}

h1 {
  font-size: 42px;
  color: #7f8fe8;
  letter-spacing: 2px;
}

.subtitle {
  color: #d79ac6;
  font-style: italic;
  margin-top: 8px;
}

/* Navigation */
nav {
  text-align: center;
  margin-bottom: 25px;
}

nav a {
  display: inline-block;
  margin: 6px 10px;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #6f80e6;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 6px rgba(200,200,255,0.3);
  transition: 0.2s;
}

nav a:hover {
  background: #ffdff2;
  color: #ff8ccf;
  transform: translateY(-1px);
}

/* Main */
main {
  max-width: 880px;
  margin: auto;
  padding: 20px;
}

/* Cartes */
.card {
  background: rgba(255,255,255,0.75);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 4px 12px rgba(150,160,255,0.12),
    0 0 0 1px rgba(255,255,255,0.4) inset;
  position: relative;
}

/* Petit symbole mignon sur les cartes */
.card::before {
  content: "✧";
  position: absolute;
  top: 8px;
  right: 12px;
  color: #ffc6e6;
}

/* Bouton doux */
button {
  background: linear-gradient(90deg, #e2e8ff, #ffd9ec);
  border: none;
  padding: 9px 15px;
  border-radius: 20px;
  color: #6b6b8f;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255,150,210,0.3);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(180,180,255,0.2);
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Viewer image */
#viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(80,80,120,0.35);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

#viewer img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255,200,240,0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: 25px;
  font-size: 13px;
  color: #a0a0c0;
}

/* =========================
   ☁️ FOND NUAGES ANIMÉS
   ========================= */

.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url("https://png.pngtree.com/recommend-works/png-clipart/20240607/ourlarge/pngtree-anime-cloud-center-simple-background-png-image_12633536.png") repeat-x;
  opacity: 0.25;
  animation: moveClouds 120s linear infinite;
  z-index: -2;
}

@keyframes moveClouds {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================
   ✨ ÉTOILES SCINTILLANTES
   ========================= */

.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.2); }
}

/* =========================
   💖 CURSEUR KAWAII
   ========================= */

body {
  cursor: url("https://cur.cursors-4u.net/cursors/cur-9/cur817.cur"), auto;
}

.heart {
  position: fixed;
  font-size: 14px;
  pointer-events: none;
  animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-20px) scale(1.4);
    opacity: 0;
  }
}