/* =========================================================
   💗 Site d'anniversaire — thème rose, doux & romantique 💗
   Palette & styles partagés par toutes les pages
   ========================================================= */

/* ---- Import de polices arrondies et élégantes ---- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Pacifico&family=Dancing+Script:wght@600;700&display=swap');

/* ---- Variables de couleurs (faciles à modifier) ---- */
:root {
  --rose-clair:   #ffe3ee;   /* rose pastel très doux */
  --rose-poudre:  #ffc7dd;   /* rose poudré */
  --rose-moyen:   #ff9ec7;   /* rose gourmand */
  --rose-fonce:   #e75a97;    /* petites touches de rose foncé */
  --rose-fonce-2: #c93f7d;
  --blanc:        #fffafc;
  --texte:        #7a3457;    /* texte prune doux, lisible sur rose */
  --ombre-rose:   rgba(231, 90, 151, 0.25);
}

/* ---- Réinitialisation douce ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  color: var(--texte);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow-x: hidden;
  position: relative;
  /* dégradé rose doux en fond */
  background: linear-gradient(160deg, #fff2f8 0%, #ffe3ee 45%, #ffd3e6 100%);
  /* animation d'apparition de la page */
  animation: pageFadeIn 0.9s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

/* =========================================================
   Décor flottant en arrière-plan (cœurs / étoiles / fleurs)
   ========================================================= */
.decor-flottant {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.flottant {
  position: absolute;
  bottom: -60px;
  font-size: 1.6rem;
  opacity: 0;
  animation: monterDoucement linear infinite;
  filter: drop-shadow(0 2px 4px var(--ombre-rose));
  will-change: transform, opacity;
}

@keyframes monterDoucement {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-115vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* =========================================================
   Carte centrale
   ========================================================= */
.carte {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  padding: 48px 34px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 22px 60px var(--ombre-rose),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: carteApparait 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes carteApparait {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* petites décorations dans les coins de la carte */
.carte::before,
.carte::after {
  content: "🎀";
  position: absolute;
  font-size: 1.8rem;
  animation: balancement 3.5s ease-in-out infinite;
}
.carte::before { top: -14px; left: 22px; }
.carte::after  { top: -14px; right: 22px; animation-delay: 0.8s; }

@keyframes balancement {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

/* =========================================================
   Titres & textes
   ========================================================= */
.titre-princesse {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--rose-fonce);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(231, 90, 151, 0.2);
  animation: pulseTendre 3s ease-in-out infinite;
}

@keyframes pulseTendre {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.titre-secondaire {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--rose-fonce);
  margin-bottom: 14px;
  line-height: 1.2;
}

.sous-texte {
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 30px;
  line-height: 1.6;
}

.mini-note {
  font-size: 0.92rem;
  color: var(--rose-fonce-2);
  opacity: 0.8;
  margin-top: 22px;
}

/* =========================================================
   Boutons roses
   ========================================================= */
.btn-rose {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 16px 38px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rose-moyen), var(--rose-fonce));
  box-shadow: 0 10px 24px var(--ombre-rose),
              inset 0 -3px 6px rgba(201, 63, 125, 0.35);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease, filter 0.28s ease;
  position: relative;
  overflow: hidden;
}

.btn-rose:hover,
.btn-rose:focus-visible {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 34px rgba(231, 90, 151, 0.4),
              inset 0 -3px 6px rgba(201, 63, 125, 0.35);
  filter: brightness(1.05);
  outline: none;
}

.btn-rose:active {
  transform: translateY(-1px) scale(1.02);
}

/* petit reflet brillant qui traverse le bouton au survol */
.btn-rose::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-rose:hover::after {
  left: 130%;
}

/* bouton secondaire plus doux */
.btn-doux {
  background: linear-gradient(135deg, #ffd9e8, var(--rose-poudre));
  color: var(--rose-fonce-2);
  box-shadow: 0 8px 18px var(--ombre-rose);
}

/* =========================================================
   Champ de saisie du code
   ========================================================= */
.zone-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.champ-code {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.4em;
  color: var(--rose-fonce);
  width: 100%;
  max-width: 320px;
  padding: 16px 20px;
  border: 2px solid var(--rose-poudre);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 3px 8px rgba(231, 90, 151, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  outline: none;
}

.champ-code::placeholder {
  color: #f0a9c6;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.champ-code:focus {
  border-color: var(--rose-fonce);
  box-shadow: 0 0 0 4px rgba(255, 158, 199, 0.35),
              inset 0 3px 8px rgba(231, 90, 151, 0.12);
  transform: scale(1.02);
}

/* petite secousse quand le code est faux */
.secouer {
  animation: secousse 0.5s ease;
}
@keyframes secousse {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-7px); }
  80%      { transform: translateX(7px); }
}

/* =========================================================
   Pavé numérique style déverrouillage de téléphone 📱
   ========================================================= */
.pave {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 6px;
}

/* Les petits points qui se remplissent */
.points-code {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.point {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rose-moyen);
  background: transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease, box-shadow 0.25s ease;
}

.point.rempli {
  background: linear-gradient(135deg, var(--rose-moyen), var(--rose-fonce));
  border-color: var(--rose-fonce);
  transform: scale(1.25);
  box-shadow: 0 4px 12px var(--ombre-rose);
}

/* La grille de chiffres */
.clavier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 300px;
}

.touche {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose-fonce);
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px var(--ombre-rose),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.touche:hover,
.touche:focus-visible {
  transform: translateY(-3px) scale(1.05);
  background: #fff;
  box-shadow: 0 12px 22px rgba(231, 90, 151, 0.35);
  outline: none;
}

.touche:active {
  transform: scale(0.92);
  background: linear-gradient(135deg, var(--rose-poudre), var(--rose-moyen));
  color: #fff;
}

/* touches spéciales (vide + effacer) plus discrètes */
.touche.vide {
  background: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.touche.effacer {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
}

/* petite secousse du pavé quand le code est faux */
.pave.secouer {
  animation: secousse 0.5s ease;
}

/* =========================================================
   Chat au milieu de l'écran (par-dessus tout) à chaque erreur
   ========================================================= */
.overlay-chat {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 220, 235, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fondApparait 0.3s ease both;
}

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

.overlay-chat .bloc-chat {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid #fff;
  border-radius: 32px;
  padding: 28px 30px;
  box-shadow: 0 24px 60px var(--ombre-rose);
  max-width: 340px;
  width: 100%;
}

/* =========================================================
   Zone chat (erreur) & succès
   ========================================================= */
.zone-message {
  margin-top: 26px;
  min-height: 10px;
}

.bloc-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: popChat 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popChat {
  0%   { opacity: 0; transform: scale(0.4) translateY(20px); }
  60%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.image-chat {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 26px;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px var(--ombre-rose);
  background: var(--rose-clair);
  animation: rebondChat 2.4s ease-in-out infinite;
}

@keyframes rebondChat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-10px) rotate(1.5deg); }
}

.chat-emoji-secours {
  font-size: 6rem;
  line-height: 1;
  animation: rebondChat 2.4s ease-in-out infinite;
}

.texte-erreur {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--rose-fonce);
}

