/* ===============================
   THINK BEFORE YOU PRINT – THEME SMARTEF
   Design plus premium, moderne & fun
   =============================== */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #050816;
  --bg-main: #050816;
  --bg-panel: rgba(15, 23, 42, 0.85);
  --bg-panel-soft: rgba(15, 23, 42, 0.65);
  --primary: #22c55e;
  --primary-soft: rgba(34, 197, 94, 0.15);
  --primary-strong: #16a34a;
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.2);
  --danger: #fb7185;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-xl: 18px;
  --radius-xxl: 26px;
  --transition: 0.22s ease-out;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56,189,248,0.2) 0, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(250,204,21,0.18) 0, transparent 55%),
    var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
}

/* LAYOUT GLOBAL */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.7rem 1.3rem 3rem;
}

/* HEADER & NAV */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background:
    conic-gradient(from 220deg, #22c55e, #0ea5e9, #facc15, #fb7185, #22c55e);
  padding: 2px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.6);
  position: relative;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #bbf7d0 0, #0f172a 55%);
  opacity: 0.65;
}

.brand-logo span {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #f9fafb;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.8);
}

.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tag-sm {
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: #a7f3d0;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

nav a:hover {
  border-color: rgba(148, 163, 184, 0.85);
  background: rgba(30, 64, 175, 0.4);
}

nav a.active {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.55);
  color: #022c22;
}

/* TITRES DE PAGE */
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-title span {
  font-size: 1.4rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.3rem;
}

/* HERO / BANNIÈRE */
.hero {
  background: radial-gradient(circle at 0% 0%, rgba(34,197,94,0.35) 0, transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(56,189,248,0.4) 0, transparent 60%),
              rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-xxl);
  padding: 1.5rem 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.3fr);
  gap: 1.5rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-left h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge:nth-child(1) { border-color: rgba(34,197,94,0.8); }
.badge:nth-child(2) { border-color: rgba(59,130,246,0.8); }
.badge:nth-child(3) { border-color: rgba(250,204,21,0.8); }
.badge:nth-child(4) { border-color: rgba(248,113,113,0.9); }

.hero-left p {
  font-size: 0.9rem;
  color: #e5e7eb;
  max-width: 32rem;
  line-height: 1.5;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-self: stretch;
}

.hero-metric {
  background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(15,23,42,0.75));
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-metric span.label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-metric span.value {
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-metric span:last-child {
  font-size: 1.2rem;
}

/* GRILLES & CARTES */
.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(34,197,94,0.16) 0, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.card-header,
.card-body {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.card-body {
  font-size: 0.86rem;
  color: var(--text-main);
}

/* LISTES D’INDICATEURS */
.indicators-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.indicators-list li {
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.indicators-list span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

/* TABLEAUX */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

th, td {
  padding: 0.5rem 0.6rem;
  text-align: left;
}

th {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.8);
}

tbody tr {
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.94);
}

/* FILE INPUT */
.file-input {
  margin: 0.6rem 0 0.7rem;
}

.file-input input[type="file"] {
  font-size: 0.8rem;
  color: var(--text-main);
}

/* PODIUM */
.podium {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin-top: 0.7rem;
  gap: 0.6rem;
}

.podium-item {
  flex: 1;
  text-align: center;
}

.podium-column {
  border-radius: 16px 16px 6px 6px;
  padding: 0.45rem 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.85);
}

