/* =========================================================
   LUNIRA CONTENT — ABOUT / LEGAL / CONTACT
   Pages :
   - about.php
   - contact.php
   - comprendre_Lunira.php
   - fondements_methode.php
   - cgu.php
   - politique_Confidentialite.php
   etc.
   ========================================================= */

/* =========================
   HEADER
   ========================= */

.lunira-content__header {
  padding-top: 1.5rem;
}

.lunira-content__title {
  max-width: min(92vw, 820px);

  margin: 0 auto 1.5rem;

  color: #ffffff;

  font-size: clamp(2rem, 6vw, 3.8rem);

  text-align: center;
  line-height: 1.06;
}

/* =========================
   MAIN
   ========================= */

.lunira-content__main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* =========================
   ARTICLE / CARD
   ========================= */

.lunira-content__article {
  width: min(92vw, 760px);

  text-align: left;
}

.lunira-content__article:hover {
  transform: none;
}

/* =========================
   NAV
   ========================= */

.lunira-content__nav {
  width: 100%;
}

/* =========================
   LOGO
   ========================= */

.lunira-content__article .lunira-brand {
  margin-bottom: 1rem;

  color: #d6d6f5;

  text-shadow:
    0 0 18px rgba(214,214,245,.35);
}

.lunira-content__article .lunira-brand__moon {
  font-size: 2.4rem;
}

.lunira-content__article .lunira-brand__star {
  font-size: 1rem;

  transform: translateY(-.35rem);
}

/* =========================
   INTRO / SUBTITLE
   ========================= */

.lunira-content__subtitle,
.lunira-content__intro {
  max-width: 620px;

  margin:
    0 auto
    2rem;

  color: rgba(255,255,255,.84);

  font-size: 1.08rem;
  line-height: 1.75;

  text-align: center;
}

/* =========================
   LIST
   ========================= */

.lunira-content__list {
  display: grid;
  gap: 1rem;

  width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
}

.lunira-content__item {
  width: 100%;
}

/* =========================
   BUTTONS / LINKS
   ========================= */

