/* landing.css */
@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --vinted-color: #008c8c;
  --light-bg: #f1fafa;
  --cta-color: #008c8c;
  --gray-text: #555;
  --font-base: 'Satoshi', 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
}

body {
  font-family: var(--font-base);
  background-color: white;
  color: #222;
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px; /* A reporter aussi dans profile.css si on change cette valeur */
  padding: 0 1rem;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 150px;
  width: auto;
}

.nav-links a.login-link {
  color: var(--gray-text);
  text-decoration: none;
  margin-right: 0.5rem;
  font-weight: 500;
}

.burger-menu {
  position: relative;
}

.burger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--vinted-color);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1;
  border: none;
  cursor: pointer;
}

.burger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.burger-dropdown.show {
  display: block;
}

.burger-dropdown a,
.burger-dropdown form button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--vinted-color);
  background: white;
  border: none;
  border-left: 4px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-base);
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.burger-dropdown a:hover,
.burger-dropdown form button:hover {
  background-color: var(--light-bg);
  border-left: 4px solid var(--vinted-color);
  font-weight: bold;
}

.affiliate-ribbon {
  background: #f1fbfb;
  border-bottom: 1rem  solid #f1fbfb;
}

.affiliated .affiliate-ribbon { display: none; }

.affiliate-ribbon .container { text-align: center; }

.affiliate-ribbon .container .subtitle {
  color: var(--gray-text);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.affiliate-ribbon .container > div:last-child {
  display: flex;
  justify-content: center; /* centre le bouton */
}

.affiliate-ribbon .centered-cta {
  display: inline-block;
  margin: 0.5rem auto 0;   /* s’assure d’un vrai centrage */
  float: none;             /* neutralise tout float résiduel */
}

.ribbon-emoji { font-size: 1.25rem; }

.ribbon-text { color: #065; }

.ribbon-cta { padding: 6px 10px; font-size: 0.95rem; }

.cta,
.plan-cta,
.centered-cta {
  display: inline-flex !important;      /* évite tout override résiduel */
  justify-content: center !important;   /* centre horizontalement le contenu */
  align-items: center !important;       /* centre verticalement la ligne de texte */
  text-align: center !important;        /* ceinture et bretelles si du texte inline est présent */
  margin-left: auto;                    /* centre le bouton lui-même dans sa colonne */
  margin-right: auto;
  width: auto;                          /* sur desktop, largeur au plus juste */
  background-color: var(--vinted-color);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 0rem 0rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom, white, var(--light-bg));
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  word-break: keep-all;        /* évite les retours à la ligne imprévus */
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  color: var(--gray-text);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.problem-statement {
  text-align: center;
  padding: 0;
  margin: 0;
  background-color: white;
}

.comparison {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: var(--light-bg);
  padding: 2rem 1rem;
  margin-top: 0.5rem;
}

.comparison .column {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comparison .column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.comparison .column ul {
  list-style: none;
  padding-left: 0;
}

.comparison .column ul li {
  margin: 0.5rem 0;
}

.how h2,
.plans h2 {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.plans .column {
  display: flex;           
  flex-direction: column;    
}

.plans .column .plan-cta {
  align-self: center;
}


.comparison .column:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.comparison .column {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-video {
  padding-top: 0rem;
  margin-top: 0;
  background-color: white;
  text-align: center;
  overflow: hidden;
}

.demo-video video {
  max-width: 720px;
  width: 100%;
}

.problem-statement h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem; /* ↓ réduit l'espace */
  text-align: center;
}

.problem-statement p {
  font-size: 1.1rem;
  color: var(--gray-text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1rem; /* ↑ ajoute de l’espace juste en bas */
  line-height: 1.6;
}

.plan-price {
  font-size: 2rem;
  font-weight: bold;
}

.plan-cycle {
  font-size: 1rem;
  color: #666;
  margin-left: 0.25rem;
}

.featured {
  border: 2px solid var(--vinted-color);
  position: relative;
}

.badge-featured {
  text-align: center;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: var(--vinted-color);
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  white-space: nowrap;
}

footer {
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  background: linear-gradient(to bottom, var(--light-bg), white);
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  position: relative;
}

.footer-left {
  position: absolute;
  left: 1rem;
}

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

.footer-center a {
  color: var(--gray-text);
  text-decoration: none;
  font-weight: 500;
}

.footer-center a:hover {
  text-decoration: underline;
}

@keyframes bounce-in {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.sound-toggle {
  display: inline-flex;
  transform: translate(-50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#video-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

/* Transition douce entre vidéos */
.video-fade {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.video-feedback,
.replay-button {
  all: unset;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-feedback.show,
.replay-button.show {
  opacity: 1;
  pointer-events: auto;
}

.video-feedback svg,
.replay-button svg {
  display: block;
  background: none;
  width: 64px;
  height: 64px;
  stroke: var(--vinted-color);
}

.video-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 720px) {
  .mobile-hidden {
    display: none;
  }

  .logo {
    height: 90px;
  }

  .cta,
  .plan-cta,
  .centered-cta {
    width: 90%;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  hero {
    padding: 0rem 1rem 1rem;
  }

  hero h1 {
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 0 !important;
    margin-bottom: 1rem;
  }

  hero h2 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }

  .affiliate-ribbon .container { grid-template-columns: 1fr auto; }

  footer {
    padding: 1rem 1rem;
  }

  .footer-center {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .comparison--inverted {
    display: flex;
    flex-direction: column;
  }

  .comparison--inverted .column:first-child {
    order: 2;
  }

  .comparison--inverted .column:last-child {
    order: 1;
  }
}
