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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

a {
  text-decoration: none;
  color: #d55198;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(90deg,#9c71f1 0%,#d55197 50%,#fdae64 100%);
  color: white;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo a {
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.logo a img {
  width:auto;
  height:30px;
  vertical-align:bottom;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  font-weight: bold;
}

/* Hero */
.hero,
.page-hero {
  background: black;
  padding: 45px 0;
}

.hero h1,
.page-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  color: white;
}

.hero p,
.page-intro {
  max-width: 780px;
  color: white;
  font-size: 18px;
}

.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #6b7280;
}

.btn {
  display: inline-block;
  margin:0 10px 0 0;
  background: #d55198;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
}

.btn2 {
  display: inline-block;
  margin:0 10px 0 0;
  background: #9c71f1;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
}

/* Sections */
section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #111827;
}

/* Cards */
.cards,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card,
.article-box,
.sidebar-box,
.main-content,
.article-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card,
.article-box,
.sidebar-box {
  padding: 20px;
}

.card h3,
.article-box h3,
.sidebar-box h3 {
  margin-bottom: 10px;
  color: #111827;
}

/* Layout page/article/category */
.content-wrap {
  padding: 40px 0 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: start;
}

.main-content {
  padding: 30px;
}

.main-content .meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

.main-content p {
  margin-bottom: 18px;
  color: #374151;
}

.main-content h2 {
  font-size: 28px;
  margin: 35px 0 15px;
  color: #111827;
}

.main-content h3 {
  font-size: 22px;
  margin: 25px 0 12px;
  color: #111827;
}

.main-content ul,
.main-content ol {
  margin: 0 0 20px 22px;
  color: #374151;
}

.main-content li {
  margin-bottom: 8px;
}

.main-content > :first-child {
  margin-top:0;
}

.featured-image {
  margin: 20px 0 25px;
}

.info-box {
  background: #eef2ff;
  padding: 18px;
  border-radius: 10px;
  margin: 25px 0;
}

.cta-box {
  background: #e5eefc;
  padding: 22px;
  border-radius: 12px;
  margin-top: 30px;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  margin-bottom: 10px;
}

/* Category cards */
.category-list {
  display: grid;
  gap: 25px;
}

.article-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.article-card-content {
  padding: 18px;
}

.article-card-content h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.article-card-content p {
  color: #4b5563;
  margin-bottom: 10px;
}

.meta-small {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Footer */
.site-footer {
  background: linear-gradient(90deg,#9c71f1 0%,#d55197 50%,#fdae64 100%);
  color: white;
  text-align: center;
  padding: 25px 0;
  margin-top: 30px;
}

.site-footer a {
  color: white;
}

.site-footer p {
  margin: 6px 0;
}

.related-posts {
  margin-top: 40px;
}

.related-posts h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #111827;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.related-card-content {
  padding: 16px;
}

.related-card-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.related-card-content p {
  color: #4b5563;
  margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .main-content {
    padding: 22px;
  }
}

.tool-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin: 30px 0;
    border: 1px solid #f1f5f9;
}

.tool-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #111827;
}

.tool-box form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tool-box .full {
    grid-column: 1 / -1;
}

.tool-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.tool-box input[type="text"],
.tool-box input[type="number"],
.tool-box select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.tool-box input:focus,
.tool-box select:focus {
    outline: none;
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.tool-box .checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 5px;
}

.tool-box .checkboxes label {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tool-box input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

.tool-box button {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tool-box button:active {
    transform: scale(0.98);
}

#grading-fields {
    background: #f9fafb;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Résultat */

.result-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.result-box h2 {
    margin-top: 0;
}

.result-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

/* Responsive */

@media (max-width: 768px) {
    .tool-box form {
        grid-template-columns: 1fr;
    }

    .tool-box {
        padding: 20px;
    }
}