.lunira-content__button {
  width: 100%;

  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 1.25rem;

  border-radius: 22px;

  background: rgba(253,252,249,.94);

  color: #12252d;

  border: 1px solid rgba(255,255,255,.35);

  font-size: 1.05rem;
  font-weight: 800;

  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  white-space: normal;
  overflow-wrap: anywhere;

  box-shadow:
    0 14px 34px rgba(0,0,0,.20);

  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.lunira-content__button:hover,
.lunira-content__button:focus-visible {
  background:
    linear-gradient(
      135deg,
      #d6d6f5 0%,
      #94d2bd 100%
    );

  color: #08222b;

  transform: translateY(-3px);

  box-shadow:
    0 18px 42px rgba(0,0,0,.28);
}

/* Variante danger éventuelle */
.lunira-content__button--danger {
  background: rgba(185,16,16,.16);

  color: #fdfcf9;
}

.lunira-content__button--danger:hover,
.lunira-content__button--danger:focus-visible {
  background: rgba(185,16,16,.30);

  color: #ffffff;
}

/* =========================
   CONTENT SECTIONS
   ========================= */

.lunira-content__section {
  margin-top: 2rem;
}

.lunira-content__section:first-child {
  margin-top: 0;
}

.lunira-content__section h2 {
  margin-bottom: 1rem;

  color: #ffffff;

  font-size: clamp(1.35rem, 4vw, 2rem);

  line-height: 1.15;
}

.lunira-content__section h3 {
  margin:
    1.5rem 0
    .75rem;

  color: rgba(255,255,255,.92);

  font-size: 1.15rem;
}

/* =========================
   TEXT
   ========================= */

.lunira-content__text,
.lunira-content-page p {
  color: rgba(255,255,255,.88);

  line-height: 1.9;

  font-size: 1.04rem;

  overflow-wrap: anywhere;
}

.lunira-content-page strong {
  color: #ffffff;
}

.lunira-content-page a {
  color: #d6d6f5;

  text-decoration: none;
}

.lunira-content-page a:hover,
.lunira-content-page a:focus-visible {
  text-decoration: underline;
}

/* =========================
   ARTICLE LISTS
   ========================= */

.lunira-content-page ul:not(.lunira-content__list),
.lunira-content-page ol {
  padding-left: 1.4rem;

  color: rgba(255,255,255,.88);

  line-height: 1.8;
}

.lunira-content-page li {
  margin-bottom: .65rem;
}

/* =========================
   BACK
   ========================= */

.valider.lunira-content__back {
  display: flex;
  justify-content: center;

  margin-top: 2rem;
}

.valider.lunira-content__back a {
  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(253,252,249,.94);

  box-shadow:
    0 14px 34px rgba(0,0,0,.22);

  transition:
    background .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.valider.lunira-content__back a:hover,
.valider.lunira-content__back a:focus-visible {
  background: #ffffff;

  transform: translateY(-2px) scale(1.04);

  box-shadow:
    0 18px 42px rgba(0,0,0,.28);
}

.valider.lunira-content__back img {
  width: 40px;
  height: 40px;

  padding: .35rem;

  background: transparent;
  box-shadow: none;
}

/* =========================
   ALERT
   ========================= */

.custom-alert {
  position: fixed;

  top: 20px;
  right: 20px;

  max-width: min(92vw, 420px);

  padding: 1rem 1.25rem;

  border-radius: 16px;

  background: rgba(253,252,249,.96);

  box-shadow:
    0 18px 42px rgba(0,0,0,.24);

  z-index: 3000;
}

/* Alerte invisible par défaut */
.lunira-content-page .custom-alert {
  display: none;
}

.lunira-content-page .custom-alert[data-flash="1"],
.lunira-content-page .custom-alert.is-visible {
  display: block;
}

/* Logo centré + couleur correcte */
.lunira-content__article .lunira-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;

  width: 100%;
  margin: 0 auto 1.25rem;

  color: #94d2bd;
  text-align: center;

  text-shadow: 0 0 18px rgba(148,210,189,.35);
}

.lunira-content__article .lunira-brand__moon {
  font-size: 2.7rem;
  line-height: 1;
}

.lunira-content__article .lunira-brand__star {
  font-size: 1.1rem;
  line-height: 1;

  transform: translateY(-.45rem);
}

/* Correction couleur normale des boutons/liens du menu */
.lunira-content__list .lunira-content__button,
.lunira-content__list li a {
  background: rgba(253,252,249,.94);
  color: #12252d;
}

/* Hover propre */
.lunira-content__list .lunira-content__button:hover,
.lunira-content__list .lunira-content__button:focus-visible,
.lunira-content__list li a:hover,
.lunira-content__list li a:focus-visible {
  background: linear-gradient(135deg, #d6d6f5 0%, #94d2bd 100%);
  color: #08222b;
}

/* Footer : éviter l’héritage couleur des liens content */
.lunira-content-page .lunira-footer {
  color: #12252d;
}

.lunira-content-page .lunira-footer a,
.lunira-content-page .lunira-footer .sep {
  color: #005f73;
}

.lunira-content-page .lunira-footer a:hover,
.lunira-content-page .lunira-footer a:focus-visible {
  color: #0b3d4a;
}

/* Footer texte */
.lunira-content-page .lunira-footer p,
.lunira-content-page .footer-slogan,
.lunira-content-page .footer-slogan-inline {
  color: #12252d;
}

/* =========================================================
   VARIANTE — CONTENT HUB
   Pages menu :
   - about.php
   - comprendre_Lunira.php
   ========================================================= */

.lunira-content-page--hub .lunira-content__article {
  max-width: 620px;

  text-align: center;
}

.lunira-content-page--hub .lunira-content__nav {
  max-width: 460px;

  margin: 0 auto;
}

.lunira-content-page--hub .lunira-content__list {
  gap: .9rem;
}

.lunira-content-page--hub .lunira-content__button {
  min-height: 58px;
}

/* =========================================================
   VARIANTE — ARTICLE CONTENT
   Pages texte longues :
   - fondements_methode.php
   - ambition_Lunira.php
   - philosophie_Lunira.php
   etc.
   ========================================================= */

.lunira-content-page--article .lunira-content__article {
  max-width: 820px;
}

/* =========================
   SECTION ARTICLE
   ========================= */

.lunira-content-page--article .lunira-content__section {
  text-align: left;
}

/* =========================
   TITRE ARTICLE
   ========================= */

.lunira-content-page--article h2 {
  max-width: 720px;

  margin:
    0 auto
    2rem;

  color: #ffffff;

  font-size: clamp(1.7rem, 5vw, 2.6rem);

  text-align: center;
  line-height: 1.15;
}

/* =========================
   PARAGRAPHES
   ========================= */

.lunira-content-page--article p {
  max-width: 720px;

  margin:
    0 auto
    1.5rem;

  color: rgba(255,255,255,.88);

  font-size: 1.06rem;
  line-height: 1.95;
}

/* =========================
   LISTES ARTICLE
   ========================= */

.lunira-content__article-list {
  max-width: 720px;

  margin:
    1.5rem auto
    2rem;

  padding-left: 1.25rem;

  border-radius: 24px;

  background:
    rgba(214,214,245,.12);

  border:
    1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);

  padding:
    1.5rem 1.5rem
    1.25rem;
}

.lunira-content__article-list li {
  margin-bottom: .9rem;

  color: rgba(255,255,255,.88);

  line-height: 1.75;

  list-style: disc;
}

.lunira-content__article-list li:last-child {
  margin-bottom: 0;
}

/* =========================
   EMPHASE
   ========================= */

.lunira-content-page--article strong {
  color: #ffffff;
}

/* =========================
   highlight
   ========================= */

.lunira-content__highlight {
  max-width: 680px;
  margin: 2rem auto 1.5rem;
  padding: 1.25rem 1.5rem;

  border-radius: 24px;

  background: rgba(148,210,189,.16);
  border: 1px solid rgba(255,255,255,.12);

  text-align: center;
}

.lunira-content__highlight strong {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.7;
}

/* Sous-titres article */
.lunira-content-page--article h3 {
  max-width: 720px;

  margin:
    2.5rem auto
    1rem;

  color: #ffffff;

  font-size: clamp(1.2rem, 4vw, 1.5rem);

  line-height: 1.3;
}

/* =========================================================
   VARIANTE — ARTICLE CONTEMPLATIF
   ========================================================= */

.lunira-content__signature {
  max-width: 620px;

  margin:
    .5rem auto
    0;

  color: rgba(255,255,255,.82);

  font-size: 1rem;
  line-height: 1.7;

  text-align: center;

  opacity: .92;
}

.lunira-content__centered {
  text-align: center;
}

.lunira-content__centered p {
  max-width: 680px;
}

.lunira-content__centered .lunira-identity {
  font-style: italic;

  color: rgba(255,255,255,.96);
}

/* Emphase présentation */
.lunira-content__emphasis {
  font-size: 1.12rem;

  color: rgba(255,255,255,.96);

  font-style: italic;
}

/* Bloc résumé philosophie */
.lunira-content__summary {
  margin-top: 3rem;
  padding-top: 2rem;

  border-top:
    1px solid rgba(255,255,255,.10);
}

.lunira-content__summary h3 {
  margin-top: 0;
}

/* =========================================================
   VARIANTE — CONTACT
   ========================================================= */

.lunira-content-page--contact .lunira-content__article {
  max-width: 760px;
}

.lunira-content__contact {
  text-align: center;
}

.lunira-content__contact p {
  max-width: 680px;
}

.lunira-content__contact-email {
  margin:
    2rem auto;

  padding:
    1.1rem 1.4rem;

  border-radius: 22px;

  background:
    rgba(148,210,189,.14);

  border:
    1px solid rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05);

  font-size: 1.08rem;
  font-weight: 700;

  text-align: center;
}