.texte-erreur-2 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--texte);
}

/* Bloc succès */
.bloc-succes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: popChat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.texte-succes {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--rose-fonce);
  animation: pulseTendre 1.6s ease-in-out infinite;
}

/* =========================================================
   Lien retour discret
   ========================================================= */
.lien-retour {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-fonce-2);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lien-retour:hover {
  opacity: 1;
  transform: translateX(-3px);
}

/* =========================================================
   Confettis
   ========================================================= */
.confetti {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 12px;
  z-index: 999;
  pointer-events: none;
  will-change: transform, opacity;
}

/* =========================================================
   Page surprise — message final
   ========================================================= */
.message-final {
  font-size: clamp(1.05rem, 3.4vw, 1.28rem);
  line-height: 1.9;
  font-weight: 500;
  color: var(--texte);
  margin: 10px 0 4px;
  white-space: pre-line;
}

.signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose-fonce);
  margin-top: 20px;
}

/* =========================================================
   Page surprise — grille de 4 boutons cliquables
   ========================================================= */
.grille-surprises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 8px 0 6px;
}

.btn-surprise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 26px;
  padding: 22px 12px;
  color: var(--rose-fonce);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px var(--ombre-rose),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.chat-btn {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px var(--ombre-rose);
  transition: transform 0.25s ease;
}

