*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Prevents the browser from auto-adjusting scrollTop when the sticky
     header resizes on scroll, which would otherwise re-trigger the scroll
     listener in a feedback loop (header shrinking/growing endlessly). */
  overflow-anchor: none;
}

body {
  background-color: #000000;
  color: #f0ebe3;
  font-family: 'Raleway', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  /* Always rendered at its compact size: its box height never changes with
     scroll state, so it can never affect the document's total scrollable
     height (which previously caused feedback loops on short pages / certain
     viewport heights). The large logo reveal lives in main as a normal,
     non-sticky element instead — see .hero-logo. */
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px 12px;
  gap: 12px;
  background-color: #000000;
  transition: border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  border-bottom-color: #1e1e1e;
}

header img {
  width: 100%;
  max-width: 140px;
  height: auto;
  /* Hidden until the user has scrolled past the big hero logo in main, so
     the two logos are never visible at the same time. Opacity/visibility
     only — never affects the header's box height (see header rule above). */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

header.scrolled img {
  opacity: 1;
  visibility: visible;
}

@keyframes logoZoom {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0px 24px 16px;
}

.hero-logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  animation: logoZoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-toggle {
  position: absolute;
  top: 10px;
  right: 24px;
  width: 44px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 210;
  padding: 6px 0 4px;
}

.burger-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #E2BF94;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E2BF94;
  transition: opacity 0.3s ease;
}

.menu-toggle.active .menu-label {
  opacity: 0;
}

.menu-toggle.active .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 150;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: #0f0f0f;
  border-left: 1px solid #2a2a2a;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 88px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.site-nav.open {
  transform: translateX(0);
}

.site-nav > a {
  color: #f0ebe3;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 4px;
  border-bottom: 1px solid #2a2a2a;
  transition: color 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.active {
  color: #E2BF94;
}

.nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #E2BF94;
  cursor: pointer;
}

.nav-close svg {
  width: 22px;
  height: 22px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transition: gap 0.4s ease;
}

.site-nav .btn-group {
  max-width: none;
  margin-top: 20px;
}

.sticky-cta {
  /* Stays pinned to the bottom of the viewport while scrolling through the
     page, then releases back into its normal position once the page's
     natural end approaches it — native position:sticky behavior, no JS.
     Doesn't affect the document's scrollable height (sticky elements keep
     their reserved space in flow), so this cannot reintroduce the
     header/scrollHeight feedback loop. */
  position: sticky;
  bottom: 24px;
  z-index: 50;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  text-align: center;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

@keyframes gradientSlide {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary {
  background: linear-gradient(270deg, #f0d4a8, #BC7825, #E2BF94, #a85e10);
  background-size: 300% 300%;
  color: #0a0a0a;
  animation: gradientSlide 6s ease infinite;
}

.btn-secondary {
  background: transparent;
  color: #E2BF94;
  border: none;
  position: relative;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 2px;
  background: linear-gradient(270deg, #f0d4a8, #BC7825, #E2BF94, #a85e10);
  background-size: 300% 300%;
  animation: gradientSlide 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.btn-secondary:hover {
  background: rgba(188, 120, 37, 0.575);
  opacity: 1;
}

.card-presidence {
  position: relative;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(270deg, #f0d4a8, #BC7825, #E2BF94, #a85e10);
  background-size: 300% 300%;
  animation: gradientSlide 6s ease infinite;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.card-presidence-inner {
  background: #0f0f0f;
  border-radius: 9px;
  padding: 36px 40px;
}

.card-presidence-inner p {
  max-width: 640px;
}

main {
  width: 100%;
  max-width: 800px;
  padding: 0px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gradient-title {
  background: linear-gradient(to bottom, #E2BF94, #BC7825);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1.gradient-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

h2.gradient-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #BC7825;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

h3.gradient-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  text-align: center;
}

h3.left-aligned.gradient-title {
  font-style: normal;
  text-align: left;
}

a {
  color: #E2BF94;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #e7dfd2;
}

.text-content p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #e7dfd2;
  margin-bottom: 1.5rem;
}

.text-content p:last-child {
  margin-bottom: 0;
}

.text-author {
  margin-top: 2rem;
  font-weight: 600;
  color: #E2BF94;
}

.btn .ext-icon {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.4em;
  vertical-align: middle;
  opacity: 0.7;
  flex-shrink: 0;
}

.align-center {
  text-align: center;
}

.btn-text-wrap {
  text-align: center;
}

.nobrk {
  white-space: nowrap;
}

footer {
  margin-top: auto;
  padding: 24px;
  font-size: 0.8rem;
  color: #8f8f8f;
  text-align: center;
}

/* ── Mentions légales ── */

.ml-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #E2BF94;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.ml-back:hover { text-decoration: underline; }

.ml-section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ml-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2BF94;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.ml-block p,
.ml-block address {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #c9c0b5;
}