.lunira-content__contact-email a {
  color: #ffffff;

  text-decoration: none;

  overflow-wrap: anywhere;
}

.lunira-content__contact-email a:hover,
.lunira-content__contact-email a:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   VARIANTE — LEGAL
   ========================================================= */

.lunira-content-page--legal .lunira-content__main {
  display: block;

  max-width: 980px;
  margin: 0 auto;

  padding-top: 3rem;
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
}

/* Logo legal centré + bonne couleur */
.lunira-content-page--legal .lunira-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;

  width: 100%;
  margin: 0 auto 1.75rem;

  color: #94d2bd;
  text-align: center;

  text-shadow: 0 0 18px rgba(148,210,189,.35);
}

.lunira-content-page--legal .lunira-brand__moon {
  font-size: 2.7rem;
  line-height: 1;
}

.lunira-content-page--legal .lunira-brand__star {
  font-size: 1.1rem;
  line-height: 1;

  transform: translateY(-.45rem);
}

.lunira-content__legal-section {
  width: min(92vw, 920px);

  margin:
    0 auto
    1.2rem;

  padding:
    1.8rem
    1.8rem
    1.6rem;

  border-radius: 28px;

  background: rgba(253,252,249,.14);

  border: 1px solid rgba(255,255,255,.10);

  box-shadow:
    0 10px 30px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.04);

  backdrop-filter: blur(6px);
}

.lunira-content__legal-section h2 {
  margin-top: 0;

  color: #ffffff;

  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.25;
}

.lunira-content__legal-section p,
.lunira-content__legal-section li {
  color: rgba(255,255,255,.90);

  line-height: 1.85;
}

.lunira-content-page--legal .lunira-content__article-list {
  margin-top: 1rem;
}

/* =========================
   MOBILE
   ========================= */


@media (max-width: 640px) {
  .lunira-content__legal-section {
    padding:
      1.4rem
      1.2rem;
  }
}

@media (max-width: 640px) {
  .lunira-content-page--article p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .lunira-content__article-list {
    padding:
      1.25rem
      1.1rem;
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 640px) {
  .lunira-content__article {
    width: min(94vw, 760px);
  }

  .lunira-content__title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .lunira-content__button {
    min-height: 58px;

    font-size: 1rem;
  }

  .lunira-content__text,
  .lunira-content-page p {
    font-size: 1rem;

    line-height: 1.8;
  }
}

@media (max-height: 700px) {
  .lunira-content__main {
    align-items: flex-start;
  }
}