@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --minecraft-green: #3c8527;
  --minecraft-dark-green: #2a5e1a;
  --minecraft-brown: #8b5e3c;
  --minecraft-light-brown: #a0522d;
  --minecraft-sky: #87ceeb;
  --minecraft-white: #f5f5f0;
}

body {
  background-color: var(--minecraft-sky) !important;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
}

.minecraft-layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1e293b;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Press Start 2P', monospace;
}

.minecraft-layout-title {
  color: white !important;
  font-size: 16px !important;
}

.minecraft-layout-content {
  margin-top: 64px;
}

.minecraft-btn-hamburger {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
}

.minecraft-login-bg,
.minecraft-welcome-bg {
  min-height: calc(100vh - 64px);
  background: linear-gradient(180deg, #87ceeb 0%, #3c8527 100%);
  padding: 40px;
}

.minecraft-card {
  max-width: 400px;
  margin: 100px auto;
  border: 4px solid var(--minecraft-brown) !important;
  border-radius: 0 !important;
  box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
  background-color: var(--minecraft-white) !important;
}

.minecraft-login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

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

.minecraft-input {
  border: 3px solid var(--minecraft-brown) !important;
  border-radius: 0 !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 12px !important;
  padding: 12px !important;
}

.minecraft-input:hover,
.minecraft-input:focus {
  border-color: var(--minecraft-dark-green) !important;
}

.minecraft-btn,
.minecraft-btn-logout {
  background-color: var(--minecraft-green) !important;
  border: 3px solid var(--minecraft-dark-green) !important;
  color: white !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 14px !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.1s;
}

.minecraft-btn:hover,
.minecraft-btn-logout:hover {
  background-color: var(--minecraft-dark-green) !important;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.minecraft-greeting {
  color: var(--minecraft-white) !important;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  font-family: 'Press Start 2P', monospace;
  font-size: 24px !important;
  margin-bottom: 24px !important;
}

.minecraft-tile {
  border: 4px solid var(--minecraft-brown) !important;
  border-radius: 0 !important;
  background-color: var(--minecraft-white) !important;
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.minecraft-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
}

.minecraft-stat-tile {
  border: 3px solid var(--minecraft-light-brown) !important;
  border-radius: 0 !important;
  background-color: #f0e6d2 !important;
  text-align: center;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
  height: 100%;
}

.minecraft-section-title {
  color: var(--minecraft-white) !important;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
  margin: 24px 0 16px !important;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px !important;
}

.minecraft-subject-brick {
  background-color: var(--minecraft-brown);
  border: 3px solid var(--minecraft-dark-green);
  border-radius: 0 !important;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
  color: var(--minecraft-white);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.minecraft-subject-brick:hover {
  background-color: var(--minecraft-light-brown);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.3);
}

.minecraft-brick-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

/* Drawer */

.minecraft-drawer .ant-drawer-header {
  background: #1e293b;
  border-bottom: 3px solid var(--minecraft-green);
}

.minecraft-drawer .ant-drawer-title {
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
}

.minecraft-drawer .ant-drawer-body {
  background: #f5f5f0;
}

.minecraft-drawer-close {
  color: var(--minecraft-green);
  font-size: 20px;
}

.minecraft-menu-link {
  display: block;
  padding: 12px 16px;
  background: white;
  border: 3px solid var(--minecraft-brown);
  color: #1e293b;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  transition: all 0.15s;
}

.minecraft-menu-link:hover {
  background: #f0e6d2;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
}

/* Blocs existants */

.mc-definition-box {
  background: #e8f5e9;
  border: 3px solid #3c8527;
  border-left: 8px solid #2e7d32;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1b4332;
  box-shadow: 4px 4px 0 #a68b5b;
}

.mc-definition-box .mc-icon {
  font-size: 24px;
  margin-right: 12px;
  vertical-align: middle;
}

.mc-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff3e0;
  border: 3px solid #d4a373;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 4px 4px 0 #b5835a;
}

.mc-tip-card .mc-tip-number {
  background: #3c8527;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #2e7d32;
}

.mc-tip-card .mc-tip-content {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3e2723;
}

.mc-tip-card .mc-tip-content strong {
  color: #3c8527;
}

/* Nouveaux blocs : important et note */

.mc-important {
  background: #fff3e0;
  border: 3px solid #ef6c00;
  border-left: 8px solid #e65100;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #3e2723;
  box-shadow: 4px 4px 0 #bf6500;
}

.mc-important .mc-icon {
  font-size: 24px;
  margin-right: 12px;
  vertical-align: middle;
}

.mc-note {
  background: #e3f2fd;
  border: 3px solid #1565c0;
  border-left: 8px solid #0d47a1;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #0d47a1;
  box-shadow: 4px 4px 0 #0d47a1;
}

.mc-note .mc-icon {
  font-size: 24px;
  margin-right: 12px;
  vertical-align: middle;
}

/* Bloc side-by-side (deux colonnes) */

.mc-side-by-side {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}

.mc-side-by-side .mc-col {
  flex: 1;
  background: #fdf6e3;
  border: 2px solid #a68b5b;
  padding: 12px;
  border-radius: 8px;
}

/* Citation Rabelais */

.mc-citation {
  background: #fdf6e3;
  border: 3px solid #8d6e63;
  border-left: 8px solid #5d4037;
  padding: 20px 24px;
  margin: 24px auto;
  max-width: 80%;
  text-align: center;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #a68b5b;
}

.mc-citation blockquote {
  margin: 0;
}

.mc-citation .mc-citation-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: #3e2723;
  margin-bottom: 8px;
}

.mc-citation .mc-citation-author {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #5d4037;
  text-align: right;
  margin-top: 8px;
}

/* Bloc ressource category */

.mc-resource-category {
  background: #e8f5e9;
  border: 3px solid #3c8527;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 3px 3px 0 #2e7d32;
}

.mc-resource-category .mc-resource-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #a68b5b;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mc-resource-category .mc-resource-icon {
  font-size: 28px;
}

.mc-resource-category .mc-resource-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #1b4332;
}

.mc-resource-category .mc-resource-body {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #2c1810;
}

.mc-key-point {
  background: #fff8e1;
  border: 3px solid #f9a825;
  border-left: 8px solid #f57f17;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: "'Courier New', monospace";
  font-size: 16px;
  line-height: 1.8;
  color: #3e2723;
  box-shadow: 4px 4px 0 #ef6c00;
}

.mc-encouragement {
  background: #e8f5e9;
  border: 3px solid #3c8527;
  border-left: 8px solid #1b5e20;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.7;
  color: #1b4332;
  box-shadow: 4px 4px 0 #2e7d32;
}