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

@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic|Open+Sans+Condensed:700");

:root{
  --sdg-green: #9ac000;
  --sdg-red: #DA2713;
  --sdg-yellow: #DDA63B;
  --sdg-blue: #2DAAE4;
  --sdg-purple: #C4376B;

  --bg: #f2f5f3;
  --card: #ffffff;
  --card-alt: #f7f9f8;
  --muted: #6b7770;
  --accent: var(--sdg-green);
  --accent-strong: #698300;
  --accent-light: #c1edbb;

  --nav: rgba(255, 255, 255, 0.95);
  --radius: 8px;
  --glass: rgba(255, 255, 255, 0.85);
  --border-color: #e7eae8;
  --text: #6b7770;
  --text-strong: #333333;
}

/* Styles généraux */
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 400;
  line-height: 2em;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

b, strong {
  font-weight: 700;
  color: var(--text-strong);
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.light {
  background-color: var(--bg);
  color: var(--text);
}

.dark {
  background-color: #353c37;
  color: #f2f5f3;
}

/* Navigation */
nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: var(--nav);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 0.35em 0.85em rgba(0, 0, 0, 0.10);
  border-bottom: solid 2px var(--border-color);
  height: 3.25em;
  line-height: 3.25em;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 8px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text);
  border-radius: 6px;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight:700;
  text-transform: uppercase;
  font-size: 20px;
  min-width: 2.6em;
  text-align: center;
  transition: all 0.2s ease;
}

nav ul li:hover {
  background: #4d4d4d;
  color: #fff;
}

nav ul li.active {
  background: var(--accent);
  color: #fff;
}

nav button, nav select {
  padding: 10px 12px;
  margin-left: 8px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

nav button:hover, nav select:hover {
  background: var(--accent-light);
  color: var(--text-strong);
}

nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1em;
  line-height: 1;
  -moz-transition: background-color .2s ease-in-out;
  -webkit-transition: background-color .2s ease-in-out;
  -ms-transition: background-color .2s ease-in-out;
  transition: background-color .2s ease-in-out;
}

nav .nav-action:hover {
  background: var(--accent-light);
  color: var(--text-strong);
}

nav #theme-toggle {
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border-radius: 6px;
}

/* Conteneur principal */
.container {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 16px;
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px 0;
  padding: 10px 12px;
  border: solid 2px var(--border-color);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
}

.tab-header h2 {
  margin: 0;
}

#tools-content {
  flex: 1;
}

.help-text {
  margin-bottom: 20px;
  font-style: italic;
}

.is-hidden {
  display: none;
}

.action-row {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  background: #4d4d4d;
  color: #fff;
  border: 0;
  line-height: 1em;
  border-radius: 8px;
  outline: 0;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
  font-size: 1.05em;
  padding: 0.85em 1.35em;
}

.btn:hover {
  background: #ccd5d0;
  color: var(--text-strong);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn.btn-primary:hover {
  background: var(--accent-light);
  color: var(--text-strong);
}

.report-loader {
  padding: 20px;
  text-align: center;
  font-size: 1.1em;
  border: solid 2px var(--border-color);
  border-radius: 8px;
  background: var(--card);
}

/* Filter bar styling (generic for all filter bars) */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(61, 40, 23, 0.05);
  margin-bottom: 20px;
}

.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.filter-icon {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.filter-input,
.filter-select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.filter-btn.reset-filter {
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.filter-btn.reset-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 80, 22, 0.15);
}

@media (max-width: 768px) {
  .filter-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .filter-input,
  .filter-select,
  .filter-btn {
    min-height: 44px;
  }
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.15em 2.25em rgba(0, 0, 0, 0.12);
  background-color: var(--card-alt);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  margin: 5px;
}

.card .card p.remarks, .card p.species, .card p.sowing-months {
  margin: 0 10px 10px;
  text-align: center;
  color: #292929;
}