.btn-surprise:hover .chat-btn {
  transform: scale(1.06) rotate(-2deg);
}

.btn-surprise span {
  font-size: 1rem;
  font-weight: 700;
}

.btn-surprise:hover,
.btn-surprise:focus-visible {
  transform: translateY(-5px) scale(1.04);
  background: #fff;
  box-shadow: 0 18px 32px rgba(231, 90, 151, 0.4);
  outline: none;
}

.btn-surprise:active {
  transform: translateY(-1px) scale(0.98);
}

/* Fenêtre (overlay) qui montre la surprise choisie */
.overlay-surprise {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(231, 90, 151, 0.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fondApparait 0.3s ease both;
}
.overlay-surprise[hidden] { display: none; }

.carte-surprise {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid #fff;
  border-radius: 32px;
  padding: 40px 30px 34px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 26px 64px var(--ombre-rose);
  animation: popChat 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.fermer-surprise {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-moyen), var(--rose-fonce));
  box-shadow: 0 6px 14px var(--ombre-rose);
  transition: transform 0.2s ease;
}
.fermer-surprise:hover { transform: scale(1.12) rotate(90deg); }

/* =========================================================
   QCM de la page cadeau 🎁
   ========================================================= */
.qcm-progression {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rose-fonce-2);
  opacity: 0.85;
  margin-bottom: 12px;
}

.qcm-question {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--rose-fonce);
  line-height: 1.25;
  margin-bottom: 22px;
}

.qcm-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qcm-option {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texte);
  cursor: pointer;
  border: 2px solid var(--rose-poudre);
  border-radius: 20px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px var(--ombre-rose);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.qcm-option:hover,
.qcm-option:focus-visible {
  transform: translateY(-3px) scale(1.02);
  background: #fff;
  border-color: var(--rose-moyen);
  box-shadow: 0 12px 22px rgba(231, 90, 151, 0.3);
  outline: none;
}

.qcm-option.juste {
  background: linear-gradient(135deg, #b6e8c0, #8fd9a3);
  border-color: #7ccf95;
  color: #2f7d4f;
}

.qcm-option.faux {
  background: linear-gradient(135deg, #ffb3c8, var(--rose-moyen));
  border-color: var(--rose-fonce);
  color: #fff;
}

.qcm-reaction {
  margin-top: 20px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  min-height: 10px;
}
.qcm-reaction .emoji { font-size: 2.4rem; display: block; margin-bottom: 4px; }

/* La carte de l'indice final */
.bloc-indice {
  animation: popChat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.bloc-indice .indice-texte {
  font-size: clamp(1.05rem, 3.4vw, 1.28rem);
  line-height: 1.8;
  font-weight: 500;
  color: var(--texte);
  white-space: pre-line;
  margin: 8px 0;
}

/* =========================================================
   Galerie de souvenirs — photos format polaroïd 📸
   ========================================================= */
.galerie-polaroid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin: 18px 0 8px;
}

.polaroid {
  background: #fff;
  padding: 14px 14px 18px;
  border-radius: 6px;
  box-shadow: 0 14px 30px var(--ombre-rose);
  width: 220px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  /* chaque polaroïd est légèrement incliné pour l'effet "posé à la main" */
  transform: rotate(var(--inclinaison, -3deg));
}

.polaroid:nth-child(even) { --inclinaison: 3deg; }
.polaroid:nth-child(3n)   { --inclinaison: -5deg; }
.polaroid:nth-child(4n)   { --inclinaison: 4deg; }

.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  box-shadow: 0 22px 44px rgba(231, 90, 151, 0.4);
  z-index: 2;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  background: var(--rose-clair);
  display: block;
}

.polaroid .legende {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--texte);
  margin-top: 12px;
  line-height: 1.2;
}

