/* === LAYOUT.CSS — Header minimal, footer éditorial === */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s2);
  z-index: 9999;
  padding: var(--s1) var(--s2);
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: var(--size-xs);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--dur-base);
}
.skip-link:focus {
  top: var(--s2);
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.1;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo small {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.nav-logo:hover .nav-logo-text {
  color: var(--accent);
}

/* Nav desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-links li a {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
  position: relative;
}

.nav-links li a:hover,
.nav-links li a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-links li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
}

/* CTA nav */
.btn-nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 9px 20px !important;
  background: var(--text-primary) !important;
  color: var(--bg-page) !important;
  border: 1px solid var(--text-primary) !important;
  font-size: var(--size-sm) !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  transition:
    background var(--dur-fast),
    color var(--dur-fast) !important;
}
.btn-nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg-page) !important;
}
.btn-nav-cta::after {
  display: none !important;
}

/* Social icon */
.nav-social {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  transition: color var(--dur-fast);
}
.nav-social:hover {
  color: var(--text-primary);
}
.nav-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  z-index: 999;
  background: var(--bg-page);
  padding: var(--s5) var(--container-pad);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.3);
}
.nav-overlay.is-active {
  display: block;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  width: 100%;
}

.nav-mobile ul li a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-mobile ul li a:hover {
  color: var(--accent);
}

.nav-mobile .btn-nav-cta {
  font-family: var(--font-body) !important;
  font-size: var(--size-base) !important;
  padding: 14px 28px !important;
  margin-top: var(--s2);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: var(--s2) 0;
  font-size: var(--size-xs);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--border-strong);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ── FOOTER ── */
/* ── FOOTER « Pō » — la nuit constellée tombe en fin de page.
   Fond bleu nuit (--bg-deep), constellation Matari'i (Pléiades) en veille :
   écho direct au calendrier mā'ohi célébré par l'association. 100% CSS,
   le HTML des 33 pages reste inchangé. ── */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  color: rgba(248, 244, 236, 0.78);
  padding-top: var(--s7);
  border-top: none;
  overflow: hidden;
}

/* Constellation : étoile mā'ohi 8 pointes + amas des Pléiades, coin supérieur droit */
.site-footer::before {
  content: "";
  position: absolute;
  top: 40px;
  right: max(4vw, 24px);
  width: 300px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='220' viewBox='0 0 300 220' fill='none'%3E%3Cg fill='%23F8F4EC'%3E%3Cpath d='M228 60 L231 81 L252 84 L231 87 L228 108 L225 87 L204 84 L225 81 Z' opacity='0.85'/%3E%3Cpath d='M228 67 L242 84 L228 101 L214 84 Z' opacity='0.35'/%3E%3Ccircle cx='96' cy='38' r='1.6' opacity='0.8'/%3E%3Ccircle cx='120' cy='52' r='1.2' opacity='0.55'/%3E%3Ccircle cx='84' cy='70' r='1.3' opacity='0.6'/%3E%3Ccircle cx='108' cy='84' r='1.8' opacity='0.9'/%3E%3Ccircle cx='134' cy='72' r='1.1' opacity='0.5'/%3E%3Ccircle cx='66' cy='52' r='1' opacity='0.45'/%3E%3Ccircle cx='148' cy='40' r='1.3' opacity='0.6'/%3E%3Ccircle cx='40' cy='120' r='1.2' opacity='0.5'/%3E%3Ccircle cx='180' cy='140' r='1.4' opacity='0.6'/%3E%3Ccircle cx='262' cy='150' r='1.1' opacity='0.5'/%3E%3Ccircle cx='250' cy='30' r='1.2' opacity='0.55'/%3E%3Ccircle cx='20' cy='30' r='1' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s6);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
}
.footer-logo-text [lang] {
  font-style: italic;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-lg);
  color: var(--or);
  margin-bottom: var(--s2);
  display: block;
}

.footer-identite address {
  font-size: var(--size-sm);
  font-style: normal;
  color: rgba(248, 244, 236, 0.62);
  line-height: var(--lh-loose);
  margin-top: var(--s2);
}

.footer-titre {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(248, 244, 236, 0.62);
  margin-bottom: var(--s3);
}

.footer-nav ul,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-nav a,
.footer-contact a {
  color: rgba(248, 244, 236, 0.85);
  font-size: var(--size-sm);
  text-decoration: none;
  width: fit-content;
  transition: color var(--dur-fast);
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--or);
  text-underline-offset: 5px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(248, 244, 236, 0.14);
  padding: var(--s3) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
}

.footer-bottom p {
  font-size: var(--size-xs);
  color: rgba(248, 244, 236, 0.55);
  text-align: left;
  margin: 0;
  max-width: none;
}

.footer-legal a {
  color: rgba(248, 244, 236, 0.75);
  text-decoration-color: rgba(248, 244, 236, 0.35);
}
.footer-legal a:hover {
  color: rgba(248, 244, 236, 1);
}

.footer-credit {
  letter-spacing: 0.04em;
}
.footer-credit span {
  color: rgba(248, 244, 236, 0.8);
  font-weight: 500;
}

/* Footer ornement minimal */
.footer-ornement {
  display: none;
}

/* ── SECTIONS ── */
.section-dark {
  background: var(--bg-deep);
  color: var(--text-on-dark);
}
.section-abyss {
  background: var(--bg-deep);
  color: var(--text-on-dark);
}
.section-sable {
  background: var(--bg-soft);
}
.section-perle {
  background: var(--bg-page);
}
.section-blanc {
  background: var(--bg-elevated);
}
.section-lagon,
.section-corail {
  background: var(--accent);
  color: var(--text-on-dark);
}
.section-surface {
  background: var(--bg-soft);
}

.section-pad {
  padding-block: var(--s7);
}
.section-pad-sm {
  padding-block: var(--s5);
}

.section-titre {
  margin-bottom: var(--s5);
  max-width: 720px;
}
.section-titre h2 {
  margin-bottom: var(--s2);
}
.section-titre p {
  font-size: var(--size-lg);
  color: var(--text-secondary);
  max-width: 640px;
}

/* Override texte sur sections sombres (fond --bg-deep ou --accent) */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-lagon h1,
.section-lagon h2,
.section-lagon h3,
.section-lagon h4,
.section-corail h1,
.section-corail h2,
.section-corail h3,
.section-corail h4 {
  color: var(--text-on-dark);
}
.section-dark p,
.section-lagon p,
.section-corail p {
  color: rgba(250, 249, 246, 0.78);
}
.section-dark a,
.section-lagon a,
.section-corail a {
  color: var(--bg-page);
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .nav-links,
  .nav-social {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}
