/* ============================================================
   ESPACE ADOPTANTS — Les Lapins de Coraline
   ============================================================ */
:root {
  --mlea-primary: #104B59;
  --mlea-primary-l: #1a6b7a;
  --mlea-accent: #ff7d44;
  --mlea-accent-l: #fff0ea;
  --mlea-gold: #d4a96a;
  --mlea-gold-l: #f0e6d3;
  --mlea-bg: #f0f4f6;
  --mlea-card: #ffffff;
  --mlea-text: #2d2417;
  --mlea-muted: #7a6a5a;
  --mlea-border: #e8ddd0;
  --mlea-success: #22c55e;
  --mlea-warning: #f97316;
  --mlea-danger: #ef4444;
  --mlea-radius: 14px;
  --mlea-radius-sm: 8px;
  --mlea-shadow: 0 4px 24px rgba(16,75,89,.1);
  --mlea-shadow-sm: 0 2px 10px rgba(16,75,89,.08);
  --mlea-sidebar-w: 260px;
}

.mlea-app *, .mlea-app *::before, .mlea-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mlea-app {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--mlea-text);
  background: var(--mlea-bg);
  min-height: 80vh;
  border-radius: var(--mlea-radius);
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

.mlea-auth-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 16px;
}

.mlea-auth-hero {
  text-align: center;
  padding: 20px 0 24px;
}

.mlea-hero-icon {
  font-size: 4em;
  line-height: 1;
  margin-bottom: 12px;
}

.mlea-auth-hero h1 {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--mlea-primary);
  margin-bottom: 8px;
}

.mlea-auth-hero p {
  color: var(--mlea-muted);
  font-size: .95em;
  line-height: 1.5;
}

.mlea-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.mlea-hero-badges span {
  background: var(--mlea-gold-l);
  color: var(--mlea-primary);
  border: 1px solid var(--mlea-gold);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .82em;
  font-weight: 600;
}

.mlea-auth-card {
  background: var(--mlea-card);
  border-radius: var(--mlea-radius);
  box-shadow: var(--mlea-shadow);
  padding: 28px;
  border: 1px solid var(--mlea-border);
}

.mlea-logo-em {
  font-size: 3em;
  text-align: center;
  display: block;
  margin-bottom: 16px;
}

.mlea-auth-outer {
  max-width: 440px;
  margin: 40px auto;
  padding: 16px;
}

.mlea-auth-outer .mlea-auth-card {
  text-align: center;
}

.mlea-auth-outer h2 {
  color: var(--mlea-primary);
  margin-bottom: 24px;
}

.mlea-tabs {
  display: flex;
  background: var(--mlea-gold-l);
  border-radius: var(--mlea-radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  gap: 2px;
}

.mlea-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9em;
  font-weight: 600;
  color: var(--mlea-muted);
  transition: all .2s;
  font-family: inherit;
}

.mlea-tab.active {
  background: var(--mlea-card);
  color: var(--mlea-primary);
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-tab-content {
  display: none;
}

.mlea-tab-content.active {
  display: block;
}

.mlea-form-hint {
  margin-bottom: 16px;
  color: var(--mlea-muted);
  font-size: .9em;
  line-height: 1.5;
}

.mlea-timeline-teaser {
  margin-top: 24px;
  background: var(--mlea-card);
  border-radius: var(--mlea-radius);
  box-shadow: var(--mlea-shadow-sm);
  padding: 20px 24px;
  border: 1px solid var(--mlea-border);
}

.mlea-timeline-teaser h3 {
  font-size: .95em;
  color: var(--mlea-primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.mlea-timeline-teaser-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mlea-field {
  margin-bottom: 16px;
}

.mlea-field label {
  display: block;
  font-size: .85em;
  font-weight: 600;
  color: var(--mlea-text);
  margin-bottom: 6px;
}

.mlea-field input,
.mlea-field select,
.mlea-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--mlea-border);
  border-radius: var(--mlea-radius-sm);
  font-size: .9em;
  font-family: inherit;
  color: var(--mlea-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.mlea-field input:focus,
.mlea-field select:focus,
.mlea-field textarea:focus {
  outline: none;
  border-color: var(--mlea-primary);
  box-shadow: 0 0 0 3px rgba(16,75,89,.1);
}

.mlea-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.mlea-field-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.mlea-field-check input {
  width: auto;
}

.mlea-field-hint {
  font-size: .78em;
  color: var(--mlea-muted);
  margin-top: 4px;
}

.mlea-opt {
  font-weight: 400;
  color: var(--mlea-muted);
  font-size: .85em;
}

.mlea-input-eye {
  position: relative;
}

.mlea-input-eye input {
  padding-right: 44px;
}

.mlea-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  padding: 4px;
  opacity: .6;
  transition: opacity .2s;
}

.mlea-eye-btn:hover {
  opacity: 1;
}

.mlea-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mlea-link-center {
  text-align: center;
  margin-top: 14px;
  font-size: .85em;
}

.mlea-link-center a {
  color: var(--mlea-primary);
  text-decoration: none;
}

.mlea-link-center a:hover {
  text-decoration: underline;
}

.mlea-disabled {
  background: var(--mlea-bg) !important;
  color: var(--mlea-muted) !important;
  cursor: not-allowed;
}

.mlea-hr {
  border: none;
  border-top: 1.5px solid var(--mlea-border);
  margin: 20px 0;
}

.mlea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--mlea-radius-sm);
  font-size: .9em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.mlea-btn-primary {
  background: var(--mlea-primary);
  color: white;
}

.mlea-btn-primary:hover {
  background: var(--mlea-primary-l);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,75,89,.3);
}

.mlea-btn-accent {
  background: var(--mlea-accent);
  color: white;
}

.mlea-btn-accent:hover {
  background: #e56a30;
  transform: translateY(-1px);
}

.mlea-btn-ghost {
  background: transparent;
  color: var(--mlea-primary);
  border: 1.5px solid var(--mlea-border);
}

.mlea-btn-ghost:hover {
  background: var(--mlea-gold-l);
  border-color: var(--mlea-gold);
}

.mlea-btn-danger {
  background: transparent;
  color: var(--mlea-danger);
  border: 1.5px solid var(--mlea-danger);
}

.mlea-btn-danger:hover {
  background: var(--mlea-danger);
  color: white;
}

.mlea-btn-sm {
  padding: 7px 14px;
  font-size: .82em;
}

.mlea-w-full {
  width: 100%;
  margin-top: 4px;
}

