@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f7f2;
  --panel: #ffffff;
  --panel-strong: #eef3e8;
  --muted: #4d5a4f;
  --fg: #102214;
  --brand: #1f7a45;
  --brand-2: #155f34;
  --ring: #d6decf;
  --shadow: 0 26px 70px rgba(21, 95, 52, 0.16);
  --radius-lg: 18px;
  --radius-sm: 12px;
  --gradient: linear-gradient(120deg, #1f7a45 0%, #1b6b3c 70%, #155f34 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

.ribbon {
  background: #fdfdfb;
  color: #0f2413;
  padding: 14px 22px;
  box-shadow: 0 1px 0 #e0e6da;
}

.ribbon-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(16, 34, 20, 0.12);
  background: #ffffff;
  object-fit: cover;
}

.brand-subline {
  opacity: 0.9;
  font-weight: 600;
  color: #3f4c42;
}

.auth-shell {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 48px 16px 56px;
  position: relative;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 32% 32%, #4caf501a, transparent 52%),
    radial-gradient(circle at 70% 70%, #1f7a4515, transparent 52%);
  filter: blur(18px);
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(21, 95, 52, 0.12);
  padding: 30px;
  border: 1px solid #e3e9dc;
}

.auth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.auth-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

.auth-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

form label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

form input,
form select {
  display: block;
  /* width: 100%; */
  padding: 22px 16px;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--ring);
  background: #f9faf6;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 69, 0.18);
  background: #ffffff;
}

form input::placeholder {
  color: #8a958b;
}

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

.form-large label {
  font-size: 1.05rem;
}

.form-large input {
  font-size: 1.05rem;
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  font-weight: 700;
  color: var(--fg);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 16px;
  border-radius: 14px;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31, 122, 69, 0.25);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  margin-top: 6px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(3, 105, 161, 0.35);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-inline {
  width: auto;
  min-width: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.btn-secondary {
  background: #0f172a;
  box-shadow: none;
}

.message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: none;
  font-weight: 600;
}

.message.success {
  display: block;
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.message.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 700;
}

.app-header {
  background: var(--gradient);
  color: #f8fafc;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.app-header h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffffff33;
  background: #ffffff15;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.mini-btn.danger {
  background: #ef4444;
  border-color: #ef4444;
}

.mini-btn.light {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.25);
}

.tabbed-card {
  padding: 14px;
}

.tabbed-card .tabs {
  margin: 0;
}

.tab-panels {
  margin-top: 10px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel .card-grid {
  margin-top: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.message-inline {
  min-height: 20px;
  font-weight: 700;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--ring);
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  background: #f8fafc;
}

tr:last-child td {
  border-bottom: none;
}

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.role-admin {
  background: #fee2e2;
  color: #b91c1c;
}

.role-user {
  background: #dcfce7;
  color: #166534;
}

.actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.user-meta img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #ffffff44;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.pill.success {
  background: #dcfce7;
  color: #166534;
}

.pill.warning {
  background: #fef9c3;
  color: #854d0e;
}

code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 8px;
}

.account-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  align-items: start;
}

.account-nav {
  background: var(--panel);
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 34, 20, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-nav button {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f9faf6;
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
}

.account-nav button.active {
  background: #e8f3eb;
  border-color: #d6decf;
  color: #1f7a45;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d6decf;
  background: #f9faf6;
  cursor: pointer;
  font-weight: 700;
  justify-content: flex-start;
  text-align: left;
  width: auto;
}

.category-chip-vertical {
  width: 100%;
  /* justify-content: flex-start; */
}

.category-chip input[type="checkbox"],
.category-chip input[type="radio"] {
  margin: 0 8px 0 0;
}

.category-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}

.category-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcategory-panel {
  min-height: 160px;
}

.split-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.panel-soft {
  background: #f9faf6;
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  padding: 14px;
}

.production-list {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 10px;
}

.production-list .category-chip {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
}

.inline-pair {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.subcategory-block {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e3e9dc;
  background: #fdfdfb;
}

.stepper {
  display: flex;
  gap: 6px;
  margin: 12px 0 18px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6decf;
}

.step-dot.active {
  background: #1f7a45;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.wizard-nav .btn {
  width: 50%;
}

.btn.danger {
  background: #b91c1c;
  box-shadow: none;
}

.btn.danger:hover {
  background: #991b1b;
}

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

.btn-inline.danger {
  width: auto;
}

.step-title {
  margin: 0 0 6px;
}

.step-description {
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .auth-card {
    padding: 22px;
  }

  .auth-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    font-size: 0.9rem;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }
}

/* Tableau de bord agri */
.app-hero {
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e3e9dc;
  margin-bottom: 18px;
}

.app-hero h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.app-hero p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card-compact {
  background: var(--panel);
  border: 1px solid #e3e9dc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(16, 34, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-wide {
  grid-column: 1 / -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f3eb;
  color: #1f7a45;
  font-weight: 700;
  font-size: 0.9rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1f7a45;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-weight: 800;
  color: var(--fg);
}

.meteo-embed {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.meteo-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #1f7a45 0%, #155f34 90%);
  color: #ffffff;
  padding: 16px 18px;
}

.meteo-embed-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meteo-embed-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.meteo-embed-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.meteo-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #fdfdfb;
}

.meteo-embed-empty {
  text-align: center;
  color: var(--muted);
  border: 1px dashed #d6decf;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.meteo-site-card {
  background: #ffffff;
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(16, 34, 20, 0.08);
  overflow: hidden;
}

