/* =========================
   ASTRONOMIE.CSS
========================= */

/* ─── Le fond map-bg est sur body.page-astronomie (via wp_head inline) ── */
/* ─── .as-body n'a pas de background propre ────────────────────────── */

.as-body {
  padding-bottom: 80px;
}

/* ─── Image concept + citation ──────────────────────────────────────── */

.as-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 0;
  text-align: center;
}

/* Image du sketch : petite et centrée */
.as-concept__img {
  display: block;
  max-width: 240px;
  width: 100%;
  margin-inline: auto;
}

/* Citation juste en dessous, chevauchant visuellement le bas du sketch */
.as-quote {
  margin-top: -48px; /* remonte sur le bas du sketch */
  position: relative;
  z-index: 2;
  padding: 0 12px;
  width: 100%;
  max-width: 100%;
}

/* Marcellus italic → px explicites */
.as-quote__text {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

/* ─── Conteneur ─────────────────────────────────────────────── */

.as-container {
  padding-top: 48px;
}

/* ─── Intro texte ───────────────────────────────────────────── */

.as-intro {
  text-align: center;
  margin-bottom: 56px;
}

/* h2 Roboto Bold, différent de h2 Marcellus base → px */
.as-intro__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.3;
  padding-bottom: 16px;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, var(--btn-gold-start), var(--btn-gold-end)) 1;
}

/* p → hérite de base.css */
.as-intro__text {
  line-height: 1.8;
  margin: 0;
}

/* ─── Bannière féminin sacré ────────────────────────────────── */

.as-banner {
  background-size: cover;
  background-position: center;
  padding: 40px 0;
}

.as-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.as-banner__img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.as-banner__img img {
  width: 100%;
  height: auto;
  display: block;
}

.as-banner__content {
  max-width: 600px;
}

/* h2 Roboto Bold sur fond sombre → px */
.as-banner__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* p → hérite de base.css */
.as-banner__text {
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* ─── 3 colonnes thématiques ────────────────────────────────── */

.as-cols {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 64px;
  text-align: center;
}

/* h3 Roboto Bold → px */
.as-col__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

/* p → hérite de base.css */
.as-col__text {
  line-height: 1.75;
  margin: 0;
}

/* ─── Section basse [gauche | image | droite] ───────────────── */

.as-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.as-bottom__left,
.as-bottom__right {
  max-width: 560px;
  width: 100%;
}

.as-bottom__img {
  width: 100%;
  max-width: 380px; /* plus grand */
  order: -1;
}

.as-bottom__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* h3 Roboto Bold → px */
.as-bottom__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.3;
}

/* p → hérite de base.css */
.as-bottom__text {
  line-height: 1.75;
  margin: 0;
}

/* ─── Tablettes 768px ───────────────────────────────────────── */

@media (min-width: 768px) {
  .as-body {
    padding-bottom: 96px;
  }

  .as-hero-wrap {
    padding-top: 48px;
  }

  .as-concept__img {
    max-width: 340px;
  }

  .as-quote {
    max-width: 640px;
    margin-top: -56px;
  }

  .as-quote__text {
    font-size: 40px;
  }

  .as-container {
    padding-top: 56px;
  }

  .as-intro__title {
    font-size: 30px;
  }

  .as-banner {
    padding: 48px 0;
  }

  .as-banner__title {
    font-size: 28px;
  }

  /* Plus de gap entre colonnes */
  .as-cols {
    gap: 44px;
  }

  .as-col__title {
    font-size: 26px;
  }

  .as-bottom {
    gap: 56px;
  }

  .as-bottom__title {
    font-size: 28px;
  }

  .as-bottom__img {
    max-width: 460px;
  }
}

@media (min-width: 820px) {
  .as-concept__img {
    max-width: 380px;
  }

  .as-quote {
    max-width: 680px;
    margin-top: -60px;
  }

  .as-quote__text {
    font-size: 45px;
  }

  .as-intro__title {
    font-size: 34px;
  }

  .as-banner__title {
    font-size: 32px;
  }

  .as-cols {
    gap: 52px;
  }

  .as-col__title {
    font-size: 30px;
  }

  .as-bottom {
    gap: 64px;
  }

  .as-bottom__title {
    font-size: 32px;
  }
}

@media (min-width: 992px) {
  .as-body {
    padding-bottom: 100px;
  }

  .as-concept__img {
    max-width: 420px;
  }

  .as-quote {
    max-width: 720px;
    margin-top: -64px;
  }

  .as-quote__text {
    font-size: 50px;
  }

  .as-intro__title {
    font-size: 38px;
  }

  .as-banner__title {
    font-size: 36px;
  }

  .as-cols {
    gap: 60px;
  }

  .as-bottom {
    gap: 72px;
  }

  .as-col__title {
    font-size: 34px;
  }

  .as-bottom__title {
    font-size: 34px;
  }

  .as-bottom__img {
    max-width: 520px;
  }
}

/* ─── Desktop 1200px ────────────────────────────────────────── */

@media (min-width: 1200px) {
  .as-body {
    padding-bottom: 110px;
  }

  .as-hero-wrap {
    padding-top: 60px;
  }

  /* Image réduite d'environ 50% par rapport à l'ancienne version */
  .as-concept__img {
    max-width: 360px;
  }

  .as-quote {
    max-width: 680px;
    margin-top: -72px;
  }

  .as-quote__text {
    font-size: 40px;
  }

  /* Intro alignée à gauche en desktop */
  .as-container {
    padding-top: 64px;
  }

  .as-intro {
    text-align: left;
  }

  .as-intro__title {
    font-size: 24px;
  }

  .as-intro__text {
    max-width: 780px;
  }

  /* Bannière : image gauche + texte droite aligné à droite */
  .as-banner {
    padding: 56px 0;
  }

  .as-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
    text-align: right;
  }

  .as-banner__img {
    max-width: 440px;
    flex: 0 0 440px;
  }

  .as-banner__content {
    max-width: none;
    flex: 1;
  }

  .as-banner__title {
    font-size: 22px;
  }

  /* 3 colonnes — centré en desktop */
  .as-cols {
    flex-direction: row;
    align-items: flex-start;
    text-align: center;
    gap: 40px;
    margin-bottom: 80px;
  }

  .as-col {
    flex: 1;
  }

  .as-col__title {
    font-size: 20px;
  }

  /* Section basse : [texte | image | texte] */
  .as-bottom {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .as-bottom__left {
    flex: 1;
    max-width: none;
    text-align: left;
  }

  .as-bottom__right {
    flex: 1;
    max-width: none;
    text-align: right;
  }

  .as-bottom__img {
    order: 0;
    flex: 0 0 400px;
    max-width: 400px;
  }

  .as-bottom__title {
    font-size: 20px;
  }
}
