/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 16px;
}

.background-blobs {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
.background-blobs .blob {
  position: fixed;
  width: 40rem;
  height: 40rem;
  border-radius: 9999px;
  background-color: rgb(109, 124, 187);
  filter: blur(120px);
}
.background-blobs .blob-top {
  top: 2rem;
  left: -36rem;
}
.background-blobs .blob-bottom {
  bottom: -10rem;
  right: -36rem;
}

.btn {
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.7rem;
}

.primary-btn {
  background: #6D7CBB;
  color: white;
  border-radius: 5rem;
  transition: 0.3s ease-in-out;
}
.primary-btn:hover {
  background: #5A6AA3;
}

.secondary-btn {
  display: inline-block;
  position: relative;
  color: black;
  padding: 0.8rem 1.5rem 0.8rem 0;
}
.secondary-btn:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  top: 80%;
  left: 0;
  background-color: black;
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.secondary-btn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.secondary-btn:before {
  content: "";
  background-image: url("../img/fleche.png");
  background-size: 100%;
  background-repeat: no-repeat;
  height: 1.25rem;
  width: 1.125rem;
  position: absolute;
  top: 31%;
  right: 0;
}

p {
  font-size: 1rem;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

h2 {
  font-size: 3rem;
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  max-width: 900px;
  line-height: 1.2;
}
h2 em {
  color: #6D7CBB;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.2rem 0;
}

.sr_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important; /* pour vieux navigateurs */
  clip-path: inset(50%) !important; /* moderne */
  white-space: nowrap !important;
  border: 0 !important;
}

.head {
  padding: 2rem clamp(1.25rem, 8vw, 12rem) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.head .menu {
  display: flex;
  align-items: center;
}
.head .menu ul {
  display: flex;
  gap: 1.5rem;
}
.head .menu ul a {
  text-decoration: none;
  padding: 0.2rem 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  color: black;
}
.head .menu ul [aria-current=page] {
  border-bottom: 2px solid #6D7CBB;
  color: #6D7CBB;
}

.alterra-ticker {
  width: 100%;
  background: #6d7cbb;
  color: #fff;
  overflow: hidden;
  height: 6rem;
  display: flex;
  z-index: 30;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.alterra-ticker__wrap {
  display: flex;
  width: 200%;
  align-items: center;
  animation: ticker-scroll 18s linear infinite;
}
.alterra-ticker__slide {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding-inline: 2rem;
  white-space: nowrap;
  flex: 0 0 50%;
}
.alterra-ticker__item {
  display: inline-block;
  font-weight: 700;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.alterra-ticker:hover .alterra-ticker__wrap, .alterra-ticker:focus-within .alterra-ticker__wrap {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .alterra-ticker__wrap {
    animation: none;
  }
}
.footer_menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: Inter, sans-serif;
}
.footer_menu a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer_menu a:hover {
  text-decoration: underline;
}
.footer_menu .bullet {
  width: 6px;
  height: 6px;
  background: #6d7cbb;
  border-radius: 50%;
  display: inline-block;
}

.footer_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.25rem, 8vw, 12rem);
}

.nav-btn {
  display: flex;
  gap: 1rem;
}
.nav-btn li a {
  text-decoration: none;
  padding: 0.2rem 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  color: black;
}
.nav-btn li .primary-btn {
  padding: 0.7rem 1.5rem;
  color: white;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* =========================
   BURGER MENU
========================= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  height: 2px;
  width: 100%;
  background: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* =========================
   MOBILE MENU
========================= */
@media (max-width: 800px) {
  #rules_intro {
    padding-top: 2rem !important;
    padding-bottom: 80px !important;
  }
  .footer_content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .burger {
    display: flex;
  }
  ul {
    gap: 3rem !important;
  }
  ul li a {
    font-size: 2rem !important;
  }
  .menu ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    gap: 3rem;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-links nav ul,
  .nav-links .nav-btn {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  /* Animation burger -> croix */
  .burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
#main_home {
  padding: 0 clamp(1.25rem, 8vw, 12rem);
}
#main_home h2 {
  margin: 3rem auto 0;
}
#main_home .img_container {
  position: relative;
  display: flex;
  padding: 3rem 0 1rem;
  height: 370px;
  max-width: 1200px;
  margin: 0 auto;
}
#main_home .img_container figure {
  position: absolute;
  width: 256px;
  height: 256px;
}
#main_home .img_container figure img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
#main_home .img_container .img_1 {
  left: 0;
  top: 7.5rem;
  transform: rotate(-5deg);
}
#main_home .img_container .img_2 {
  left: 12rem;
  top: 5.5rem;
  transform: rotate(-3deg);
}
#main_home .img_container .img_2 figcaption {
  position: absolute;
  top: -3.5rem;
  left: 4rem;
  transform: rotate(-1deg);
  padding: 0.8rem 1.8rem;
  background: #1A1D31;
  color: white;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
  border-radius: 5rem;
}
#main_home .img_container .img_2 figcaption::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 2rem;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1A1D31;
}
#main_home .img_container .img_3 {
  left: 23.5rem;
  top: 6rem;
  transform: rotate(-1deg);
}
#main_home .img_container .img_4 {
  right: 24rem;
  top: 6.5rem;
  transform: rotate(1deg);
}
#main_home .img_container .img_5 {
  right: 11rem;
  top: 6rem;
  transform: rotate(5deg);
}
#main_home .img_container .img_6 {
  right: 0;
  top: 6rem;
  transform: rotate(7deg);
}
#main_home .img_container .img_6 figcaption {
  position: absolute;
  top: -3.5rem;
  left: 4rem;
  padding: 0.8rem 1.8rem;
  background: #9AB1BF;
  color: white;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
  border-radius: 5rem;
}
#main_home .img_container .img_6 figcaption::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 2rem;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #9AB1BF;
}
#main_home .text-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1200px) {
  .img_3 {
    display: none;
  }
  h2 {
    font-size: 2.2rem;
  }
}
@media (max-width: 980px) {
  .img_4 {
    display: none;
  }
  h2 {
    font-size: 1.9rem;
  }
}
@media (max-width: 770px) {
  .img_2 {
    display: none;
  }
  .img_1 {
    display: none;
  }
  .img_6 {
    display: none;
  }
  #main_home .img_container {
    display: none;
    height: 300px;
  }
  #main_home .img_container figure {
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 650px) {
  .img_5 {
    display: none;
  }
  .img_mobile {
    display: block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin: 1.5rem 0;
  }
  .img_mobile img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 773px) {
  #develop {
    text-align: center !important;
  }
  #develop h2 {
    margin: 0 auto;
    text-align: center !important;
  }
  #develop p {
    margin: 2.5rem auto 2rem !important;
  }
  #develop .btn-group {
    justify-content: center !important;
  }
  .img_8 {
    display: none;
  }
}
@media (min-width: 650px) {
  .img_mobile {
    display: none;
  }
}
@media (max-width: 745px) {
  #develop {
    margin-top: 96px !important;
    padding-bottom: 0 !important;
  }
  #develop .img_container {
    height: 0;
    display: none;
  }
  .btn-group {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .btn-group .btn {
    width: -moz-fit-content !important;
    width: fit-content !important;
  }
  #join {
    margin-top: -4rem;
  }
}
#develop {
  margin: 150px auto 0;
  position: relative;
  max-width: 1300px;
  padding: 0 clamp(1.25rem, 8vw, 12rem) 225px;
  overflow: hidden;
}
#develop h2 {
  text-align: left;
  max-width: 720px;
  line-height: 1.2;
}
#develop p {
  max-width: 355px;
  margin: 2.5rem 0 2rem;
}
#develop .btn-group {
  justify-content: left;
}
#develop figure {
  position: absolute;
  width: 310px;
  height: 310px;
}
#develop figure img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1rem;
}
#develop .img_7 {
  bottom: 0;
  right: 0;
  z-index: 4;
}
#develop .img_8 {
  bottom: 8rem;
  right: 12.5rem;
  z-index: 3;
}
#develop .img_8 figcaption {
  position: absolute;
  top: -3.5rem;
  right: 4rem;
  transform: rotate(3deg);
  padding: 0.8rem 1.8rem;
  background: #1A1D31;
  color: white;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
  border-radius: 5rem;
}
#develop .img_8 figcaption::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 2rem;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1A1D31;
}
#develop .img_9 {
  bottom: 15rem;
  right: 28.5rem;
  z-index: 2;
}