.meteo-site-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 10px;
}

.meteo-site-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.meteo-site-location {
  color: var(--muted);
  font-weight: 700;
}

.meteo-site-communes {
  padding: 0 12px 10px;
  color: var(--muted);
}

.meteo-mini-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid #e3e9dc;
  border-bottom: 1px solid #e3e9dc;
}

.meteo-mini-day {
  text-align: center;
  padding: 12px 8px;
  border-left: 1px solid #e3e9dc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meteo-mini-day:first-child {
  border-left: none;
}

.meteo-mini-icon {
  font-size: 1.3rem;
}

.meteo-mini-temp {
  font-weight: 800;
}

.meteo-site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9faf6;
  flex-wrap: wrap;
}

.meteo-site-note {
  padding: 10px 12px;
  color: var(--muted);
  background: #fdfdfb;
}

.meteo-concept-body {
  padding: 14px;
  background: #fdfdfb;
}

.meteo-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mc-day {
  border: 1px solid #e3e9dc;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 34, 20, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-day-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
}

.mc-icon {
  font-size: 1.3rem;
}

.mc-temp {
  font-weight: 800;
}

#user-meteo {
  display: contents;
}

.locked-card {
  position: relative;
  overflow: hidden;
}

.locked-card .meteo-mini-forecast,
.locked-card .meteo-site-top,
.locked-card .meteo-site-note,
.locked-card .meteo-site-location,
.locked-card .meteo-site-name {
  filter: blur(1px);
  opacity: 0.6;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  z-index: 2;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  padding: 12px;
  background: #f9faf6;
  box-shadow: 0 10px 24px rgba(16, 34, 20, 0.06);
}

.news-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-item-title {
  font-weight: 800;
  margin: 6px 0 4px;
}

.news-item-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.news-pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 800;
  font-size: 0.85rem;
}

.meteo-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.meteo-hourly {
  margin-top: 14px;
  border: 1px solid #e3e9dc;
  border-radius: 12px;
  background: #fdfdfb;
  padding: 12px;
}

.meteo-hourly-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.meteo-hourly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.meteo-hour-card {
  border: 1px solid #e3e9dc;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(16, 34, 20, 0.06);
}

.meteo-hour-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.meteo-hour-icon {
  font-size: 1.2rem;
}

.meteo-hour-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  padding: 18px 0;
  text-align: center;
  color: #4d5a4f;
  font-weight: 600;
  border-top: 1px solid #e3e9dc;
}

/* Tableau de bord admin */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

.app-main {
  min-width: 0;
}

.side-nav {
  position: sticky;
  top: 12px;
  align-self: start;
  background: var(--panel);
  border: 1px solid #e3e9dc;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(16, 34, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-title {
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}

.side-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.side-link:hover {
  background: #f3f6f1;
  border-color: #e3e9dc;
}

.side-link.active {
  background: #e8f3eb;
  border-color: #d6decf;
  color: #1f7a45;
}

.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-row input,
.filters-row select {
  padding: 12px 12px;
  margin: 0;
  min-width: 200px;
  background: #f9faf6;
}

.filters-row button {
  margin: 0;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-body {
  margin-top: 12px;
  border: 1px solid #e3e9dc;
  border-radius: 12px;
  padding: 12px;
  background: #fdfdfb;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.status-badge.warning {
  background: #fef9c3;
  color: #854d0e;
}

.status-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 960px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .side-nav {
    position: relative;
    top: 0;
  }
}

.admin-hero {
  position: relative;
  overflow: hidden;
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(31, 122, 69, 0.12), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(16, 34, 20, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-module-grid .module-card {
  height: 100%;
}

.module-card .small {
  margin: 0;
}

.module-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d6decf;
  background: #e8f3eb;
  color: #155f34;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.module-points {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.module-points li {
  position: relative;
  padding-left: 16px;
}

.module-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}

.module-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Présentation météo (style Sencrop) */
.meteo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.meteo-location {
  text-align: right;
  min-width: 220px;
}

.meteo-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef3e8;
  border: 1px solid #d6decf;
  font-weight: 800;
  color: var(--fg);
}

.meteo-visual {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

.meteo-week {
  background: #fdfdfb;
  border: 1px solid #e3e9dc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(16, 34, 20, 0.08);
}

.meteo-week-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.meteo-week-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 2px;
}

.meteo-week-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meteo-legend-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f3eb;
  color: #155f34;
  font-weight: 700;
}

.meteo-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.meteo-day-card {
  background: #ffffff;
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(16, 34, 20, 0.06);
}

.meteo-day-card.active {
  border-color: #1f7a45;
  box-shadow: 0 12px 28px rgba(31, 122, 69, 0.16);
}

.meteo-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.meteo-day-name {
  font-weight: 800;
}

.meteo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.meteo-metric {
  background: #f3f6f1;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meteo-cta-card {
  background: linear-gradient(135deg, #1f7a45, #155f34);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meteo-cta-card .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.meteo-cta-card button {
  width: 100%;
}

.meteo-cta-meta {
  color: #d1fae5;
}

.meteo-focus {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #e3e9dc;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(16, 34, 20, 0.08);
}

.meteo-focus-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.meteo-focus-temp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.meteo-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.meteo-focus-item {
  background: #f9faf6;
  border: 1px solid #e3e9dc;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meteo-preferences {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meteo-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.meteo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.meteo-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .meteo-visual {
    grid-template-columns: 1fr;
  }

  .meteo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .meteo-location {
    text-align: left;
  }
}
