/* SAWT PAY — Thème clair, rouge marque (#A61D21) */

:root {
  --brand: #a61d21;
  --brand-hover: #8c181c;
  --brand-soft: rgba(166, 29, 33, 0.08);
  --brand-border: rgba(166, 29, 33, 0.22);
  --text: #2d2e32;
  --text-muted: #5c5f66;
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --border: rgba(45, 46, 50, 0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Page en construction — léger */

.page--construction {
  min-height: 100vh;
}

.construction {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--brand);
}

.construction__top {
  padding: 1rem 1.25rem;
  text-align: right;
}

.construction__nav {
  font-size: 0.8125rem;
  font-weight: 500;
}

.construction__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.construction__nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.construction__nav-sep {
  margin: 0 0.35rem;
  color: var(--border);
  user-select: none;
}

.construction__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}

.construction__logo {
  width: auto;
  max-width: min(200px, 55vw);
  max-height: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
}

.construction__badge {
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
}

.construction__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
}

.construction__text {
  margin: 0 0 1.75rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.construction__text strong {
  color: var(--text);
  font-weight: 600;
}

.construction__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 420px) {
  .construction__form {
    flex-direction: row;
    align-items: stretch;
    max-width: 26rem;
  }

  .construction__form .btn {
    flex-shrink: 0;
  }
}

.construction__input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.construction__input::placeholder {
  color: #9a9da3;
}

.construction__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.construction__feedback {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}

.construction__feedback[hidden] {
  display: none !important;
}

.construction__footer {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}

.construction__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #8e9198;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  color: #fff;
  background: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--primary:active {
  transform: scale(0.98);
}

/* Header (pages légales) */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--brand);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.92;
  text-decoration: none;
}

.logo--image img {
  display: block;
  width: auto;
  height: 40px;
}

@media (min-width: 480px) {
  .logo--image img {
    height: 44px;
  }
}

.nav {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Pages légales */

.page--legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page--legal .legal {
  flex: 1;
}

.legal {
  padding: clamp(1.75rem, 5vw, 2.5rem) 0 clamp(2.5rem, 8vw, 3.5rem);
}

.legal__inner {
  max-width: 42rem;
}

.legal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal__meta {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal__section {
  margin-bottom: 1.5rem;
}

.legal__section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal__section p,
.legal__section li {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal__section ul {
  margin: 0 0 0.65rem;
  padding-left: 1.25rem;
}

.legal__section li {
  margin-bottom: 0.35rem;
}

.legal__back {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.legal__back a {
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Footer légal */

.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer__inner {
  display: grid;
  gap: 1rem;
  text-align: center;
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: center;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer__links {
    justify-content: flex-end;
  }
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--brand);
}

.footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #8e9198;
}

.logo--footer img {
  height: 36px;
  width: auto;
}

.footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