@media (max-width: 1250px) {
  #develop {
    padding-bottom: 125px;
  }
  #develop figure {
    width: 280px;
    height: 280px;
  }
  #develop .img_9 {
    display: none;
  }
  #develop .img_8 {
    right: 17.5rem;
    bottom: 9rem;
  }
  #develop .img_7 {
    bottom: 4rem;
    right: 1rem;
  }
}
@media (max-width: 935px) {
  #develop {
    padding-bottom: 0;
  }
  .img_7 {
    display: none;
  }
  .img_8 {
    right: 3rem !important;
    bottom: 1rem !important;
  }
}
@media (min-width: 1800px) {
  .img_9 {
    right: 32.5rem !important;
  }
  .img_8 {
    right: 16.5rem !important;
  }
  .img_7 {
    right: 4rem !important;
  }
}
#join {
  padding: 0 clamp(1.25rem, 8vw, 12rem);
  margin-bottom: 150px;
}
#join h2 {
  margin: 150px auto 2rem;
}
#join p {
  max-width: 620px;
  text-align: center;
  margin: 0 auto;
}

#rules_intro {
  padding: 5rem clamp(4.5rem, 8vw, 12rem) 120px;
}
#rules_intro h2 {
  margin: 2.5rem auto 2rem;
  max-width: 900px;
}
#rules_intro .rules_intro_content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

