/*
Theme Name: ASTRO-DVP
Theme URI: https://carte-natale.fr/
Author: Anthony Matthey
Description: Thème éditorial WordPress pour l’astrologie comme outil de connaissance de soi.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: astro-dvp
*/

:root {
  --astro-bg: #f5f0e6;
  --astro-surface: #ffffff;
  --astro-ink: #1a3a4a;
  --astro-body: #2c4a5a;
  --astro-gold: #c9a227;
  --astro-gold-dark: #8d7013;
  --astro-line: #d9d0c1;
  --astro-muted: #657985;
  --astro-success: #2f6b57;
  --astro-danger: #9b3d3d;
  --astro-radius: 0.75rem;
  --astro-shadow: 0 1rem 2.8rem rgba(26, 58, 74, 0.08);
  --astro-content: 48rem;
  --astro-wide: 75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--astro-bg);
  color: var(--astro-body);
  font-family: "Lora", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--astro-ink);
  text-decoration-color: var(--astro-gold);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--astro-gold-dark);
}

:focus-visible {
  outline: 3px solid var(--astro-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.main-navigation,
.button,
.eyebrow,
.meta,
.breadcrumb,
.card__link,
.site-footer {
  color: var(--astro-ink);
  font-family: "Inter", Arial, sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 700;
}

h2 {
  margin: 3.25rem 0 1.2rem;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
}

h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
}

p,
ul,
ol,
blockquote {
  margin: 0 0 1.45rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

blockquote {
  border-left: 4px solid var(--astro-gold);
  margin-left: 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--astro-ink);
  font-size: 1.18rem;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--astro-surface);
}

.container {
  width: min(calc(100% - 2rem), var(--astro-wide));
  margin-inline: auto;
}

.content-width {
  width: min(100%, var(--astro-content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 30;
  background: var(--astro-ink);
  color: var(--astro-surface);
}

.site-header__inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo {
  max-height: 3.25rem;
  width: auto;
}

.site-title {
  color: var(--astro-surface);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.91rem;
  font-weight: 600;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  color: var(--astro-surface);
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  color: #f2d76f;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.45rem;
  background: transparent;
  color: #fff;
  padding: 0.6rem 0.8rem;
  font: 600 0.9rem/1 "Inter", Arial, sans-serif;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.72rem 1.15rem;
  border: 2px solid var(--astro-gold);
  border-radius: 999px;
  background: var(--astro-gold);
  color: #152f3d;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover {
  border-color: #e1bd41;
  background: #e1bd41;
  color: #152f3d;
}

.button--outline {
  background: transparent;
  color: var(--astro-ink);
}

.site-header .button--outline {
  color: var(--astro-surface);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--astro-ink);
  color: var(--astro-surface);
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  bottom: -9rem;
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 65rem;
}

.hero h1,
.hero h2,
.hero p {
  color: var(--astro-surface);
}

.hero__lead {
  max-width: 46rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #e8eef1;
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--astro-gold);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section--surface {
  background: var(--astro-surface);
}

.section__intro {
  max-width: 45rem;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--astro-line);
  border-radius: var(--astro-radius);
  background: var(--astro-surface);
  box-shadow: 0 0.35rem 1.4rem rgba(26, 58, 74, 0.05);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card__link {
  margin-top: auto;
  font-weight: 750;
}

.real-theme {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 2px solid var(--astro-gold);
  border-radius: var(--astro-radius);
  background: #fffaf0;
}

.real-theme__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb {
  padding: 1rem 0;
  color: var(--astro-muted);
  font-size: 0.82rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.45rem;
  color: var(--astro-gold-dark);
}

.entry-header {
  padding: clamp(2.8rem, 6vw, 5rem) 0 2rem;
}

.entry-header h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.entry-deck {
  max-width: 48rem;
  color: var(--astro-muted);
  font-size: 1.18rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin: 1rem 0 0;
  color: var(--astro-muted);
  font-size: 0.82rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--astro-content)) minmax(14rem, 18rem);
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: 5rem;
}

.entry-content > * {
  max-width: var(--astro-content);
}

.entry-content > .alignwide {
  max-width: 66rem;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.85rem;
  border: 1px solid var(--astro-line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--astro-surface);
  font-family: "Inter", Arial, sans-serif;
}

.article-aside {
  position: sticky;
  top: 1.5rem;
  padding: 1.2rem;
  border-left: 2px solid var(--astro-line);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.86rem;
}

.article-aside h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.article-aside ul {
  list-style: none;
  padding: 0;
}

.article-aside li {
  margin-bottom: 0.65rem;
}

.author-box,
.faq-block {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 1px solid var(--astro-line);
  border-radius: var(--astro-radius);
  background: var(--astro-surface);
}

.author-box {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.author-box img {
  border-radius: 50%;
}

.author-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cta {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--astro-radius);
  background: var(--astro-ink);
  color: #fff;
  box-shadow: var(--astro-shadow);
}

.cta h2,
.cta p {
  color: #fff;
}

.cta h2 {
  margin-top: 0;
}

.related {
  padding: 4rem 0;
  border-top: 1px solid var(--astro-line);
}

.archive-header {
  padding: 3.5rem 0 1.5rem;
}

.pagination {
  margin: 2.5rem 0 4rem;
  font-family: "Inter", Arial, sans-serif;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--astro-line);
  border-radius: 0.35rem;
  background: var(--astro-surface);
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--astro-gold);
  background: var(--astro-gold);
  color: var(--astro-ink);
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--astro-ink);
  color: #dce5e9;
  font-size: 0.9rem;
}

.site-footer a,
.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #adbdc5;
}

.notice {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--astro-gold);
  background: var(--astro-surface);
}

@media (max-width: 900px) {
  .grid--3,
  .grid--2,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .article-aside {
    position: static;
    border: 1px solid var(--astro-line);
    border-radius: var(--astro-radius);
    background: var(--astro-surface);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
    background: var(--astro-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }

  .main-navigation .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--astro-wide));
  }

  .hero {
    padding: 3.5rem 0;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

