:root {
  /* Palette Romantique */
  --love-primary: #ff2d55;       /* Rose vif */
  --love-secondary: #ff6b8b;     /* Rose clair */
  --love-dark: #d1003d;          /* Rouge foncé */
  --love-light: #fff0f5;         /* Rose très clair */
  --love-accent: #ff1493;        /* Rose profond */
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #e4e6eb;
  --gray-dark: #b0b3b8;
  --black: #1e1e1e;
}

/* Animations Clés */
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  40% { transform: scale(1); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes petals-fall {
  0% { 
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

/* Styles de Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

body {
  background-color: var(--love-light);
  color: var(--black);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* Éléments Romantiques */
.heart-animation {
  animation: heartbeat 1.5s infinite;
}

.heart-pulse {
  position: relative;
}

.heart-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--love-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}

/* Boutons Romantiques */
.btn-love {
  background: linear-gradient(135deg, var(--love-primary), var(--love-dark));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-love:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.4);
}

.btn-love:active {
  transform: translateY(1px);
}

.btn-love::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.3),
    rgba(255,255,255,0)
  );
  transform: rotate(30deg);
}

/* Effets de Pétales */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.petal {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
}

/* Transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overlay Romantique */
.love-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 45, 85, 0.1);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

/* Header & Footer (complément au template existant) */
.header {
  background: linear-gradient(to right, var(--love-primary), var(--love-accent));
  color: white;
}

.nav-item.active {
  color: var(--love-primary);
  font-weight: bold;
}

/* Effet de Match */
.match-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.match-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transform: scale(0.8);
  transition: all 0.3s;
}

.match-effect.show {
  opacity: 1;
  pointer-events: all;
}

.match-effect.show .match-content {
  transform: scale(1);
}

:root {
    --primary: #ff2d55;
    --secondary: #ff7b8b;
    --dark: #1e1e1e;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #e4e6eb;
    --dark-gray: #b0b3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icon {
    font-size: 1.2rem;
    color: var(--dark);
}

/* Stories */
.stories {
    background-color: var(--white);
    padding: 15px 10px;
    border-bottom: 1px solid var(--gray);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.stories::-webkit-scrollbar {
    display: none;
}

.story {
    display: inline-block;
    width: 80px;
    text-align: center;
    margin-right: 10px;
    position: relative;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 2px;
    background-color: var(--white);
}

.story-add {
    position: absolute;
    bottom: 0;
    right: 10px;
    background-color: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--white);
}

.story-username {
    font-size: 0.7rem;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Posts */
.posts {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
}

.post {
    background-color: var(--white);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gray);
    padding: 15px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-user {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-info h4 {
    font-size: 0.9rem;
}

.post-info p {
    font-size: 0.7rem;
    color: var(--dark-gray);
}

.post-more {
    color: var(--dark-gray);
}

.post-content {
    margin-bottom: 10px;
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 8px 0;
margin-bottom: 10px;
}

.post-action {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.post-action i {
    margin-right: 5px;
}

.post-liked {
    color: var(--primary);
}

.post-comments {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--gray);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.7rem;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 90;
}

/* Responsive */
@media (max-width: 500px) {
    body {
        height: 100vh;
        max-width: 100%;
    }
}

.auth-container {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo i {
  font-size: 3rem;
  color: var(--primary);
}

.auth-form {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-size: 1rem;
}

.btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--secondary);
}

.auth-links {
  margin-top: 20px;
  text-align: center;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-auth {
  margin-top: 30px;
  text-align: center;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.fb { background: #3b5998; }
.google { background: #db4437; }
.apple { background: #000; }