.mlea-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mlea-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--mlea-radius-sm);
  font-size: .88em;
  font-weight: 500;
  display: none;
}

.mlea-msg.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.mlea-msg.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.mlea-msg.info {
  background: var(--mlea-gold-l);
  color: var(--mlea-primary);
  border: 1px solid var(--mlea-gold);
  display: block;
}

.mlea-skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: mlea-shimmer 1.5s infinite;
  border-radius: 6px;
}

.mlea-skeleton-line.short {
  width: 60%;
}

@keyframes mlea-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.mlea-loading {
  text-align: center;
  color: var(--mlea-muted);
  padding: 30px;
  font-size: .9em;
}

.mlea-dashboard {
  display: flex;
  min-height: 80vh;
  position: relative;
}

.mlea-sidebar {
  width: var(--mlea-sidebar-w);
  background: var(--mlea-primary);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--mlea-radius) 0 0 var(--mlea-radius);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.mlea-sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlea-sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mlea-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9em;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.mlea-sidebar-user {
  min-width: 0;
}

.mlea-sidebar-name {
  color: white;
  font-weight: 700;
  font-size: .95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mlea-sidebar-email {
  color: rgba(255,255,255,.6);
  font-size: .75em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mlea-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mlea-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--mlea-radius-sm);
  border: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: .88em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  width: 100%;
  position: relative;
}

.mlea-nav-item:hover {
  background: rgba(255,255,255,.1);
  color: white;
}

.mlea-nav-item.active {
  background: rgba(255,255,255,.18);
  color: white;
  font-weight: 700;
}

.mlea-nav-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

.mlea-nav-label {
  flex: 1;
}

.mlea-nav-badge {
  background: var(--mlea-accent);
  color: white;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .72em;
  font-weight: 700;
  line-height: 1.6;
}

.mlea-nav-item--sub {
  font-size: .82em;
  opacity: .8;
  padding: 9px 14px;
}

.mlea-sidebar-footer {
  padding: 8px 8px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mlea-btn-logout {
  width: 100%;
  margin-top: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--mlea-radius-sm);
  color: rgba(255,255,255,.7);
  font-size: .82em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlea-btn-logout:hover {
  background: rgba(239,68,68,.3);
  color: white;
  border-color: rgba(239,68,68,.4);
}

.mlea-main {
  flex: 1;
  padding: 28px 24px;
  min-width: 0;
  background: var(--mlea-bg);
  border-radius: 0 var(--mlea-radius) var(--mlea-radius) 0;
}

.mlea-section {
  display: none;
}

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

.mlea-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.mlea-section-header h2 {
  font-size: 1.4em;
  font-weight: 800;
  color: var(--mlea-primary);
  margin: 0;
}

.mlea-section-sub {
  color: var(--mlea-muted);
  font-size: .9em;
  margin-top: 4px;
  margin-bottom: 0;
}

.mlea-subsection-title {
  font-size: 1em;
  font-weight: 700;
  color: var(--mlea-primary);
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlea-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.mlea-stat-card {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--mlea-shadow-sm);
  cursor: pointer;
  transition: all .2s;
}

.mlea-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mlea-shadow);
  border-color: var(--mlea-primary);
}

.mlea-stat-icon {
  font-size: 1.8em;
  margin-bottom: 8px;
}

.mlea-stat-num {
  font-size: 2em;
  font-weight: 800;
  color: var(--mlea-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.mlea-stat-label {
  font-size: .76em;
  color: var(--mlea-muted);
  font-weight: 500;
}

.mlea-rappels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.mlea-rappel-item {
  background: var(--mlea-card);
  border: 1.5px solid var(--mlea-border);
  border-radius: var(--mlea-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlea-rappel-item.urgent {
  border-color: var(--mlea-warning);
  background: #fff7ed;
}

.mlea-rappel-icon {
  font-size: 1.3em;
}

.mlea-rappel-info {
  flex: 1;
}

.mlea-rappel-name {
  font-weight: 600;
  font-size: .9em;
}

.mlea-rappel-lapin {
  color: var(--mlea-muted);
  font-size: .8em;
}

.mlea-rappel-date {
  font-size: .82em;
  font-weight: 700;
  color: var(--mlea-warning);
}

.mlea-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.mlea-tl-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  position: relative;
  align-items: flex-start;
}

.mlea-tl-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 38px;
  bottom: -14px;
  width: 2px;
  background: var(--mlea-border);
}

.mlea-tl-item:last-child::before {
  display: none;
}

.mlea-tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mlea-gold-l);
  border: 2px solid var(--mlea-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  flex-shrink: 0;
  z-index: 1;
  background-color: var(--mlea-card);
}

.mlea-tl-body {
  flex: 1;
  padding-top: 6px;
}

.mlea-tl-text {
  font-size: .9em;
  line-height: 1.5;
  color: var(--mlea-text);
}

.mlea-tl-time {
  font-size: .76em;
  color: var(--mlea-muted);
  margin-top: 4px;
  display: block;
}

.mlea-tl-item-simple {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mlea-border);
  font-size: .88em;
}

.mlea-tl-item-simple:last-child {
  border-bottom: none;
}

.mlea-tl-item-simple .mlea-tl-time {
  color: var(--mlea-muted);
  font-size: .8em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 50px;
  display: block;
}

.mlea-lapins-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}

.mlea-lapin-card {
  background: var(--mlea-card);
  border: 1.5px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  overflow: hidden;
  box-shadow: var(--mlea-shadow-sm);
  cursor: pointer;
  transition: all .2s;
}

.mlea-lapin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mlea-shadow);
  border-color: var(--mlea-primary);
}

