*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #be292e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.header__banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.main-content {
  background: url('Artboard 1 copy 3@4x-100 (1).jpg') center/cover no-repeat;
  flex: 1;
  width: 100%;
  max-width: 100%;
  padding-block: clamp(28px, 6vw, 52px) clamp(44px, 9vw, 72px);
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-x: clip;
}

.main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(190, 41, 46, 0.08) 0%,
    rgba(120, 20, 28, 0.18) 100%
  );
  pointer-events: none;
}

.home-layout {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width:100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(24px, 5vw, 36px);
  min-width: 0;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 22px);
  width: 100%;
  min-width: 0;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: #fff;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 600;
  border-radius: 999px;
  padding: 15px clamp(16px, 3vw, 24px);
  min-height: 52px;
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 14px);
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  text-align: center;
  line-height: 1.25;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
      padding: 30px 12px;
    font-size: 20px;
}

.menu-btn span {
  text-wrap: balance;
  min-width: 0;
  overflow-wrap: break-word;
}

.menu-btn i {
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
}

.menu-btn:hover {
  background: #fff;
  color: #b71c1c;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.12);
}

.menu-btn:hover i {
  transform: scale(1.08);
}

.menu-btn--media i {
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
}

.menu-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.app-cta-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.menu-btn.menu-btn--app {
  width: min(100%, 420px);
  max-width: 100%;
  flex: 0 1 auto;
  margin-left: auto;
  margin-right: auto;
}

@keyframes register-cta {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.15),
      0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  45% {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
      0 14px 36px rgba(190, 41, 46, 0.28),
      0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.register-btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: clamp(6px, 2vw, 12px);
}

.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #be292e;
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  animation: register-cta 2.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.register-btn .btn-logo {
  width: clamp(52px, 14vw, 70px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.register-btn:hover {
  animation: none;
  background: #fff8f8;
  color: #9a1f24;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  will-change: auto;
}

.register-btn:focus-visible {
  animation: none;
  outline: 3px solid #fff;
  outline-offset: 3px;
  will-change: auto;
}

/* Tablette : une colonne pour lisibilité */
@media (max-width: 720px) {
  .buttons-grid {
    grid-template-columns: 1fr;
    gap: clamp(14px, 4vw, 20px);
  }

  .menu-btn {
    min-height: 50px;
    padding-inline: clamp(18px, 4vw, 22px);
    padding-block: 14px;
  }

  .home-layout {
    gap: clamp(26px, 6vw, 34px);
  }
}

/* Mobile serré : marges et cibles tactiles */
@media (max-width: 480px) {
  .home-layout {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    gap: clamp(24px, 7vw, 32px);
  }

  .main-content {
    padding-block: clamp(24px, 7vw, 36px) clamp(40px, 10vw, 56px);
  }

  .buttons-grid {
    gap: clamp(14px, 4.5vw, 18px);
  }

  .menu-btn {
    min-height: 50px;
    font-size: 0.95rem;
    padding-block: 14px;
    padding-inline: 18px;
  }

  .register-btn {
    width: 100%;
    max-width: min(360px, 100%);
    padding: 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn,
  .register-btn {
    transition: none;
  }

  .menu-btn i {
    transition: none;
  }

  .register-btn {
    animation: none;
    will-change: auto;
  }

  .menu-btn:hover,
  .register-btn:hover {
    transform: none;
  }

  .menu-btn:hover i {
    transform: none;
  }
}

/* Blocs historiques (autres pages / usage futur) */
.header-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
}

.logo {
  height: 64px;
}

.header-content {
  margin-top: 8px;
}

.header-title {
  font-size: 2.2rem;
  color: #b71c1c;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-title .heart {
  color: #b71c1c;
  font-size: 2.5rem;
  margin-left: 8px;
}

.header-text h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
}

.header-text .cardio {
  color: #b71c1c;
  font-size: 1.5rem;
}

.petit-text {
  font-size: 1rem;
  color: #2d2d2d;
  margin-top: 4px;
}

.header-info {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.header-info .date {
  color: #b71c1c;
  font-weight: bold;
}

.banniere-img {
  width: 100%;
  display: block;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-bottom: -8px;
}

.langue-content {
  min-height: calc(46vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.main-action-btn {
  background: #fff;
  color: #b71c1c;
  font-size: 2rem;
  font-weight: bold;
  border: 2px solid #b71c1c;
  border-radius: 24px;
  padding: 32px 80px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
}

.main-action-btn:hover {
  background: #b71c1c;
  color: #fff;
}

.lang-btns {
  display: flex;
  gap: 24px;
}

.lang-btn {
  background: #fff;
  color: #b71c1c;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #b71c1c;
  border-radius: 16px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: #b71c1c;
  color: #fff;
}

.sponsor-box {
  border: 2px solid #fff;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 500;
  border-radius: 18px;
  padding: 48px 32px;
  background: rgba(183, 28, 28, 0.2);
  text-align: center;
  position: relative;
  min-width: 350px;
  margin-bottom: 32px;
  display: inline-block;
}

.sponsor-box .hand-icon {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 2.5rem;
  color: #fff;
}

.flags {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.flag {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
