/*
Theme Name: GeneratePress Child — Carnet d'atelier
Theme URI: https://mymangaacademia.fr
Description: Child theme pour My Manga Academia. Tokens Carnet d'atelier.
Author: Mavis / Sam
Template: generatepress
Version: 1.1.0
Text Domain: mma-child
*/

/* ============================================================
   POLICES AUTO-HEBERGEES (woff2)
   Fraunces (serif frottée) — DM Sans (grotesque nette)
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fraunces-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500.woff2') format('woff2');
}

/* ============================================================
   CARNET D'ATELIER — DESIGN TOKENS
   Papier #F3EDE3 / Ivoire #FAF6F0 / Encre #1C1612 / Sceau #B42318
   ============================================================ */

:root {
  --mma-papier:   #F3EDE3;
  --mma-ivoire:   #FAF6F0;
  --mma-encre:    #1C1612;
  --mma-mine:     #5C5148;
  --mma-sceau:    #B42318;
  --mma-trame:    rgba(28, 22, 18, 0.04);
  --mma-filet:    1px solid rgba(28, 22, 18, 0.18);
}

body,
.site,
.main-navigation,
.site-header,
.site-footer,
.generatepress-page-header,
.entry-content {
  background-color: var(--mma-papier) !important;
  color: var(--mma-encre) !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-header,
.widget-title {
  font-family: "Fraunces", "Source Serif Pro", Georgia, serif !important;
  color: var(--mma-encre) !important;
  letter-spacing: -0.005em;
}

body, p, li, .entry-summary, .entry-content, .nav, .menu, .wp-block, button, input, select, textarea {
  font-family: "Geist", "Satoshi", "DM Sans", system-ui, -apple-system, sans-serif !important;
  color: var(--mma-encre);
}

a, .entry-title a, .menu-item a, .widget a, .post-navigation a {
  color: var(--mma-encre);
  text-decoration: underline;
  text-decoration-color: rgba(180, 35, 24, 0.35);
  text-underline-offset: 3px;
}
a:hover, .menu-item a:hover, .entry-title a:hover {
  color: var(--mma-sceau);
  text-decoration-color: var(--mma-sceau);
}

.site-header, .site-footer {
  border: none;
  border-top: var(--mma-filet);
  border-bottom: var(--mma-filet);
  box-shadow: none;
  border-radius: 0;
}

.site-footer {
  background-color: var(--mma-ivoire) !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
  color: var(--mma-encre) !important;
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li a:hover {
  color: var(--mma-sceau) !important;
}

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.read-more {
  background: var(--mma-encre);
  color: var(--mma-papier);
  border: var(--mma-filet);
  border-radius: 0;
  box-shadow: none;
  text-transform: none;
  font-weight: 500;
  padding: 0.6em 1.2em;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--mma-sceau);
  color: var(--mma-papier);
}

.entry-content {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.entry-content img,
.entry-content figure {
  border-radius: 2px;
  background: var(--mma-ivoire);
  padding: 0.4rem;
}

blockquote {
  border-left: 2px solid var(--mma-sceau);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--mma-mine);
  background: transparent;
}

/* Hero */
.mma-hero {
  background-color: var(--mma-ivoire);
  border-bottom: var(--mma-filet);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.mma-hero h1 {
  font-family: "Fraunces", "Source Serif Pro", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.6rem;
}
.mma-hero p.lede {
  color: var(--mma-mine);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* Method block */
.mma-method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mma-method article {
  background: var(--mma-ivoire);
  border: var(--mma-filet);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
}
.mma-method article h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.mma-method article p {
  margin: 0;
  color: var(--mma-mine);
  font-size: 0.95rem;
}

/* Tuto card grid */
.mma-tutos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mma-tutos article {
  background: var(--mma-papier);
  border: var(--mma-filet);
  border-radius: 2px;
  padding: 1.2rem;
}
.mma-tutos article h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.mma-tutos article p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mma-mine);
}
.mma-tutos a {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 500;
  color: var(--mma-sceau);
}

/* Sensei block */
.mma-sensei {
  max-width: 60ch;
  margin: 2.5rem auto;
  padding: 1.5rem;
  background: var(--mma-ivoire);
  border: var(--mma-filet);
  border-radius: 2px;
  text-align: center;
}
.mma-sensei h2 {
  margin-top: 0;
}
.mma-sensei p {
  color: var(--mma-mine);
}

/* Pas de slider / shadow / neon */
*, *::before, *::after {
  box-shadow: none !important;
}

/* Cacher tout le footer par defaut GeneratePress : on a notre propre footer-extra */
.site-footer,
.site-info,
footer.site-info,
footer.site-footer,
.copyright-bar,
.copyright {
  display: none !important;
}

/* Grille tutos utilisee par [mma_tutos_latest] */
.mma-tutos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mma-tutos-grid article {
  background: var(--mma-papier);
  border: var(--mma-filet);
  border-radius: 2px;
  padding: 1.2rem;
}
.mma-tutos-grid article h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.mma-tutos-grid article p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mma-mine);
}
.mma-tutos-grid article a[href*="Lire"] {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 500;
  color: var(--mma-sceau);
}

/* Responsive */
@media (max-width: 640px) {
  .entry-content { padding: 0 1rem; }
  .mma-hero { padding: 2.5rem 1rem 2rem; }
}