.mlea-lapin-photo {
  height: 160px;
  background: var(--mlea-gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  overflow: hidden;
  position: relative;
}

.mlea-lapin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-lapin-card-body {
  padding: 14px;
}

.mlea-lapin-name {
  font-weight: 800;
  font-size: 1.05em;
  color: var(--mlea-primary);
  margin-bottom: 4px;
}

.mlea-lapin-info {
  font-size: .8em;
  color: var(--mlea-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mlea-lapin-meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.mlea-lapin-badge {
  background: var(--mlea-gold-l);
  color: var(--mlea-primary);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .72em;
  font-weight: 600;
}

.mlea-lapin-badge.vaccin {
  background: #dcfce7;
  color: #166534;
}

.mlea-lapin-badge.rappel {
  background: #fff7ed;
  color: #c2410c;
}

.mlea-lapin-badge.visite {
  background: #eff6ff;
  color: #1d4ed8;
}

.mlea-add-lapin-card {
  background: var(--mlea-gold-l);
  border: 2px dashed var(--mlea-gold);
  border-radius: var(--mlea-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: pointer;
  transition: all .2s;
  color: var(--mlea-primary);
  font-weight: 600;
  font-size: .9em;
  gap: 10px;
  min-height: 200px;
}

.mlea-add-lapin-card:hover {
  background: var(--mlea-accent-l);
  border-color: var(--mlea-accent);
  transform: translateY(-2px);
}

.mlea-add-lapin-icon {
  font-size: 2.5em;
}

.mlea-detail-panel {
  background: var(--mlea-card);
  border-radius: var(--mlea-radius);
  border: 1px solid var(--mlea-border);
  overflow: hidden;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-detail-header {
  background: linear-gradient(135deg, var(--mlea-primary), var(--mlea-primary-l));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mlea-back-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  border-radius: var(--mlea-radius-sm);
  padding: 7px 14px;
  font-size: .82em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}

.mlea-back-btn:hover {
  background: rgba(255,255,255,.25);
}

.mlea-detail-header h3 {
  color: white;
  font-size: 1.1em;
  font-weight: 800;
  flex: 1;
  margin: 0;
}

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

.mlea-detail-form {
  padding: 20px;
}

.mlea-detail-photo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--mlea-bg);
  border-bottom: 1px solid var(--mlea-border);
}

.mlea-lapin-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--mlea-gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--mlea-gold);
}

.mlea-lapin-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-no-photo-icon {
  font-size: 2em;
}

.mlea-upload-label {
  cursor: pointer;
}

.mlea-carnet-preview {
  margin: 0;
  border-top: 1.5px solid var(--mlea-border);
  padding: 20px;
  background: var(--mlea-bg);
}

.mlea-carnet-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.mlea-carnet-preview-header h4 {
  font-size: .95em;
  color: var(--mlea-primary);
  font-weight: 700;
  margin: 0;
}

.mlea-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mlea-preview-block {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius-sm);
  padding: 12px;
}

.mlea-preview-block h5 {
  font-size: .78em;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mlea-muted);
  margin-bottom: 8px;
}

.mlea-preview-item {
  font-size: .82em;
  padding: 4px 0;
  border-bottom: 1px solid var(--mlea-border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mlea-preview-item:last-child {
  border-bottom: none;
}

.mlea-preview-empty {
  color: var(--mlea-muted);
  font-size: .82em;
  text-align: center;
  padding: 8px 0;
}

.mlea-carnet-info-block {
  background: linear-gradient(135deg, #e8f4f6, #f0f9fb);
  border: 1.5px solid var(--mlea-primary);
  border-radius: var(--mlea-radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  opacity: .95;
}

.mlea-carnet-info-icon {
  font-size: 3em;
  flex-shrink: 0;
}

.mlea-carnet-info-block h3 {
  font-size: 1.05em;
  color: var(--mlea-primary);
  margin-bottom: 8px;
}

.mlea-carnet-info-block p {
  color: var(--mlea-muted);
  font-size: .9em;
  line-height: 1.6;
}

.mlea-carnet-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mlea-summary-card {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--mlea-shadow-sm);
  transition: all .2s;
}

.mlea-summary-card:hover {
  border-color: var(--mlea-primary);
}

.mlea-summary-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mlea-gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--mlea-gold);
}

.mlea-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-summary-info {
  flex: 1;
  min-width: 0;
}

.mlea-summary-name {
  font-weight: 700;
  color: var(--mlea-primary);
  margin-bottom: 4px;
}

.mlea-summary-stats {
  font-size: .8em;
  color: var(--mlea-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mlea-favoris-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
}

.mlea-favori-card {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  overflow: hidden;
  box-shadow: var(--mlea-shadow-sm);
  transition: all .2s;
}

.mlea-favori-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mlea-shadow);
}

