/* Variables */
:root {
  --primary: #d3e3eb;
  --a: #2d3e4a;
  --primary-light: #b4c9d3;
  --bg: #f7f9fa;
  --card-bg: #eaf2f5;
  --text: #2d3e4a;
  --secondary-text: #4d4d4a;
}
/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: "continental";
  src: url("./fonts/continental.woff2") format("woff2");
}
@font-face {
  font-family: "crystal";
  src: url(Font/Eklipse-Diamond.otf) format("opentype");
}
html {
  font-family: "continental", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
a {
  text-decoration: none;
}
h2 {
  font-weight: normal;
}

/* NAV FLOTANTE */
.bottom-nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 0.5rem;
  border-radius: 2rem;
  display: flex;
  gap: 2rem;
  z-index: 1000;
  background-color: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* LIENS */
.bottom-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--a);
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s;
  white-space: nowrap;
  display: flex;
}

/* PASTILLE */
.bottom-nav .nav-indicator {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 0;
  background-color: var(--primary);
  border-radius: 2rem;
  z-index: 0;
  white-space: nowrap;
}

/* Buttons */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.btn {
  background: var(--primary);
  color: var(--a);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  background: var(--primary-light);
}
.btn--small {
  font-size: 0.85rem;
}

/* Header */
.header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 100;
}
.logo {
  margin-top: 7rem;
}
.logo img {
  width: 90%;
  transform-box: fill-box;
  transform-origin: 50% center;
  transform: translateX(15%);
}

/* Hero */
.hero-img,
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-img video {
  width: 100%;
  max-width: 60rem;
  border-radius: 5rem;
  aspect-ratio: 16/9;
  object-fit: contain;
  margin: 2rem 0;
  height: 100%;
  display: block;
  background: var(--card-bg);
}
.hero-text {
  font-family: "crystal";
  max-width: 1150px;
  font-size: 3.75rem;
  line-height: 1;
  text-align: left;
  margin: 2rem;
}

/* Input */
#filterInput {
  width: 100%;
  max-width: 1200px;
  padding: 0.75rem 1rem;
  margin: 1rem 0 2rem;
  margin-top: 10rem;
  border: 2px solid var(--primary);
  border-radius: 2rem;
  font-size: 1rem;
  color: var(--text);
}

/* Sections */
.content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  padding: 4rem;
  border-radius: 4rem;
  background: var(--card-bg);
}
.content-text {
  flex: 1;
  width: 50%;
  color: var(--secondary-text);
}
.flyer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 40%;
}
.sections-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.title-card {
  font-size: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 1200px;
}
.card {
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-card img {
  width: 50%;
  margin-bottom: 1rem;
}
.app-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}
.logo-app {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s;
}
.logo-app:hover {
  transform: scale(1.1);
}
.app-buttons .btn--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  border-radius: 2rem;
}
.btn--small .logo-app {
  position: static;
  transform: scale(1);
  margin: 0;
  width: auto;
  height: 1.5rem;
}
.btn--small:hover {
  transform: scale(1.05);
}
.btn--small--text {
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 2rem;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
}
.btn--small--text:hover {
  transform: scale(1.05);
}
.btn {
  background: var(--primary);
  color: var(--a);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
}
.app-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.app-content img {
  width: 60%;
  filter: drop-shadow(0 8px 50px rgba(0, 0, 0, 0.2));
}
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Events */
.event-card .events {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.event-item {
  width: clamp(120px, 30vw, 160px);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  overflow: hidden;
}
.event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.event-item:hover img {
  transform: scale(1.03);
}
.horizontal-sections {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  box-sizing: border-box;
  justify-content: flex-start;
}
.section-card {
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  color: var(--secondary-text);
}
.map-card-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  color: var(--text);
  padding: 2rem;
  border-radius: 24px;
  max-width: 350px;
  font-size: 1rem;
  text-align: left;
}

/* Partenaires */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem;
}
.partner {
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}
.partner img {
  max-height: 60px;
  object-fit: contain;
}
.menu-button {
  display: none;
}

/* Media Queries */
/* IPAD */
@media (max-width: 1200px) {
  .logo img {
    width: 70%;
    transform: translateX(30%);
  }
  .content-text,
  .flyer-content {
    width: 100%;
  }
  .content-text p {
    line-height: 1.4;
    padding: 10rem;
    padding-bottom: 10rem;
  }
  .flyer-content img {
    max-width: 100%;
    padding-left: 10rem;
    padding-right: 10rem;
  }
  .section {
    flex: 1;
  }
  .section-card {
    width: 100%;
    max-width: none;
  }
  .app-content img {
    width: 50%;
  }
  .btn--small .logo-app {
    transform: scale(0.5);
  }
  .app-buttons .btn--small {
    justify-content: center;
    padding: 1rem 5rem;
    width: 100%;
  }
  .menu-button {
    display: block;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: var(--primary);
    color: var(--a);
    border-radius: 2rem;
    width: 85%;
    padding: 1rem 1rem;
    font-size: 1rem;
    border: none;
    background-color: rgba(211, 227, 235, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .bottom-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: var(--primary);
    border-radius: 2rem;
    background-color: rgba(211, 227, 235, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 1rem;
    z-index: 1000;
    gap: 2rem;
  }
  .bottom-nav.active {
    display: flex;
  }
  .bottom-nav .nav-link {
    text-align: center;
    font-size: 1rem;
  }
  .bottom-nav .nav-link.active,
  .bottom-nav .nav-link.active-link {
    background: var(--primary);
    color: var(--a);
    border-radius: 2rem;
    padding: 1rem 1rem;
  }
  .bottom-nav .nav-indicator {
    display: none;
  }
  .hero-text p {
    font-size: 3.75rem;
    text-align: left;
  }
  .sections-container {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  .section {
    flex: 1;
  }
  .map-card-image {
    display: none;
  }
  .map-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    border-radius: 2rem;
    overflow: hidden;
  }
}

/* Iphone */
@media (max-width: 768px) {
  .logo img {
    width: 60%;
    transform: translateX(40%);
  }
  .sections-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 450px;
  }
  .content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 1rem;
  }
  .content-text,
  .flyer-content {
    width: 100%;
  }
  .content-text p {
    line-height: 1.4;
    padding: 2rem;
  }
  .flyer-content img {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
  }
  #filterInput {
    margin-top: 6rem;
    padding: 0.5rem 1rem;
  }
  .header {
    flex-direction: column;
    align-items: center;
  }
  .hero-text {
    font-size: 2.5rem;
    text-align: left;
    margin: 1.5rem 0;
  }
  .bottom-nav .nav-indicator {
    display: none;
  }
  .app-buttons .btn--small {
    margin-left: 0.5rem;
    padding: 0.5rem 0.1rem;
    width: 100%;
  }
}

/* Plus petit devices */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  #filterInput {
    margin-top: 5rem;
    font-size: 0.9rem;
  }
  .sections-container,
  .content {
    padding: 0;
    gap: 1rem;
  }
  .content {
    padding: 0.5rem 0.5rem;
  }
  .hero-text {
    font-size: 1.8rem;
  }
  .content-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 2rem;
  }
  .menu-button {
    top: 2rem;
    width: 90%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  .partners {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
  }
}