#rules {
  padding: 0 clamp(1.25rem, 8vw, 12rem) 0;
  margin: 150px 0;
}
#rules h2 {
  margin: 0 auto;
}
#rules .rules-container {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 5fr;
  gap: 2rem;
  margin: 5rem auto 0;
  height: 100%;
  max-width: 1400px;
}
#rules .rules-container strong:first-child {
  margin-top: 0;
}
#rules .rules-container strong {
  display: block;
  margin-top: 1rem;
  margin-bottom: -0.5rem;
}
#rules .rules-container__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2.5rem;
  height: -moz-fit-content;
  height: fit-content;
}
#rules .rules-container__nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.5rem 0.3rem;
}
#rules .rules-container__nav a .icone {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  padding: 0.5rem;
  background: #6d7cbb;
  color: white;
  border-radius: 0.25rem;
}
#rules .rules-container__nav a span {
  font-family: Inter, Arial, sans-serif;
  text-decoration: none;
  color: black;
  font-size: 1rem;
}
#rules .rules-container__divider {
  height: 100%;
  width: 2px;
  background: #E0E0E0;
}
#rules .rules-container__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  font-family: Inter, Arial, sans-serif;
}
#rules .rules-container__content section {
  margin-bottom: 2.5rem;
}
#rules .rules-container__content section h3 {
  font-size: 1.7rem;
  margin-bottom: 1.7rem;
  font-weight: 700;
}
#rules .rules-container__content section h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #6d7cbb;
}
#rules .rules-container__content section div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.4;
}
#rules .rules-container__content section strong {
  font-weight: 600;
}

@media (max-width: 850px) {
  #rules h2 {
    margin: 0 0 !important;
    text-align: left;
  }
  .rules-container {
    display: initial !important;
  }
  .rules-container__content {
    margin-top: 2rem !important;
  }
  .rules-container__nav {
    display: none !important;
  }
  .rules-container__divider {
    display: none !important;
  }
}