.mlea-favori-thumb {
  height: 130px;
  background: var(--mlea-gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  overflow: hidden;
}

.mlea-favori-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-favori-body {
  padding: 12px;
}

.mlea-favori-title {
  font-weight: 700;
  font-size: .88em;
  color: var(--mlea-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mlea-favori-actions {
  display: flex;
  gap: 6px;
}

.mlea-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--mlea-muted);
}

.mlea-empty-state .mlea-empty-icon {
  font-size: 3em;
  margin-bottom: 14px;
}

.mlea-empty-state p {
  font-size: .9em;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.mlea-temo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mlea-temo-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mlea-temo-meta {
  flex: 1;
}

.mlea-temo-stars {
  font-size: 1em;
  letter-spacing: 1px;
}

.mlea-temo-status.pending {
  background: #fef9c3;
  color: #854d0e;
}

.mlea-temo-status.approved {
  background: #dcfce7;
  color: #166534;
}

.mlea-temo-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.mlea-stars-input {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.mlea-star-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 2px;
  opacity: .3;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}

.mlea-star-btn.active, .mlea-star-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.mlea-photo-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mlea-quiz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mlea-quiz-card {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-form-card {
  background: var(--mlea-card);
  border: 1.5px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-form-card h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--mlea-primary);
  margin-bottom: 18px;
}

.mlea-info-banner {
  background: var(--mlea-gold-l);
  border: 1px solid var(--mlea-gold);
  border-radius: var(--mlea-radius-sm);
  padding: 12px 16px;
  font-size: .88em;
  color: var(--mlea-primary);
  margin-bottom: 20px;
}

.mlea-public-temos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.mlea-public-temo-card {
  background: var(--mlea-card);
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 20px;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-temo-photo {
  margin-bottom: 12px;
}

.mlea-temo-photo img {
  width: 100%;
  border-radius: var(--mlea-radius-sm);
  max-height: 180px;
  object-fit: cover;
}

.mlea-temo-author {
  font-size: .85em;
  color: var(--mlea-muted);
  margin-top: 12px;
  font-style: normal;
}

.mlea-heart-btn {
  background: rgba(255,255,255,.9);
  border: 1.5px solid var(--mlea-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-heart-btn:hover {
  transform: scale(1.15);
  border-color: #ec4899;
}

.mlea-heart-btn.active {
  background: #fdf2f8;
  border-color: #ec4899;
}

.mlea-burger {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  top: auto;
  right: auto;
  z-index: 1000;
  background: var(--mlea-primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16,75,89,.4);
}

.mlea-burger span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s;
  display: block;
}

.mlea-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
  .mlea-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mlea-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mlea-dashboard {
    flex-direction: column;
  }

  .mlea-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 999;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0 16px 16px 0;
    transition: left .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
  }

  .mlea-sidebar .mlea-nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .mlea-sidebar .mlea-sidebar-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: var(--mlea-primary);
    border-top: 1px solid rgba(255,255,255,.12);
    padding-bottom: 16px;
    z-index: 2;
  }

  .mlea-sidebar.open {
    left: 0;
  }

  .mlea-sidebar-overlay.open {
    display: block;
  }

  .mlea-burger {
    display: flex;
  }

  .mlea-app {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .mlea-main {
    border-radius: var(--mlea-radius);
    padding: 20px 12px;
    padding-top: 28px;
    overflow-x: hidden;
    max-width: 100%;
    min-width: 0;
  }

  .mlea-lapins-grid {
    grid-template-columns: 1fr !important;
  }

  .mlea-favoris-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .mlea-fields-row {
    grid-template-columns: 1fr !important;
  }

  .mlea-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mlea-detail-header {
    flex-wrap: wrap;
  }

  .mlea-detail-actions {
    flex-wrap: wrap;
  }

  .mlea-carnet-info-block {
    flex-direction: column;
  }

  .mlea-preview-grid {
    grid-template-columns: 1fr;
  }

  .mlea-auth-wrap {
    padding: 20px 12px;
  }

  .mlea-field input,
    .mlea-field select,
    .mlea-field textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .mlea-form-card {
    padding: 16px 14px;
  }

  .mlea-auth-card {
    padding: 20px 16px;
  }

  .mlea-detail-form {
    padding: 14px;
  }

  .mlea-detail-photo-area {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .mlea-favoris-grid {
    grid-template-columns: 1fr;
  }

  .mlea-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mlea-stat-num {
    font-size: 1.6em;
  }
}

/* ============================
   PAGE — MES LAPINS (scopé)
   Objectif : améliorer la grille sans impacter les autres usages des classes
   ============================ */
/* Donne plus d'ampleur au dashboard quand il est rendu dans un conteneur étroit (Elementor/thème) */
#mlea-app.mlea-app--dashboard {
  width: min(1180px, calc(100vw - 24px));
  margin: 20px auto;
}

.mlea-page--mes-lapins .mlea-lapins-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 1100px) {
  .mlea-page--mes-lapins .mlea-lapins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile : 2 colonnes (puis 1 colonne sur très petit écran) */
@media (max-width: 768px) {
  .mlea-page--mes-lapins .mlea-lapins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 420px) {
  .mlea-page--mes-lapins .mlea-lapins-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Photos en ratio 4/3 + rendu propre */
.mlea-page--mes-lapins .mlea-lapin-photo {
  height: auto !important;
  aspect-ratio: 4 / 3;
}

.mlea-page--mes-lapins .mlea-lapin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mlea-page--mes-lapins .mlea-lapin-card {
  border-radius: 16px;
  overflow: hidden;
}

.mlea-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--mlea-bg);
  border-radius: var(--mlea-radius);
  border: 1px solid var(--mlea-border);
}

.mlea-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--mlea-gold);
  background: var(--mlea-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}

.mlea-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-avatar-info {
  flex: 1;
}

