/* ===========================
   SHARED HEADER & FOOTER
   =========================== */

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

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* Honeypot anti-spam field — hidden from users, visible to bots */
.ck-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-header .navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 40px;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
}

.site-header .logo {
  flex-shrink: 0;
  line-height: 0;
}

.site-header .logo img {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.site-header:not(.site-header--dark) .logo img {
  filter: none;
}

.site-header .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  justify-self: center;
}

.site-header .nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  opacity: 0.55;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  justify-self: end;
}

.site-header .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header .nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #111;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header--dark .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header--dark .nav-toggle-bar {
  background: #fff;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.nav-open .nav-backdrop {
  display: block;
  opacity: 1;
}

.site-header .portal-link {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header .portal-link:hover {
  background: #111;
  color: #fff;
}

.site-header--dark .portal-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header--dark .portal-link:hover {
  background: #fff;
  color: #111;
}

.site-header .social-icons {
  display: flex;
  align-items: center;
}

.site-header .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 0;
}

.site-header .languages a,
.site-header .languages .lang-btn {
  color: #111;
  text-decoration: none;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.site-header .languages {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 8px;
}

.site-header .languages .lang-sep {
  font-size: 12px;
  opacity: 0.35;
  margin: 0 2px;
  user-select: none;
}

.site-header .languages a.active,
.site-header .languages .lang-btn.active {
  font-weight: 600;
}

/* Dark header variant — blog, communauté, about pages */
.site-header--dark,
.site-header--dark .navbar {
  background: #000;
  border-bottom-color: #222;
}

.site-header--dark .nav-links a,
.site-header--dark .languages a,
.site-header--dark .languages .lang-btn {
  color: #fff;
}

/* --- Shared centered video block --- */
.site-video-block {
  background: #1e1e1e;
  padding: 48px 24px 56px;
  text-align: center;
}

.site-video-frame {
  position: relative;
  width: 68%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 4px;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.site-video-play:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: #fff;
}

.site-video-frame.is-playing .site-video-play {
  opacity: 0;
  pointer-events: none;
}

.site-video-caption {
  margin: 20px auto 0;
  max-width: 920px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .site-video-frame {
    width: 92%;
  }
}

/* --- Footer (unified site-wide) --- */
.site-footer {
  background: #000;
  color: #fff;
  padding: 56px 0 28px;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  border-top: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr 1fr 1fr;
  gap: 32px 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo-box {
  display: inline-block;
  line-height: 0;
}

.footer-logo-box img {
  display: block;
  height: auto;
  width: auto;
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.footer-tagline {
  margin: -8px 0 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer img {
  max-width: none;
}

.site-footer .social-links a img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: block;
  width: 100%;
  color: #fff;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0 0 4px;
}

.footer-col p a {
  color: inherit;
}

.copyright {
  text-align: right;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 32px;
}

.footer-credit {
  text-align: right;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  max-width: 1280px;
  margin: 8px auto 0;
  padding: 0 32px;
  line-height: 1.5;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* Shared social links — same icons/links everywhere */
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.social-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.social-links a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* White icons on dark backgrounds (footer + dark header) */
.social-links--footer a,
.social-links--header-dark a {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.45);
}

.social-links--footer a img,
.social-links--header-dark a img {
  filter: brightness(0) invert(1);
}

.social-links--footer a:hover,
.social-links--header-dark a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}

/* Dark icons on light backgrounds (default header + contact bar) */
.social-links--header a,
.social-links--bar a {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.social-links--header a:hover,
.social-links--bar a:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links--header a img,
.social-links--bar a img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}

.social-links--header a:hover img,
.social-links--bar a:hover img {
  opacity: 1;
}

.site-header--dark .logo img {
  filter: none;
}

/* Responsive header/footer */
@media (max-width: 1100px) {
  .site-header .navbar {
    gap: 16px;
    padding: 12px 24px;
  }

  .site-header .nav-links {
    gap: 18px;
  }

  .site-header .nav-links a {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .site-header .navbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
  }

  .site-header .logo img {
    max-height: 44px;
    max-width: 160px;
  }

  .site-header .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-header .header-right {
    order: 3;
    gap: 8px;
  }

  .site-header .social-icons {
    display: none;
  }

  .site-header .portal-link {
    font-size: 10px;
    padding: 5px 10px;
  }

  .site-header .languages a,
  .site-header .languages .lang-btn {
    font-size: 11px;
  }

  .site-header .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 24px 32px;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1002;
    overflow-y: auto;
  }

  .site-header .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-header .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  body.nav-open .site-header .nav-links {
    transform: translateX(0);
  }

  .site-header--dark .nav-links {
    background: #0a0a0a;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }

  .site-header--dark .nav-links li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }

  .footer-credit {
    text-align: center;
  }
}

html[dir="rtl"] .site-header .nav-links,
html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .site-header .languages a {
  margin-left: 0;
  margin-right: 6px;
}
.community-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.community-link:hover {
  opacity: 0.65;
}
