/* =========================================
   1. STYLES GLOBAUX & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary-color: #0b8a53; /* Vert Émeraude AgriShop */
  --primary-dark: #044d2f;
  --light-green: #e6f7ef;
  --bg-color: #f4f6f8; /* Gris très clair pour le fond de l'app */
  --card-bg: #ffffff;
  --text-main: #1a202c;
  --text-muted: #718096;
  --border-radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #cbd5e0; /* Fond foncé sur Ordinateur */
  display: flex;
  justify-content: center;
}

/* Le "Téléphone" Virtuel */
#app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-color);
  box-shadow: 0 0 30px rgba(0,0,0,0.15);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 90px; /* Espace pour la barre du bas */
}

/* =========================================
   2. ANIMATIONS SEDUISANTES
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatElement {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* =========================================
   3. PAGE D'ACCUEIL (LANDING PAGE)
   ========================================= */
.landing-hero {
  height: 100vh;
  background-color: var(--primary-dark); 
  background-image: url('https://images.unsplash.com/photo-1592982537447-6f296c0d8f07?q=80&w=1000');
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(2, 60, 35, 0.85) 0%, rgba(11, 138, 83, 0.7) 100%);
  z-index: 1;
}
.landing-top, .hero-content, .hero-footer {
  position: relative;
  z-index: 2;
}
.landing-top { display: flex; justify-content: space-between; align-items: center; padding: 25px 20px; }
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 20px; animation: fadeInUp 0.8s ease-out forwards; }
.glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; padding: 30px 20px; width: 100%; text-align: center; }
.glass-panel h1 { font-size: 34px; font-weight: 900; margin-bottom: 15px; line-height: 1.1; text-transform: uppercase; }
.glass-panel p { font-size: 15px; font-weight: 300; margin-bottom: 30px; line-height: 1.5; }
.btn-start-massive { display: inline-block; background: var(--card-bg); color: var(--primary-color); font-size: 18px; font-weight: 800; padding: 18px 40px; border-radius: 40px; text-decoration: none; width: 100%; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.btn-start-massive:active { transform: scale(0.96); }

/* Section À Propos */
.about-section { padding: 50px 20px; background: white; }
.section-badge { color: var(--primary-color); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; display: block; text-align: center; margin-bottom: 10px; }
.about-title { color: var(--text-main); font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 35px; line-height: 1.2; }
.story-cards { display: flex; flex-direction: column; gap: 20px; }
.story-card { background: var(--bg-color); border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.story-img { width: 100%; height: 200px; object-fit: cover; }
.story-text { padding: 20px; }
.story-text h3 { font-size: 18px; font-weight: 800; color: var(--primary-color); margin-bottom: 8px; }
.story-text p { font-size: 14px; color: var(--text-muted); line-height: 1.5; font-weight: 400; }

/* RÉSEAUX SOCIAUX & FOOTER (Correction des icônes géantes intégrée) */
.social-section {
  padding: 50px 20px;
  background: white;
  text-align: center;
  border-top: 1px solid #edf2f7;
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
}
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--bg-color);
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icons img {
  width: 25px; /* On verrouille la taille de l'image */
  height: 25px;
  object-fit: contain;
}
.social-icons a:active {
  transform: scale(1.1) rotate(5deg);
  background: var(--light-green);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  text-align: left;
  margin-top: 30px;
  background: var(--bg-color);
  padding: 20px;
  border-radius: 16px;
}
.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '➔';
  color: var(--primary-color);
  font-size: 10px;
}

/* =========================================
   4. L'APPLICATION (PAGE SHOP) - MODE UBER EATS
   ========================================= */

/* Top Bar Blanche (Logo & Connexion) */
.top-header-white {
  background-color: var(--card-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.login-link { color: var(--primary-color); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--light-green); padding: 8px 15px; border-radius: 20px; }

/* Header Vert (Recherche & Filtres) */
.green-header {
  background-color: var(--primary-color);
  padding: 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 10px 20px rgba(11, 138, 83, 0.15);
}
.search-bar-modern {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.search-bar-modern input { border: none; background: transparent; width: 100%; outline: none; font-size: 15px; color: white; font-weight: 600; }
.search-bar-modern input::placeholder { color: rgba(255, 255, 255, 0.8); font-weight: 400; }

/* Les "Pilules" (Catégories) */
.pill-categories { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; }
.pill-categories::-webkit-scrollbar { display: none; }
.pill { background: rgba(255, 255, 255, 0.15); color: white; padding: 10px 20px; border-radius: 25px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: 0.3s; }
.pill.active { background: white; color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Live Notification Bar (AgriShop Live) */
.live-alert { background: #fff3cd; color: #856404; padding: 10px 20px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 15px 15px 0 15px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.pulse-dot { width: 8px; height: 8px; background: #ff3b30; border-radius: 50%; animation: pulseBadge 1s infinite; }

/* Grille de Produits (Le Catalogue) */
.content-area { padding: 20px 15px; animation: fadeInUp 0.5s ease-out forwards; }
.section-title { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Carte Produit Professionnelle */
.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}
.product-card:active { transform: scale(0.98); }
.product-img { width: 100%; height: 130px; border-radius: 12px; object-fit: cover; margin-bottom: 12px; background-color: #edf2f7; }
.product-badge { position: absolute; top: 20px; left: 20px; background: #ff3b30; color: white; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 8px; text-transform: uppercase; }
.product-title { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; line-height: 1.3; }
.product-shop { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.product-price { font-weight: 900; color: var(--primary-color); font-size: 16px; margin-bottom: 15px; }
.product-price .unit { font-weight: 500; font-size: 11px; color: var(--text-muted); }
.add-btn-full { background: var(--light-green); color: var(--primary-color); border: none; width: 100%; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s; }
.add-btn-full:active { background: var(--primary-color); color: white; }

/* =========================================
   5. BARRE DE NAVIGATION (BOTTOM NAV)
   ========================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 15px 0 20px 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  z-index: 1000;
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: #a0aec0; text-decoration: none; font-size: 11px; font-weight: 600; gap: 6px; position: relative; transition: 0.3s; }
.nav-item.active { color: var(--primary-color); }
.nav-icon { font-size: 24px; transition: transform 0.2s; }
.nav-item.active .nav-icon { transform: translateY(-3px); }
.cart-badge { position: absolute; top: -5px; right: 5px; background-color: #ff3b30; color: white; font-size: 10px; font-weight: bold; height: 18px; width: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; animation: pulseBadge 2s infinite; }