/* Trade Republic–inspired refonte — minimal, high contrast */

:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f7;
  --bg-dark: #0a0a0a;
  --text: #0a0a0a;
  --text-muted: #5c5c5c;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: #a3a3a3;
  --border: #e8e8e8;
  --accent: #c8ff00;
  --accent-hover: #b8eb00;
  --max: 1120px;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--text);
  border-radius: 6px;
}

.nav-main {
  display: none;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-main a:hover {
  opacity: 0.65;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
}

.btn-primary {
  background: var(--text);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: #262626;
}

.btn-accent {
  background: var(--text);
  color: var(--text-on-dark);
}

.btn-accent:hover {
  background: #262626;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

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

.mobile-nav a {
  padding: 0.5rem 0;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 1 / 1;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08);
}

.hero-video,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video[hidden],
.hero-fallback[hidden] {
  display: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.section-dark .card-icon .icon {
  color: var(--text-on-dark);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-dark .section-header p {
  color: var(--text-muted-on-dark);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #ccc;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.section-dark .card {
  background: #141414;
  border-color: #2a2a2a;
}

.section-dark .card:hover {
  border-color: #404040;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-elevated);
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  color: var(--text);
}

.section-dark .card-icon {
  background: #222;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .card p {
  color: var(--text-muted-on-dark);
}

/* Trust — split layout */
.trust-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.trust-copy h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.trust-line {
  margin: 0 0 1.75rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.trust-line strong {
  font-weight: 600;
  color: var(--text-on-dark);
}

.trust-line-muted {
  color: var(--text-muted-on-dark);
  font-weight: 400;
}

.trust-visual {
  border-radius: 28px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 1 / 1;
}

.trust-visual img,
.trust-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-trust {
  padding: 5rem 0;
  background: #000;
  color: #fff;
}

/* FAQ */
.section-faq {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.faq-title {
  margin: 0 0 2.5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.faq-icon .icon {
  width: 22px;
  height: 22px;
  grid-area: 1 / 1;
}

.faq-icon .icon-minus {
  opacity: 0;
}

.faq-item[open] .faq-icon .icon-plus {
  opacity: 0;
}

.faq-item[open] .faq-icon .icon-minus {
  opacity: 1;
}

.faq-answer {
  padding: 0 0 1.5rem;
  max-width: 42rem;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 3rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--text);
}

.footer-disclaimer {
  margin: 0 0 3rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 52rem;
}

.footer-main {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #8a8a8a;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-locale {
  justify-self: start;
}

.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-lang-select-wrap--compact {
  margin-top: 0;
  max-width: 9.5rem;
}

.footer-lang-select-wrap--compact .footer-lang-label {
  display: none;
}

.footer-lang-select-wrap--compact .footer-lang-select {
  padding: 0.35rem 1.75rem 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.footer-lang-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 11rem;
}

.footer-lang-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
}

.footer-lang-select {
  width: 100%;
  margin: 0;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
  transition: border-color 0.2s;
}

.footer-lang-select:hover,
.footer-lang-select:focus {
  border-color: #bdbdbd;
  outline: none;
}

.footer-lang-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

/* Google Translate : traduction via le footer, sans barre Google */
.trade-gtranslate-host,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.skiptranslate {
  height: 0 !important;
  overflow: hidden !important;
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-legal-row a:hover {
  opacity: 0.65;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--text-on-dark);
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.75;
}

.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
}

.footer-bottom p {
  margin: 0;
}

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

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-split {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: start;
  }

  .footer-locale {
    justify-self: end;
    text-align: right;
  }

  .footer-region {
    justify-content: flex-end;
  }

  .footer-lang-select-wrap {
    align-items: flex-end;
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }
}

@media (max-width: 767px) {
  .site-logo-img {
    width: auto;
    max-width: min(160px, 48vw);
    height: auto;
  }

  .header-inner {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-actions .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-trust {
    padding: 3rem 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card {
    padding: 1.35rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-locale {
    grid-column: 1 / -1;
  }

  .faq-question {
    font-size: 1rem;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-legal-row {
    flex-direction: column;
    gap: 0.65rem;
  }
}