.card p.remarks, .card p.sowing-months {
  max-height: 60px;
  overflow-y: auto;
}

/* vCard pour ajouter un nouveau lieu ou graine */
.add-card {
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  color:var(--accent);
  border:2px dashed rgba(34,197,94,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(245,250,246,0.7));
}

.add-card:hover {
  transform: scale(1.05);
}

.add-card span {
  font-size: 48px;
  color: #e74c3c;
}

/* Modale */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--card);
  padding: 18px;
  border-radius: 8px;
  width: 94%;
  max-width: 620px;
  position: relative;
  border: 1px solid var(--border-color);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-bottom: 5px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  margin-bottom: 15px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.modal-content select[multiple] {
  height: 120px;
}

.modal-content textarea {
  resize: vertical;
}

.modal-content #surface-container {
  margin-bottom: 15px;
}

.modal-content button {
  padding: 12px 14px;
  background: linear-gradient(90deg,var(--accent),var(--accent-strong));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.modal-content button:hover {
  transform: translateY(-1px);
}

.delete-btn {
  background-color: #e74c3c !important;
  margin-top: 10px;
}

.delete-btn:hover {
  background-color: #c0392b !important;
}

/* Barre de recherche */
 .search-filter {
  margin-bottom: 20px;
 }

 .search-filter input {
  padding: 10px 12px;
  width: 100%;
  border: 2px solid var(--border-color);
  border-radius: 8px;
 }

/* Responsive */
.mobile-nav-toggle{display:none}
@media (max-width: 900px) {
  nav{padding:0 12px}
  nav ul{display:flex;gap:6px;overflow:auto}
  .container{padding:0 12px}
  .card img{height:140px}
  .mobile-nav-toggle{display:block}
  .tab-header{flex-direction:column;align-items:stretch}
}
.search-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.search-filter input,
.search-filter select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.search-filter input {
  flex: 1;
}

.search-filter select {
  width: 150px;
}

/* Styles pour la modale compacte */
.modal-content {
  max-height: 80vh; /* Limite à 80% de la hauteur de l'écran */
  overflow-y: auto; /* Scroll si contenu trop long */
  padding: 20px;
  box-sizing: border-box;
}

/* Styles pour la modale compacte */
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Styles pour la sélection des mois */
.month-selection {
  margin-bottom: 15px;
}

.month-summary {
  display: block;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--muted);
}

.month-summary:hover {
  background: linear-gradient(135deg, var(--card-alt) 0%, var(--card) 100%);
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
}

/* Month circle grid - Option 1: Circles with initials */
.month-circle-grid {
  margin-top: 12px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-items: center;
}

.month-circle-grid[style*="display: none"] {
  display: none !important;
}

/* Individual month circle button */
.month-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  background-color: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  flex-shrink: 0;
}

.month-circle:hover {
  background-color: #ffffff;
  border-color: #999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.08);
  color: #333;
}