.podium-1 {
  background: linear-gradient(160deg, #facc15, #eab308);
}
.podium-2 {
  background: linear-gradient(160deg, #e5e7eb, #cbd5f5);
}
.podium-3 {
  background: linear-gradient(160deg, #fed7aa, #fb923c);
}

.podium-rank {
  font-size: 0.85rem;
  font-weight: 800;
}

.podium-name {
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.podium-value {
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* QUIZ */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-question {
  font-weight: 600;
  font-size: 0.95rem;
}

.quiz-options {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.quiz-options li button {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: var(--transition);
}

.quiz-options li button:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.quiz-options li button.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.18);
}

.quiz-options li button.wrong {
  border-color: #fb923c;
  background: rgba(248, 113, 113, 0.16);
}

.quiz-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* BUTTONS */
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  transition: var(--transition);
  margin-top: 0.4rem;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45);
}

.button-primary:hover {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  transform: translateY(-1px);
}

/* INPUT TEXTE (nom du joueur) */
input[type="text"] {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* LEADERBOARD */
.leaderboard {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

/* FOOTER */
.site-footer {
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.76rem;
  color: var(--text-soft);
}

.site-footer-top,
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer-bottom {
  margin-top: 0.25rem;
}

.site-footer strong {
  color: #e5e7eb;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.1rem;
  }
}

@media (max-width: 600px) {
  .site-wrapper {
    padding-inline: 0.95rem;
  }
  .page-title {
    font-size: 1.25rem;
  }
}
/* FUN ZONE – département le plus impressif */
.fun-zone {
  position: relative;
  overflow: hidden;
}

.fun-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(248, 250, 252, 0.15);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.fun-emoji {
  font-size: 1.1rem;
  animation: float-emoji 2.2s ease-in-out infinite;
}

.fun-text {
  font-size: 0.84rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.fun-text-small {
  font-size: 0.78rem;
  margin-top: 0.6rem;
  color: var(--text-soft);
}

/* BARRE "GASPILLAGE POTENTIEL" */
.fun-meter-wrapper {
  margin-top: 0.4rem;
}

.fun-meter-label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: var(--text-soft);
}

.fun-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
  position: relative;
}

.fun-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #fb7185);
  animation: meter-pulse 2.5s ease-in-out infinite;
}

.fun-meter-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

/* ANIMATIONS */
@keyframes float-emoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes meter-pulse {
  0%   { transform: scaleX(0.98); opacity: 0.85; }
  50%  { transform: scaleX(1.02); opacity: 1; }
  100% { transform: scaleX(0.98); opacity: 0.85; }
}

/* COURONNE DU PRINCE DU GASPILLAGE POTENTIEL */
.fun-crown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.7rem;
  animation: crown-appear 1.2s ease-out forwards;
}

.fun-crown {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(250, 204, 21, 0.4));
  animation: crown-float 2.5s ease-in-out infinite;
}

.fun-crown-text {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #facc15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.35);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes crown-appear {
  0% { opacity: 0; transform: translateY(12px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes crown-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===========================
   ECO WARRIOR – PRINCE DE L’ÉCOLOGIE
   =========================== */

.eco-card {
  border: 1px solid rgba(34,197,94,0.45);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.eco-zone {
  padding-top: 0.3rem;
}

.eco-crown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: eco-appear 1.1s ease-out forwards;
  margin-bottom: 0.55rem;
}

.eco-crown {
  width: 75px;
  filter: drop-shadow(0 6px 9px rgba(34, 197, 94, 0.4));
  animation: eco-float 2.8s ease-in-out infinite;
}

.eco-crown-text {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4ade80;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eco-text {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
}

.eco-meter-wrapper {
  margin-top: 0.5rem;
}

.eco-meter-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.eco-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34,197,94,0.5);
  overflow: hidden;
}

.eco-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ade80, #22c55e, #15803d);
  animation: eco-pulse 2.5s ease-in-out infinite;
}

.eco-meter-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-top: 0.3rem;
  color: var(--text-soft);
}

/* ANIMATIONS ECO */
@keyframes eco-appear {
  0% { opacity:0; transform: translateY(15px) scale(0.9); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}

@keyframes eco-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes eco-pulse {
  0% { opacity:0.85; transform:scaleX(0.97); }
  50% { opacity:1; transform:scaleX(1.02); }
  100% { opacity:0.85; transform:scaleX(0.97); }
}

/*fin du fichier style.css*/