.mlea-avatar-info p {
  font-size: .85em;
  color: var(--mlea-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.mlea-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mlea-quiz-section {
  padding: 0;
}

.mlea-quiz-mes-scores {
  background: white;
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-quiz-mes-scores h3 {
  font-size: .95em;
  font-weight: 700;
  color: var(--mlea-primary);
  margin: 0 0 12px;
}

.mlea-scores-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mlea-quiz-date {
  font-size: .78em;
  color: var(--mlea-muted);
  margin-top: 2px;
}

.mlea-quiz-best-score {
  font-size: .75em;
  color: var(--mlea-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mlea-burger {
    display: flex !important;
  }

  .mlea-burger span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all .3s;
  }
}

/* ==============================
   TÉMOIGNAGES — Suppression ::before du thème
   ============================== */
.mlea-temo-card::before,
.mlea-temo-card::after,
.mlea-temo-content::before,
.mlea-temo-content::after,
.mlea-temo-list::before,
.mlea-temo-list::after {
  display: none !important;
  content: none;
}

.mlea-temo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mlea-temo-card {
  background: white;
  border: 1px solid var(--mlea-border);
  border-radius: var(--mlea-radius);
  padding: 14px 16px;
  box-shadow: var(--mlea-shadow-sm);
}

.mlea-temo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mlea-temo-stars-row {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
}

.mlea-star {
  font-size: 1.1em;
  line-height: 1;
}

.mlea-star.on {
  color: #f59e0b;
}

.mlea-star.off {
  color: #d1d5db;
}

.mlea-temo-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mlea-temo-lapin {
  font-size: .78em;
  color: var(--mlea-muted);
}

.mlea-temo-status {
  font-size: .72em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.mlea-temo-status--approved {
  background: #dcfce7;
  color: #16a34a;
}

.mlea-temo-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.mlea-temo-status--rejected {
  background: #fee2e2;
  color: #dc2626;
}

.mlea-temo-content {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--mlea-bg);
  border-left: 3px solid var(--mlea-accent);
  border-radius: 0 8px 8px 0;
  font-size: .88em;
  line-height: 1.5;
  color: var(--mlea-text);
  font-style: normal;
}

.mlea-temo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mlea-temo-date {
  font-size: .75em;
  color: var(--mlea-muted);
}

.mlea-temo-source {
  font-size: .72em;
  color: var(--mlea-muted);
  font-style: italic;
}

.mlea-temo-actions {
  display: flex;
  gap: 6px;
}

.mlea-forum-act-section {
  margin-bottom: 20px;
}

.mlea-forum-act-title {
  font-size: .85em;
  font-weight: 800;
  color: var(--mlea-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mlea-accent);
}

.mlea-forum-act-item {
  display: block;
  background: white;
  border: 1px solid var(--mlea-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}

.mlea-forum-act-item:hover {
  border-color: var(--mlea-primary);
  transform: translateX(3px);
}

.mlea-forum-act-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mlea-forum-act-cat {
  font-size: 1.1em;
  flex-shrink: 0;
}

.mlea-forum-act-itemtitle {
  font-size: .9em;
  font-weight: 700;
  color: var(--mlea-text);
}

.mlea-forum-act-disc {
  font-size: .82em;
  color: var(--mlea-muted);
}

.mlea-forum-act-preview {
  font-size: .82em;
  color: var(--mlea-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 4px 0;
}

.mlea-forum-act-meta {
  display: flex;
  gap: 10px;
  font-size: .75em;
  color: var(--mlea-muted);
  flex-wrap: wrap;
}

.mlea-forum-act-votes {
  color: #16a34a;
  font-weight: 700;
}

.mlea-btn-forum-link {
  font-size: .8em;
  color: var(--mlea-primary);
  border: 1px solid var(--mlea-border);
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
}

.mlea-btn-forum-link:hover {
  background: var(--mlea-primary);
  color: white;
  border-color: var(--mlea-primary);
}

.mlea-sidebar-avatar--clickable {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mlea-sidebar-avatar--clickable:hover .mlea-avatar-edit-overlay {
  opacity: 1;
}

.mlea-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s;
  font-size: 1.1em;
}

.mlea-quiz-prog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mlea-quiz-prog-header h3 {
  margin: 0;
  font-size: .95em;
}

.mlea-quiz-prog-label {
  font-size: .78em;
  color: var(--mlea-primary);
  font-weight: 700;
  background: var(--mlea-accent-bg, #e8f4f6);
  padding: 2px 10px;
  border-radius: 20px;
}

.mlea-quiz-prog-bar-wrap {
  height: 8px;
  background: var(--mlea-border);
  border-radius: 99px;
  margin-bottom: 14px;
  overflow: hidden;
}

.mlea-quiz-prog-bar {
  height: 100%;
  background: linear-gradient(to right, var(--mlea-primary), var(--mlea-accent));
  border-radius: 99px;
  transition: width .5s ease;
}

.mlea-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--mlea-border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all .15s;
}

.mlea-score-row:hover {
  border-color: var(--mlea-primary);
  transform: translateX(2px);
}

.mlea-quiz-score {
  font-size: 1.2em;
  font-weight: 900;
  min-width: 50px;
  text-align: center;
}

.mlea-quiz-score.perfect {
  color: #d97706;
}

.mlea-quiz-score.great {
  color: var(--mlea-success, #16a34a);
}

.mlea-quiz-score.ok {
  color: #2563eb;
}

.mlea-quiz-score.low {
  color: #dc2626;
}

.mlea-quiz-info {
  flex: 1;
}

.mlea-quiz-title {
  font-weight: 700;
  font-size: .88em;
  margin-bottom: 3px;
}

.mlea-quiz-meta-row {
  display: flex;
  gap: 8px;
  font-size: .75em;
  color: var(--mlea-muted);
  flex-wrap: wrap;
}

.mlea-position {
  color: var(--mlea-primary);
  font-weight: 700;
}

.mlea-score-perfect {
  font-size: 1.1em;
}

.mlea-badge-prog-section {
  margin-bottom: 12px;
}

.mlea-stat-sub {
  font-size: .65em;
  color: var(--mlea-muted);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.mlea-quiz-classements-preview {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--mlea-border);
  border-radius: 14px;
  padding: 16px;
}

.mlea-cls-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mlea-cls-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mlea-bg, #f8fafc);
  border-radius: 10px;
  font-size: .84em;
}

.mlea-cls-preview-quiz {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mlea-cls-preview-pos {
  font-size: .82em;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 20px;
  background: #f1f5f9;
}

.mlea-cls-preview-pos.top {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.mlea-cls-preview-pos em {
  font-style: normal;
  font-size: .9em;
  color: var(--mlea-primary);
  margin-left: 4px;
}

.mlea-cls-preview-score {
  font-weight: 800;
  color: var(--mlea-primary);
  min-width: 36px;
  text-align: right;
}

.mlea-toggle {
  position: relative !important;
  display: inline-block !important;
  width: 46px !important;
  height: 26px !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  flex-shrink: 0;
}

.mlea-toggle input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.mlea-toggle-track {
  display: block !important;
  width: 46px !important;
  height: 26px !important;
  background: #d1d5db !important;
  border-radius: 13px !important;
  position: relative !important;
  transition: background .2s;
  border: none !important;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}

.mlea-toggle input[type="checkbox"]:checked ~ .mlea-toggle-track {
  background: var(--mlea-primary, #104b59) !important;
}

.mlea-toggle-thumb {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: left .2s ease;
  pointer-events: none;
  border: none !important;
}

.mlea-toggle input[type="checkbox"]:checked ~ .mlea-toggle-track .mlea-toggle-thumb {
  left: 23px !important;
}

.mlea-toggle-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  padding: 6px 0 !important;
}

.mlea-toggle-hint {
  font-size: .85em !important;
  color: var(--mlea-muted, #6b7280) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.mlea-share-bar {
  display: flex;
  justify-content: center;
  padding: 20px 0 4px;
}

.mlea-btn-share {
  border: 2px dashed var(--mlea-primary, #104b59) !important;
  color: var(--mlea-primary, #104b59) !important;
  background: transparent !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  transition: background .18s, color .18s;
}

.mlea-btn-share:hover {
  background: var(--mlea-primary, #104b59) !important;
  color: #fff !important;
}

.mlea-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mlea-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.mlea-share-box {
  padding: 0;
}

.mlea-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.mlea-modal-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.mlea-modal-close {
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 4px;
}

.mlea-share-desc {
  font-size: .85em;
  color: #6b7280;
  padding: 8px 24px 0;
  margin: 0;
}

.mlea-share-url-row {
  display: flex;
  gap: 8px;
  padding: 14px 24px 0;
}

.mlea-share-url-input {
  flex: 1;
  font-size: .82em;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  color: #374151;
  min-width: 0;
}

.mlea-share-sep {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 16px 24px;
}

.mlea-share-preview-section {
  padding: 0 24px;
}

.mlea-share-preview-label {
  font-size: .85em;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
}

.mlea-public-preview-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.mlea-btn-full {
  width: 100%;
}

.mlea-btn-secondary {
  background: #f1f5f9 !important;
  color: #374151 !important;
  border: 1.5px solid #e2e8f0 !important;
}

.mlea-share-forum-hint {
  font-size: .78em;
  color: #6b7280;
  text-align: center;
  margin: 4px 0 0;
}

#btn-insert-forum-wrap {
  padding: 0 24px 20px;
}

@media (max-width:600px) {
  .mlea-share-url-row {
    flex-direction: column;
  }

  .mlea-modal-box {
    border-radius: 12px;
  }
}

/* ============================================================
   PAGE PUBLIQUE + APERÇU MODAL  (v1.12)
   ============================================================ */
.mlea-public-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

.mlea-public-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #104b59 0%, #1a6b7c 100%);
  border-radius: 16px;
  color: #fff;
}

.mlea-public-hero-icon {
  font-size: 2.4em;
  line-height: 1;
}

.mlea-public-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 4px;
}

.mlea-public-subtitle {
  font-size: .9em;
  opacity: .8;
  margin: 0;
}

.mlea-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #104b59, #1a6b7c);
  color: #fff;
}

.mlea-public-owner {
  font-size: .95em;
}

.mlea-public-count {
  font-size: .8em;
  opacity: .8;
  background: rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 20px;
}

.mlea-public-card {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s, box-shadow .18s;
}

.mlea-public-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.mlea-public-card-photo {
  position: relative;
  aspect-ratio: 1;
  background: #f1f5f9;
  overflow: hidden;
}

.mlea-public-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlea-public-card-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3em;
  color: #94a3b8;
}

.mlea-public-sexe {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9em;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.mlea-public-card-body {
  padding: 12px;
}

.mlea-public-card-name {
  font-weight: 700;
  font-size: 1em;
  color: #1e293b;
  margin-bottom: 8px;
}

.mlea-public-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mlea-chip {
  font-size: .72em;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.mlea-chip-steril {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================================
   EMBED [lapins:TOKEN] DANS LE FORUM  (v1.12 / CA)
   ============================================================ */
/* ============================================================
   TOAST NOTIFICATIONS  (v1.12.2)
   ============================================================ */
.mlea-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1e293b;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: .9em;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 99999;
}

.mlea-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mlea-toast--success {
  background: #16a34a;
}

.mlea-toast--error {
  background: #dc2626;
}

.mlea-toast--info {
  background: #104b59;
}

@media (max-width:600px) {
  .mlea-toast {
    bottom: 72px;
    font-size: .82em;
    padding: 9px 16px;
    white-space: normal;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}

/* ============================================================
   RUBAN STATUT QUIZ (v1.12.4 — depuis CA)
   ============================================================ */
.ca-quiz-card {
  position: relative !important;
  overflow: hidden !important;
}

.ca-quiz-ribbon {
  position: absolute !important;
  top: 14px !important;
  right: -28px !important;
  transform: rotate(45deg) !important;
  width: 120px !important;
  text-align: center !important;
  font-size: .66em !important;
  font-weight: 700 !important;
  padding: 4px 0 !important;
  z-index: 2 !important;
  letter-spacing: .03em !important;
  pointer-events: none;
  white-space: nowrap;
}

.ca-ribbon--success {
  background: #22c55e !important;
  color: white !important;
}

.ca-ribbon--progress {
  background: #f59e0b !important;
  color: white !important;
}

.ca-ribbon--fail {
  background: #ef4444 !important;
  color: white !important;
}

@keyframes mleaFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Bouton toggle "Mes résultats" ── */
.mlea-quiz-results-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border-bottom: 1px solid var(--mlea-border, #e2e8f0);
  transition: background .15s;
}

.mlea-quiz-results-toggle:hover {
  background: rgba(0,0,0,.02);
}

.mlea-quiz-mes-scores {
  border: 1px solid var(--mlea-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: white;
}

.mlea-quiz-prog-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mlea-quiz-prog-header h3 {
  margin: 0 0 2px;
  font-size: .95em;
  font-weight: 700;
  color: var(--mlea-primary);
}

.mlea-quiz-prog-label {
  font-size: .8em;
  color: var(--mlea-muted, #94a3b8);
  display: block;
}

.mlea-results-icon {
  font-size: 1.4em;
}

.mlea-results-toggle-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mlea-prog-inline {
  width: 80px;
}

.mlea-results-chevron {
  font-size: .75em;
  color: var(--mlea-muted, #94a3b8);
  transition: transform .3s ease;
  display: inline-block;
}

.mlea-scores-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.mlea-scores-collapse.open {

}

.mlea-quiz-grid-title {
  font-size: .92em;
  color: var(--mlea-primary);
  font-weight: 600;
  margin: 0 0 12px;
  padding: 0;
}

.mlea-quiz-grid-section {
  margin-top: 4px;
}

.mlea-quiz-card-hidden {
  display: none;
}

.mlea-quiz-showmore {
  text-align: center;
  padding: 16px 0 4px;
  transition: opacity .3s;
}

.mlea-quiz-showmore-btn {
  border: 1.5px solid var(--mlea-border, #e2e8f0);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: .88em;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--mlea-primary);
  transition: all .2s;
}

.mlea-quiz-showmore-btn:hover {
  background: var(--mlea-primary);
  color: white;
  border-color: var(--mlea-primary);
}

.mlea-stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.mlea-stat-num-wrap .mlea-stat-num {

}

.mlea-stat-total {
  font-size: .65em;
  font-weight: 500;
  color: var(--mlea-muted, #94a3b8);
  line-height: 1;
  white-space: nowrap;
}

#mlea-app s, #mlea-app del,
.mlea-section s, .mlea-section del,
.mlea-stat-label s, .mlea-stat-label del,
.mlea-stat-num s, .mlea-stat-num del {
  text-decoration: none !important;
}

.mlea-stat-num-wrap .mlea-stat-num {
  display: inline-block !important;
  font-size: 2em;
  font-weight: 800;
  color: var(--mlea-primary);
  line-height: 1.1;
}

/* ══════════════════════════════════════════════════════════
   BANNIÈRE ANNIVERSAIRES
   ══════════════════════════════════════════════════════════ */
.mlea-anniv-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1.5px solid #f9a8d4;
  background: linear-gradient(135deg, #fff0f7 0%, #fce7f3 100%);
  box-shadow: 0 2px 8px rgba(249,168,212,.25);
  animation: mleaAnnivPop .4s ease;
}
.mlea-anniv-banner.mlea-anniv-adoption {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 2px 8px rgba(252,211,77,.25);
}
@keyframes mleaAnnivPop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mlea-anniv-confetti {
  font-size: 1.8em;
  flex-shrink: 0;
  animation: mleaAnnivBounce 1.2s ease infinite;
}
@keyframes mleaAnnivBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-5px); }
}
.mlea-anniv-texte {
  font-size: .88em;
  color: var(--mlea-text, #334155);
  line-height: 1.5;
}
.mlea-anniv-texte strong {
  color: var(--mlea-primary);
}

/* ══════════════════════════════════════════════════════════
   WIDGET SAISON
   ══════════════════════════════════════════════════════════ */
.mlea-saison-widget { margin-bottom: 14px; }
.mlea-saison-inner {
  border: 1px solid;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.mlea-saison-inner:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.mlea-saison-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer;
}
.mlea-saison-emoji { font-size: 1.6em; flex-shrink: 0; }
.mlea-saison-label { font-size: .92em; font-weight: 700; color: var(--mlea-primary); }
.mlea-saison-sub { font-size: .75em; color: var(--mlea-muted, #94a3b8); margin-top: 1px; }
.mlea-saison-toggle {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: .75em; color: var(--mlea-muted, #94a3b8);
  padding: 4px 8px; border-radius: 8px; transition: background .15s; flex-shrink: 0;
}
.mlea-saison-toggle:hover { background: rgba(0,0,0,.06); }
.mlea-saison-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.mlea-saison-conseil { display: flex; gap: 12px; align-items: flex-start; }
.mlea-saison-conseil-icon { font-size: 1.3em; flex-shrink: 0; margin-top: 1px; }
.mlea-saison-conseil strong {
  display: block; font-size: .85em; font-weight: 700;
  color: var(--mlea-primary); margin-bottom: 2px;
}
.mlea-saison-conseil p {
  font-size: .8em; color: var(--mlea-text, #334155);
  line-height: 1.5; margin: 0;
}


.mlea-home-block {
  background: white;
  border: 1px solid var(--mlea-border, #e2e8f0);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}

.mlea-home-block:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

.mlea-home-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mlea-home-block-icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.mlea-home-block-title {
  flex: 1;
  font-size: .92em;
  font-weight: 700;
  color: var(--mlea-primary);
  margin: 0;
}

.mlea-home-block-cta {
  font-size: .78em;
  font-weight: 600;
  color: var(--mlea-primary);
  background: rgba(var(--mlea-primary-rgb, 16,75,89),.08);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.mlea-home-block-cta:hover {
  background: rgba(var(--mlea-primary-rgb, 16,75,89),.15);
  color: var(--mlea-primary);
  text-decoration: none;
}

.mlea-quiz-home-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mlea-quiz-home-bar-wrap {
  height: 10px;
  background: var(--mlea-border, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}

.mlea-quiz-home-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mlea-primary), #2a9d8f);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.mlea-quiz-home-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78em;
  color: var(--mlea-muted, #94a3b8);
  font-weight: 500;
}

.mlea-quiz-home-pct {
  font-weight: 700;
  color: var(--mlea-primary);
}

.mlea-last-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mlea-last-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 68px;
  cursor: default;
  text-align: center;
}

.mlea-last-badge-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--mlea-border, #e2e8f0);
  background: #f8fafc;
  transition: transform .2s;
}

.mlea-last-badge-item:hover .mlea-last-badge-img {
  transform: scale(1.08);
}

.mlea-last-badge-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.mlea-last-badge-name {
  font-size: .68em;
  color: var(--mlea-muted, #94a3b8);
  line-height: 1.2;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlea-last-forum-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mlea-last-topic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}

.mlea-last-topic-row:hover {
  background: var(--mlea-bg, #f8fafc);
}

.mlea-last-topic-emoji {
  font-size: 1.1em;
  flex-shrink: 0;
}

.mlea-last-topic-info {
  flex: 1;
  min-width: 0;
}

.mlea-last-topic-title {
  font-size: .85em;
  font-weight: 600;
  color: var(--mlea-text, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mlea-last-topic-meta {
  font-size: .72em;
  color: var(--mlea-muted, #94a3b8);
  margin-top: 2px;
}

.mlea-last-topic-chevron {
  color: var(--mlea-muted, #94a3b8);
  font-size: 1.2em;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mlea-home-block {
    padding: 13px 14px;
  }

  .mlea-last-badge-item {
    width: 56px;
  }

  .mlea-last-badge-img, .mlea-last-badge-placeholder {
    width: 44px;
    height: 44px;
  }
}

/* ══════════════════════════════════════════════════════════
   BADGE DIFFICULTÉ QUIZ (EA + CA partagent les classes)
   ══════════════════════════════════════════════════════════ */
.ca-quiz-card-img {
  position: relative;
}

.ca-diff-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: .70em;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 8px 8px 0 0;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.ca-diff--facile {
  background: #22c55e;
  color: white;
}

.ca-diff--moyen {
  background: #f59e0b;
  color: white;
}

.ca-diff--difficile {
  background: #ef4444;
  color: white;
}

.mlea-documents-grid {
  display: grid;
  gap: 16px;
}

.mlea-document-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
}

.mlea-document-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.mlea-doc-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.mlea-doc-content {
  flex: 1;
  min-width: 0;
}

.mlea-doc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.mlea-doc-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.mlea-doc-date {
  font-size: 13px;
  color: #9ca3af;
}

.mlea-doc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mlea-doc-badge {
  padding: 4px 12px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.mlea-doc-badge--guide {
  background: #dbeafe;
  color: #1e40af;
}

.mlea-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .mlea-document-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .mlea-doc-icon {
    align-self: center;
  }

  .mlea-doc-actions {
    width: 100%;
    flex-direction: column;
  }

  .mlea-doc-actions .mlea-btn {
    width: 100%;
  }
}

/* =====================================================
   FIX v1.14.3 - CSS Quiz & Partage Lapins
   ===================================================== */
/* Forcer le style des résultats quiz */
#section-quiz .mlea-quiz-mes-scores,
.mlea-section .mlea-quiz-mes-scores {
  background: white !important;
  border: 1px solid var(--mlea-border, #e2e8f0) !important;
  border-radius: var(--mlea-radius, 12px) !important;
  padding: 16px !important;
  margin-bottom: 20px !important;
  box-shadow: var(--mlea-shadow-sm, 0 1px 3px rgba(0,0,0,0.1)) !important;
}

.mlea-quiz-mes-scores h3 {
  font-size: .95em !important;
  font-weight: 700 !important;
  color: var(--mlea-primary) !important;
  margin: 0 0 12px !important;
}

body.page .mlea-public-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 40px 20px;
}

.mlea-public-hero {
  box-shadow: 0 4px 20px rgba(16, 75, 89, 0.15);
  position: relative;
  overflow: hidden;
}

.mlea-public-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.mlea-public-hero-icon {
  animation: floatBunny 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatBunny {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Grid améliorée */
.mlea-public-card {
  position: relative;
  overflow: hidden;
}

.mlea-public-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.mlea-public-card:hover::before {
  left: 100%;
}

.mlea-public-card-photo img {
  transition: transform 0.3s ease;
}

.mlea-public-card:hover .mlea-public-card-photo img {
  transform: scale(1.05);
}

.mlea-chip {
  font-weight: 500;
  transition: all 0.2s;
}

.mlea-chip:hover {
  transform: scale(1.05);
  background: #e2e8f0;
}

.mlea-public-sexe {
  backdrop-filter: blur(8px);
  font-size: 1.1em !important;
  width: 32px !important;
  height: 32px !important;
}

.mlea-public-card-photo .mlea-public-sexe[title*="Mâle"],
.mlea-sexe-male .mlea-public-sexe {
  background: rgba(59, 130, 246, 0.9) !important;
  color: white;
}

.mlea-public-card-photo .mlea-public-sexe[title*="Femelle"],
.mlea-sexe-femelle .mlea-public-sexe {
  background: rgba(236, 72, 153, 0.9) !important;
  color: white;
}

.mlea-loading {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 1.1em;
}

.mlea-loading::after {
  content: "...";
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% {
    content: ".";
  }

  40% {
    content: "..";
  }

  60%, 100% {
    content: "...";
  }
}

/* Empty state */
.mlea-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.mlea-empty-icon {
  font-size: 4em;
  margin-bottom: 16px;
  opacity: 0.3;
}

.mlea-empty-state p {
  color: #64748b;
  font-size: 1.1em;
  margin: 0;
}

.mlea-public-footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #94a3b8;
  font-size: 0.85em;
}

.mlea-public-footer a {
  color: #104b59;
  text-decoration: none;
  font-weight: 600;
}

.mlea-public-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.page .mlea-public-page {
    padding: 24px 12px;
  }

  .mlea-public-hero {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .mlea-public-hero-icon {
    font-size: 2em;
  }

  .mlea-public-title {
    font-size: 1.2em;
  }

  }

@media (max-width: 480px) {
  .mlea-public-card-body {
    padding: 10px;
  }

  .mlea-public-card-name {
    font-size: 0.9em;
  }

  .mlea-chip {
    font-size: 0.7em;
    padding: 2px 6px;
  }
}

/* =====================================================
   FIX v1.15.1 — Page publique lapins
   À coller À LA FIN de style.css
   ===================================================== */
/* ── 1. CORRECTIF GRILLE (le bloc v1.15.0 écrasait display:grid) ── */
.mlea-public-cards,
.mlea-public-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

@media (max-width: 768px) {
  .mlea-public-cards,
  .mlea-public-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
  }
}

@media (max-width: 420px) {
  .mlea-public-cards,
  .mlea-public-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
  }
}

/* ── 2. SIDEBAR trop large sur la page publique ── */
/* Réduire la sidebar et la rendre compacte (info-only, pas de nav) */
.mlea-app--public .mlea-sidebar {
  width: 180px !important;
  min-width: 180px !important;
}

.mlea-app--public .mlea-nav,
.mlea-app--public .mlea-sidebar-footer {
  display: none !important;
}

.mlea-app--public .mlea-sidebar-header {
  flex-direction: column;
  text-align: center;
  padding: 24px 16px;
  border-bottom: none;
}

.mlea-app--public .mlea-sidebar-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.3em;
  margin: 0 auto 10px;
}

.mlea-app--public .mlea-sidebar-name {
  font-size: 1em;
  white-space: normal;
  text-align: center;
}

.mlea-app--public .mlea-sidebar-email {
  font-size: .8em;
  white-space: normal;
  text-align: center;
  margin-top: 4px;
}

.mlea-public-card-photo {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

.mlea-public-card-name {
  text-transform: capitalize;
}

.mlea-public-header {
  border-radius: 16px 16px 0 0;
}





/* =====================================================
   FIX FINAL — Grille page publique (avec !important)
   ===================================================== */

/* Grille principale */
#mlea-public-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;

  background: #fff !important;
  padding: 24px !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.05) !important;
}

/* Header pleine largeur */
#mlea-public-grid > .mlea-public-header {
  grid-column: 1 / -1 !important;
}

/* Wrapper interne neutralisé */
#mlea-public-grid > .mlea-public-cards {
  display: contents !important;
}

/* On neutralise le “double fond/padding” du wrapper interne */
#mlea-public-grid > .mlea-public-cards {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  #mlea-public-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
  }
}

@media (max-width: 420px) {
  #mlea-public-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }
}

/* Supprime le header doublon dans la grille */
#mlea-public-grid > .mlea-public-header {
  display: none !important;
}





/* ══════════════════════════════════════════════════════════════
   MODE EMBED FORUM — mlea-forum-embed
   Masquer éléments non pertinents quand l'EA est intégré dans le forum
   ══════════════════════════════════════════════════════════════ */

/* Masquer timeline et bloc forum récents */
.mlea-forum-embed #mlea-timeline,
.mlea-forum-embed #mlea-last-forum-block {
    display: none !important;
}

/* Pas de marge/padding externe, le forum gère déjà ça */
.mlea-forum-embed.mlea-app {
    border-radius: 0;
    box-shadow: none;
    min-height: unset;
}

/* Nav item Forum dans EA : pointer vers la section forum de l'EA (activité perso), OK */

/* Iframe jeux embed */
.mlea-jeux-embed-wrap {
    width: 100%;
    height: calc(100vh - 130px);
    min-height: 500px;
}
.mlea-jeux-embed-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Masquer sidebar EA dans embed section ciblée (carnet/quiz) */
.mlea-forum-embed[data-embed-section] .mlea-sidebar {
    display: none !important;
}
.mlea-forum-embed[data-embed-section] .mlea-main {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.mlea-forum-embed[data-embed-section] .mlea-burger {
    display: none !important;
}
.mlea-forum-embed[data-embed-section] .mlea-sidebar-overlay {
    display: none !important;
}

/* ══ BLOC PROFIL EMBED FORUM ══ */
.mlea-embed-profil {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--mlea-card-bg, #fff);
  border: 0.5px solid rgba(16,75,89,.12);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mlea-embed-profil-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #104b59, #1a8a7c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
}
.mlea-embed-profil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mlea-embed-profil-avatar-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mlea-primary, #104b59);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mlea-embed-profil-info {
  flex: 1;
  min-width: 0;
}
.mlea-embed-profil-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mlea-text, #1a2332);
}
.mlea-embed-profil-email {
  margin: 0;
  font-size: 12px;
  color: var(--mlea-muted, #78909c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mlea-embed-profil-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(16,75,89,.2);
  background: transparent;
  color: var(--mlea-text, #1a2332);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.mlea-embed-profil-btn:hover {
  background: rgba(16,75,89,.06);
}
