/* Blog statique de slimedemimi.fr : même charte que le site (autocollants, encre raisin, rose bubblegum) */
@font-face {
  font-family: "Bagel Fat One";
  src: url("fonts/bagel-fat-one-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #fff6fa;
  --surface: #fffdfe;
  --ink: #2a1840;
  --ink-soft: #5b4a6e;
  --line: #2a1840;
  --shadow: #2a1840;
  --pink: #ff6fae;
  --focus: #2a1840;
  --trait: rgba(42, 24, 64, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1026;
    --surface: #2b1b3c;
    --ink: #fff0f7;
    --ink-soft: #d8c7e5;
    --line: #ffd6ea;
    --shadow: #4b2c6b;
    --pink: #ff7cb6;
    --focus: #ff7cb6;
    --trait: rgba(255, 214, 234, 0.14);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2 {
  font-family: "Bagel Fat One", "Nunito", sans-serif;
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border: 2.5px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  font-weight: 800;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* En-tête */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--trait);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 1.35rem;
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 1.6rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.nav nav a {
  text-decoration: none;
}
.nav nav a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav nav {
    display: none;
  }
}

/* Boutons autocollants */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.85rem 1.4rem;
  border: 2.5px solid var(--line);
  border-radius: 9999px;
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.btn-pink {
  background: var(--pink);
  color: #2a1840;
}
.btn-sm {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--shadow);
}

/* Article */
.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.fil {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.fil a {
  text-decoration: none;
}
.fil a:hover {
  text-decoration: underline;
}
.article h1 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.2rem);
}
.meta {
  margin: 0 0 1.6rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero {
  margin: 0 0 1.8rem;
  overflow: hidden;
  border: 2.5px solid var(--line);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--shadow);
}
.chapo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.article h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.15rem);
  scroll-margin-top: 5rem;
}
.article h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 900;
}
.article p,
.article li {
  color: var(--ink-soft);
}
.article strong {
  color: var(--ink);
}
.article ul,
.article ol {
  padding-left: 1.3rem;
}
.article li {
  margin: 0.35rem 0;
}
.article li::marker {
  color: #d6246e;
  font-weight: 900;
}
.article a:not(.btn) {
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.bon {
  margin: 2.6rem 0 0;
  padding: 1rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.bon p {
  margin: 0;
}
.faq details {
  margin: 0.8rem 0;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}
.faq details p {
  margin: 0.6rem 0 0;
}

/* Appel vers la boutique : pastel à texte raisin fixe, lisible dans les deux modes */
.cta {
  margin: 3rem 0 0;
  padding: 1.8rem;
  border: 2.5px solid var(--line);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--shadow);
  background: #fff1a8;
}
.cta p {
  color: #2a1840;
}
.cta .cta-t {
  margin: 0 0 0.4rem;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 1.7rem;
  line-height: 1.12;
}
.cta .btn {
  margin-top: 0.4rem;
}

/* Cartes d'articles */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.4rem;
}
.carte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.carte:hover {
  transform: translateY(-4px);
}
.carte img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carte-t {
  padding: 0.9rem 1rem 0.3rem;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--ink);
}
.carte-d {
  margin-top: auto;
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.liees {
  margin-top: 3.5rem;
}
.liees h2 {
  font-size: 1.9rem;
}

/* Page liste */
.blog-head {
  max-width: 46rem;
  padding: 2.4rem 0 2rem;
}
.blog-head h1 {
  margin: 0.6rem 0;
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4rem);
}
.blog-head p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.liste {
  padding-bottom: 4rem;
}
.vide {
  font-weight: 700;
  color: var(--ink-soft);
}

/* Pied de page */
.pied {
  padding: 1.6rem 0;
  border-top: 2px solid var(--trait);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pied .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}
.pied a {
  display: inline-block;
  padding: 0.5rem 0;
  margin-right: 1.2rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .carte {
    transition: none;
  }
}