/* =========================================================
   Page souvenirs — collage / scrapbook 📸💕
   ========================================================= */

/* Le collage se répartit en colonnes (effet "posé à la main") */
.collage {
  columns: 3 240px;
  column-gap: 24px;
  margin: 22px auto 8px;
  max-width: 100%;
}
@media (max-width: 760px) { .collage { columns: 2 150px; column-gap: 16px; } }
@media (max-width: 440px) { .collage { columns: 1; } }

.collage > * {
  break-inside: avoid;
  margin: 0 0 24px;
  display: block;
}

/* petites rotations variées pour le côté "collé au hasard" */
.collage > *:nth-child(4n)   { --rot:  2.5deg; }
.collage > *:nth-child(4n+1) { --rot: -3deg; }
.collage > *:nth-child(4n+2) { --rot:  1.5deg; }
.collage > *:nth-child(4n+3) { --rot: -1.5deg; }

/* Polaroïd dans le collage : prend toute la largeur de la colonne */
.collage .polaroid {
  width: auto;
  transform: rotate(var(--rot, -2deg));
}

/* --- Cadre façon timbre rose à bords festonnés --- */
.timbre {
  --r: 9px;                 /* taille des festons */
  padding: 15px;
  background: linear-gradient(135deg, #ffa9cd, #f77fb0);
  transform: rotate(var(--rot, -2deg));
  filter: drop-shadow(0 12px 22px rgba(231, 90, 151, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-mask:
    radial-gradient(var(--r) at 50% 0,    #0000 98%, #000) 50% 0    / calc(2*var(--r)) 100%,
    radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2*var(--r)) 100%,
    radial-gradient(var(--r) at 0 50%,    #0000 98%, #000) 0 50%    / 100% calc(2*var(--r)),
    radial-gradient(var(--r) at 100% 50%, #0000 98%, #000) 100% 50% / 100% calc(2*var(--r));
  -webkit-mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(var(--r) at 50% 0,    #0000 98%, #000) 50% 0    / calc(2*var(--r)) 100%,
    radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2*var(--r)) 100%,
    radial-gradient(var(--r) at 0 50%,    #0000 98%, #000) 0 50%    / 100% calc(2*var(--r)),
    radial-gradient(var(--r) at 100% 50%, #0000 98%, #000) 100% 50% / 100% calc(2*var(--r));
          mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
          mask-composite: intersect;
}
.timbre:hover { transform: rotate(0deg) scale(1.05); }

.timbre img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 4px solid #fff;
  background: var(--rose-clair);
}

/* --- Notes manuscrites éparpillées --- */
.note {
  font-family: 'Dancing Script', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rose-fonce);
  padding: 6px 12px;
  transform: rotate(var(--rot, -2deg));
}
.note.rouge  { color: #e0245e; }
.note.grande { font-size: 1.9rem; }

/* --- Petits stickers (images de chats déco) --- */
.sticker {
  width: 90px;
  transform: rotate(var(--rot, -4deg));
  filter: drop-shadow(0 6px 10px var(--ombre-rose));
}

/* Titre manuscrit d'intro du collage */
.intro-souvenir {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--rose-fonce);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* =========================================================
   Responsive — mobile first, ajustements écran plus petit
   ========================================================= */
@media (max-width: 480px) {
  .carte { padding: 40px 22px; border-radius: 30px; }
  .image-chat { width: 160px; height: 160px; }
  .btn-rose { padding: 15px 30px; }
}

/* Respect des préférences de réduction d'animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
