:root {
  --primary-color: #3b82f6;
  --text-color: #222;
  --bg-color: #fff;
  --light-bg: #f5f5f5;
  --card: #f5f5f5;
  --accent: #6366f1;
  --accent-soft: #818cf8;
  --muted: #f8f8f8;
  --radius: 34px;
  --max-width: 1100px;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 20px 40px;
  margin: 0;
  font-size: 16px;
}
.modern-separator {
    border: 0;
    height: 1px;
    background: #e5e7eb; /* Light gray */
    margin: 2rem 0; /* Spacing */
    width: 100%;
  }
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.h4 {
  border-bottom: 1px solid #3b82f6;
  display: inline-block;
  padding-bottom: 2px;
}

.title {
  border-bottom: 3px solid #3b82f6;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 1.3rem;
  margin: 0 auto 30px auto;
  text-align: center;
  
}
.small-title {
  border-bottom: 1px solid #82b2ff;
  display: inline-block;
  padding-bottom: 2px;
  padding-left: 8px;
  font-size: 15px;
}
.titleGreen {
  border-bottom: 3px solid #3bf699;
  display: inline-block;
  padding-bottom: 5px;
}

.content-box .part {
  flex: 1;
  min-width: 250px;
  padding: 10px;
}

.content-box h4 {
  margin: 0 0 4px 0;
  font-size: 0.9em;
}

.content-box p {
  margin: 0;
  font-size: 0.85em;
}
.reference-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reference-item {
  margin-bottom: 14px;
  background: #f9f9fb;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.reference-item:hover {
  background: #b2c6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ref-thumb {
  width: 150px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

.reference-item a {
  display: flex;
  color: inherit;
  text-decoration: none;
  align-items: center;
}
.tip {
  position: relative;
  cursor: pointer;
  font-weight: 500;
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 300%;
  transform: translateX(-50%) scale(0.95);
  max-width: 180px;
  width: max-content;
  padding: 10px 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.tip:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tools-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tools-grid:target {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  border: #83ff93 solid 5px;
  background: linear-gradient(135deg, #fc020209, #fbff010a);
  transform: translateY(-40px);
  scroll-margin-top: 30px;
}
.tools-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.tool-item a {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  padding: 7px 8px;
  text-decoration: none;
  background: #ffffff00;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.tool-item:target {
  background: linear-gradient(135deg, #fc020209, #fbff010a);
  border: #83ff93 solid 5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  scroll-margin-top: 30px;
}
.tool-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}

.tool-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}
.tuto-icon {
  width: 96px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.tool-info {
  display: flex;
  flex-direction: column;
}

.tool-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.tool-desc {
  font-size: 0.85rem;
  color: #6a6a6a;
  margin: 0;
}
.tool-desc:hover{
    font-size: 0.95rem;
    cursor: url("https://img.icons8.com/?size=30&id=59878&format=png"), pointer;
}
.tuto-text {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1a1a1a;
}
.expander {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background .2s;
  width: 100%;
  margin-bottom: 10px;
}

.expander:hover {
  background: #f2f7ff;
}

.expander-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.expander-content {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  display: none;
}

.expander.open .expander-content {
  display: block;
}

.expander.open .arrow {
  transform: rotate(180deg);
}

.arrow {
  transition: transform .25s ease;
}

.banner {
  background: #4a90e2;
  border-radius: 5px;
  padding: 5px 20px;
  text-align: center;
  margin: 40px 0 10px 0;
}
.banner h1 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px 0;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.logo {
  width: 90px;
  height: 60px;
}

.title-header {
  border-bottom: 3px solid #3b82f6;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0px;
  color: #000000;
}
.assist {
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f5f7fa;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  margin-top: 30px;
  padding: 15px 0;
}
.assist p {
  background:#fff;
  padding:10px 10px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  font-size:0.9rem;
  color:#333;
  text-align: center;
}
.assist a {
  color:#0066ff;
  font-weight:600;
  text-decoration:none;
  text-align: center;
}
.assist a:hover { text-decoration:underline; }

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7e6, #fff3d6);
    border: 1px solid #ffd591;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    max-width: 520px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 10px auto;
  }

  .warning-icon {
    font-size: 22px;
    line-height: 1;
    color: #fa8c16;
    margin-top: 2px;
  }

  .warning-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #ad4e00;
  }

  .warning-content p {
    margin: 0;
    font-size: 13px;
    color: #7a3e00;
    line-height: 1.5;
  }

.tree {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 120px auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.step {
  display: none;
  animation: fade 0.4s ease;
}

.step.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: auto;
  align-items: center;
}

input {
  display: none;
}

label {
  background: var(--card);
  border: 2px solid rgb(0, 0, 0);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

label:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

input:checked + label {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.result {
  padding: 28px;
  text-align: center;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  background: linear-gradient(135deg, #4c4c4d, #444650);
  border-radius: var(--radius);
}

.reset {
  margin-top: 24px;
  text-align: center;
}

.reset a {
  display: inline-block;
  color: var(--accent-soft);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.reset a:hover {
  color: #26a500;
  transform: scale(1.2);
  text-decoration: underline;
}
.result-a {
  position: relative;
  color: #83ff93;
  text-decoration: none;
  transition: color 0.3s ease;
}
.result-a:hover {
  color: #b0eff7;
}

.result-a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.result-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}