/* ========== En-tête ========== */
.site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 24, 41, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 44px; height: 44px; }
.brand__name { font-weight: 700; font-size: 17px; }
.brand:hover { color: var(--text); }

.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-6);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: 4px 20px 24px;
  border-top: 1px solid var(--line);
}
.mobile-panel ul { margin: 0; padding: 0; list-style: none; }
.mobile-panel ul a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a[aria-current="page"] { color: var(--accent); }
.mobile-panel .btn-main {
  margin-top: 20px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .menu-btn { display: inline-flex !important; }
  .mobile-panel:not([hidden]) { display: flex; }
}
@media (min-width: 861px) {
  .mobile-panel { display: none !important; }
}

/* ========== Fil d'Ariane ========== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-2);
}
.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li { display: flex; gap: 8px; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ========== Pied de page ========== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-footer);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.site-footer__brand {
  flex: 1 1 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__brand .brand { gap: 14px; }
.site-footer__brand .brand img { width: 52px; height: 52px; }
.site-footer__brand .brand__name { font-size: 18px; }
.site-footer__brand p { color: var(--text-2); font-size: 15px; }

.footer-nav {
  flex: 2 1 480px;
  display: grid;
  /* Maquette : minmax(160px). La colonne Contact doit contenir l'e-mail sur une ligne : colonnes à contenu. */
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), max-content));
  justify-content: space-between;
  gap: 32px;
  font-size: 15px;
}
.footer-nav__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
}
.site-footer__legal ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 16px; }

/* ========== Page légale ========== */
.legal {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) var(--section-y);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
.legal__toc {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--text-2);
  align-self: flex-start;
}
.legal__toc .label { margin-bottom: 10px; }
.legal__toc a { min-height: 40px; display: flex; align-items: center; }
.legal__content {
  flex: 999 1 640px;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}
.legal__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal__section:first-child { padding-top: 0; }
.legal__section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal__section h2 { font-weight: 600; font-size: 26px; letter-spacing: -0.015em; line-height: 1.3; }
.legal__section p { color: var(--text-3); }
.legal__section a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .legal__toc { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ========== Contenu de page générique ========== */
.page-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-hero h1 {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.prose {
  max-width: 820px;
  color: var(--text-3);
  line-height: 1.7;
}
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--text); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; margin-top: 1.6em; }
.prose h3 { color: var(--text); font-weight: 600; font-size: 21px; margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: var(--r-md); }