/* Selected state */
.month-circle.selected {
  background: linear-gradient(135deg, var(--sdg-green) 0%, #009640 100%);
  color: #ffffff;
  border-color: #ff0000;
  box-shadow: 0 4px 12px rgba(0, 176, 80, 0.4);
  transform: scale(1.1);
  font-weight: 700;
}

.month-circle.selected:hover {
  background: linear-gradient(135deg, #009640 0%, var(--sdg-green) 100%);
  box-shadow: 0 8px 20px rgba(0, 176, 80, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.month-circle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Keep old month-buttons/month-button for backwards compatibility */
.month-buttons {
  margin-top: 12px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-buttons[style*="display: none"] {
  display: none !important;
}

.month-button {
  padding: 12px 8px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.month-button:hover {
  background-color: #ffffff;
  border-color: #bbb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  color: #333;
}

.month-button.selected {
  background: linear-gradient(135deg, var(--sdg-green) 0%, #009640 100%);
  color: #ffffff !important;
  border-color: #004d2b !important;
  box-shadow: 0 8px 20px rgba(0, 176, 80, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  font-weight: 700;
  transform: translateY(-2px);
}

.month-button.selected:hover {
  background: linear-gradient(135deg, #009640 0%, var(--sdg-green) 100%);
  box-shadow: 0 10px 24px rgba(0, 176, 80, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.month-button:focus {
  outline: none;
  border-color: var(--sdg-green);
  box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Styles pour les sélecteurs de plage */
.range-selection {
  margin-bottom: 15px;
}

.range-summary {
  display: block;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.range-summary:hover {
  background-color: #e0e0e0;
}

.range-selectors {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-selectors select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.range-selectors span {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
  .month-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .range-selectors {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 15px;
  }
}
/* Responsive pour petits écrans */
@media (max-width: 600px) {
  .month-buttons {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
  }

  .modal-content {
    padding: 15px;
  }
}

/* Responsive pour petits écrans */

/* Styles généraux pour la grille de cartes */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

/* Styles pour toutes les vCards */
.vcard {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 4px 5px rgba(209, 212, 208, 0.81);
  transition: transform 0.2s;
}

.vcard:hover {
  transform: scale(1.05);
}

.vcard img {
  max-width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 0px;
}

.vcard h3 {
  font-size: 18px;
  margin: 5px 0;
  color: #333;
}

.vcard p {
  font-size: 14px;
  margin: 5px 0;
  color: #555;
}



/* Style spécifique pour la carte d'ajout */
.vcard.add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #4CAF50;
  border: 2px dashed #4CAF50;
  background-color: #f9f9f9;
}

.vcard.add-card:hover {
  background-color: #e8f5e9;
  border: 2px dashed #4CAF50;

}
/* Styles pour la modale */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-content .close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.modal-content .close:hover {
  color: #f44336;
}

.modal-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content button {
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.modal-content button:hover {
  background-color: #45a049;
}

.modal-content button.delete-btn {
  background-color: #f44336;
}

.modal-content button.delete-btn:hover {
  background-color: #d32f2f;
}

.search-filter {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-filter input,
.search-filter select {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  background: var(--card);
  color: var(--muted);
}

.search-filter input:focus,
.search-filter select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Styles pour le texte d'aide */
.help-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}

/* Styles pour le thème sombre */
body.dark .vcard {
  background-color: #333;
  border-color: #444;
}

body.dark .vcard h3,
body.dark .vcard p strong {
  color: #fff;
}

body.dark .vcard p {
  color: #bbb;
}

body.dark .vcard.add-card {
  background-color: #444;
  border-color: #4CAF50;
}

body.dark .vcard.add-card:hover {
  background-color: #555;
}

body.dark .modal-content {
  background-color: #333;
}

body.dark .modal-content h2,
body.dark .modal-content label,
body.dark .modal-content .close {
  color: #fff;
}

body.dark .modal-content input,
body.dark .modal-content select,
body.dark .modal-content textarea {
  background-color: #444;
  border-color: #555;
  color: #fff;
}

body.dark .modal-content input:focus,
body.dark .modal-content select:focus,
body.dark .modal-content textarea:focus {
  border-color: #4CAF50;
}

body.dark .help-text {
  color: #bbb;
}

body.dark nav {
  background-color: #222;
}

body.dark nav ul li {
  color: #ddd;
}

body.dark nav ul li.active {
  background-color: #4CAF50;
}

body.dark nav ul li:hover {
  background-color: #333;
}

#culture-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 1000px; /* Ajusté pour plus d'espace */
}

.seed-address-filters,
.category-filters,
.month-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.month-filter {
  font-size: 12px;
  padding: 4px 8px;
}

.filter-select {
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: #4caf50;
  outline: none;
}

.filter-select option {
  padding: 6px;
}

#harvest-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 1000px; /* Pour l’espace */
}

.culture-address-filtres,
.category-filtres,
.month-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vcard.culture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 200px;
  margin: 10px;
  background-color: #fff;
}

.vcard-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 5px;
}

.vcard-date, .vcard-address, .vcard-location {
  color: #888;
  font-size: 0.9em;
  text-align: left;
}

.vcard-address {
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
}

.vcard-age {
  font-weight: bold;
  color: #000;
  font-size: 1em;
  text-align: right;
}

.vcard-image {
  max-width: 100%;
  height: 100px;
  object-fit: cover;
  margin: 10px 0;
}

.vcard-plant-name {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 5px;
}

.vcard-details {
  font-size: 1em;
  text-align: center;
  margin: 5px 0;
}

.vcard-location {
  font-size: 0.8em;
  text-align: center;
  margin: 5px 0;
}

.vcard .alert {
  color: #d32f2f;
  font-size: 0.9em;
  text-align: center;
  margin: 5px 0;
}

.vcard.add-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  cursor: pointer;
}

.vcard.add-card span {
  font-size: 1.2em;
  color: #555;
}

.modal-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

#culture-form select,
#culture-form input,
#culture-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-select {
  width: 40%;
}

.inline-input {
  width: 60%;
}

#culture-form button {
  padding: 10px;
  margin: 5px;
}
.vcard-total-quantity {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin: 5px 0;
}

/* Footer styles */
.app-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  margin-top:18px;
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(61, 40, 23, 0.06);
  font-size: 13px;
  color: var(--muted);
}

.app-footer .footer-right{display:flex;align-items:center;gap:10px}
.app-footer button#theme-toggle{
  font-size:20px;padding:8px 10px;border-radius:10px;border:1px solid var(--border-color);background:var(--card);cursor:pointer;transition:all 0.2s
}
.app-footer button#theme-toggle:hover{background:var(--accent-light);border-color:var(--accent)}
.app-footer select#language-select{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border-color);
  background:var(--card);
  color:var(--muted);
  font-weight:600;
  cursor:pointer
}

@media(max-width:600px){
  .app-footer{flex-direction:column;align-items:stretch;text-align:center}
  .app-footer .footer-right{justify-content:center}
}

.annuel {
  width: 100%;
  height: 400px;
  margin-top: 20px;
}

/* ==================== ADMIN STYLES ==================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.admin-header h3 {
  margin: 0;
  color: var(--accent);
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.admin-user-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 16px;
}

.user-email {
  color: var(--muted);
  font-size: 14px;
}

.user-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.user-role {
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.user-role.admin {
  background: rgba(218, 39, 19, 0.1);
  color: var(--sdg-red);
}

.user-role.user {
  background: rgba(154, 192, 0, 0.1);
  color: var(--accent);
}

.user-date {
  color: var(--muted);
}

.user-actions {
  display: flex;
  gap: 8px;
}

.btn-delete-user {
  padding: 8px 12px;
  border: none;
  background: rgba(218, 39, 19, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-delete-user:hover {
  background: var(--sdg-red);
  transform: scale(1.1);
}

.current-user-badge {
  padding: 6px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
}

/* Modal Admin */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: var(--accent);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

.admin-form .form-group input,
.admin-form .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(154, 192, 0, 0.3);
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--card-alt);
  color: var(--muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.btn-danger {
  padding: 12px 24px;
  background: var(--sdg-red);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.warning-text {
  padding: 12px;
  background: rgba(218, 39, 19, 0.1);
  border-left: 4px solid var(--sdg-red);
  border-radius: 4px;
  color: var(--sdg-red);
  font-size: 14px;
  margin: 10px 0;
}

.error-message {
  color: var(--sdg-red);
  font-size: 14px;
  margin-top: 10px;
}

.empty-message, .loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .admin-user-card {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .user-info {
    flex-direction: column;
  }
  
  .user-meta {
    justify-content: center;
  }
}