/* ===========================================
   Mes Outils Peinture — Custom Styles (Bulma)
   =========================================== */

:root {
  --petrole: #2B6777;
  --petrole-dark: #1E4D5A;
  --terracotta: #C06C52;
  --terracotta-light: #D4856E;
  --beige: #F5F0EB;
  --beige-dark: #E8DFD6;
  --sombre: #2D2D2D;
  --gris: #6B7280;
  --blanc: #FFFFFF;
}

/* === GLOBAL === */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--sombre);
  background-color: var(--blanc);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--petrole);
}

a {
  color: var(--terracotta);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--petrole);
}

img {
  max-width: 100%;
  height: auto;
}

/* === NAVBAR === */
.navbar-mop {
  background-color: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.5rem 0;
}
.navbar-mop .navbar-item {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--sombre);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.navbar-mop .navbar-item:hover,
.navbar-mop .navbar-item.is-active {
  color: var(--terracotta);
  background-color: transparent;
}
.navbar-mop .navbar-burger span {
  background-color: var(--petrole);
  height: 2px;
}
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 36px;
  width: auto;
}

/* === HERO === */
.hero-mop {
  background: linear-gradient(135deg, var(--petrole) 0%, var(--petrole-dark) 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-mop::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192,108,82,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-mop .title {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--blanc);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-mop .subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.6;
}
.hero-mop .button.is-primary {
  background-color: var(--terracotta);
  border: none;
  font-weight: 600;
  padding: 0.8em 2em;
  font-size: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.hero-mop .button.is-primary:hover {
  background-color: var(--terracotta-light);
  transform: translateY(-1px);
}

/* === SECTIONS === */
.section-mop {
  padding: 4rem 1.5rem;
}
.section-mop.is-alt {
  background-color: var(--beige);
}
.section-title {
  font-size: 2rem;
  color: var(--petrole);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--gris);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

/* === CARDS === */
.card-mop {
  background: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-mop:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.card-mop .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-mop .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-mop .card-tag {
  display: inline-block;
  background-color: var(--beige);
  color: var(--petrole);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25em 0.7em;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.card-mop .card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--sombre);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card-mop .card-title a {
  color: var(--sombre);
}
.card-mop .card-title a:hover {
  color: var(--terracotta);
}
.card-mop .card-excerpt {
  color: var(--gris);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.card-mop .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--beige-dark);
  font-size: 0.82rem;
  color: var(--gris);
}

/* === ARTICLE CONTENT === */
.article-content {
  max-width: 780px;
  margin: 0 auto;
}
.article-content p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.article-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}
.article-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.article-content img {
  border-radius: 6px;
  margin: 1.5rem 0;
}
.article-content blockquote {
  border-left: 4px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--beige);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--petrole-dark);
}

/* === EDITORIAL BLOCK (homepage) === */
.edito-block {
  background: var(--beige);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 1rem;
}
.edito-block p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--sombre);
  margin-bottom: 1rem;
}
.edito-block p:last-child {
  margin-bottom: 0;
}

/* === TIP BOX === */
.tip-box {
  background: linear-gradient(135deg, var(--petrole) 0%, var(--petrole-dark) 100%);
  color: var(--blanc);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
}
.tip-box h4 {
  color: var(--terracotta-light);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.tip-box p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === CONTACT FORM === */
.form-mop .input, .form-mop .textarea {
  border: 2px solid var(--beige-dark);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
.form-mop .input:focus, .form-mop .textarea:focus {
  border-color: var(--petrole);
  box-shadow: 0 0 0 3px rgba(43,103,119,0.1);
}
.form-mop .label {
  font-weight: 600;
  color: var(--sombre);
  font-size: 0.9rem;
}
.btn-mop {
  background-color: var(--terracotta);
  color: var(--blanc);
  border: none;
  font-weight: 600;
  padding: 0.75em 2.5em;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.btn-mop:hover {
  background-color: var(--terracotta-light);
}

/* === FOOTER === */
.footer-mop {
  background-color: var(--sombre);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 1.5rem 1.5rem;
}
.footer-mop h5 {
  color: var(--blanc);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-mop ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-mop ul li {
  margin-bottom: 0.5rem;
}
.footer-mop a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-mop a:hover {
  color: var(--terracotta-light);
}
.footer-mop .footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.footer-social a:hover {
  background: var(--terracotta);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--blanc);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* === 404 PAGE === */
.page-404 {
  text-align: center;
  padding: 6rem 1.5rem;
}
.page-404 h1 {
  font-size: 6rem;
  color: var(--terracotta);
  margin-bottom: 0;
  line-height: 1;
}
.page-404 h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.page-404 p {
  color: var(--gris);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .hero-mop .title {
    font-size: 2rem;
  }
  .hero-mop .subtitle {
    font-size: 1rem;
  }
  .hero-mop {
    padding: 3rem 1rem;
  }
  .section-mop {
    padding: 2.5rem 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .edito-block {
    padding: 1.5rem;
  }
  .card-mop .card-image img {
    height: 180px;
  }
  .footer-mop .columns .column {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-mop .title {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .card-mop .card-image img {
    height: 160px;
  }
}