* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Raleway";
  src:
    url("fonts/Raleway-Regular.woff2") format("woff2"),
    url("fonts/Raleway-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Raleway";
  src:
    url("fonts/Raleway-Bold.woff2") format("woff2"),
    url("fonts/Raleway-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

html {
  font-size: 20px;
}

body {
  font-family: "Raleway", sans-serif;
  margin: 0;
  background: #fff;
}

header {
  background: #000;
  color: #fff;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.65rem;
}

nav ul li a:hover {
  border-bottom: 2px solid white;
  padding-bottom: 5px;
  transition: 0.3s;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 100%;
  background-color: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.icon img:hover {
  transform: translateY(-2px);
}

.banner {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
}

.search-filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 20px 0 20px;
}

.search-bar {
  background: #e6e6e6;
  border-radius: 100px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 30%;
  min-width: 220px;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #555;
  font-family: "Raleway", sans-serif;
}

.event-titre {
  text-align: center;
  margin-bottom: 24px;
}

.event-titre h1 {
  display: inline-block;
  background: #1a1f3c;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 40px;
  border-radius: 100px;
  margin: 0;
  margin-left: 150px;
  margin-top: 15px;
}

.message-rejoint {
    width: fit-content;
    margin: 10px auto 20px auto;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.bloc-event {
  padding: 20px;
}

.event-barre {
  width: 100%;
  height: 120px;
  position: relative;
  border: 2px solid black;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.event-barre:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-barre-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.event-barre-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-barre-texte {
  position: absolute;
  top: 25px;
  left: 30px;
  color: white;
}

.event-barre-texte p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.event-barre-texte small {
  font-size: 12px;
}

.btn-inscrire {
  position: absolute;
  top: 35px;
  right: 20px;
}

footer {
  background: #2a2a2a;
  color: #fff;
  padding: 40px 30px;
}

.footer-container {
  max-width: 1440px;
  margin: 0;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-logo-name {
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.footer-col {
  flex: 1;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.footer-label {
  margin: 10px 0 4px;
  font-size: 0.55rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-text {
  font-size: 0.7rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-map {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.footer-map iframe {
  width: 100%;
  height: 110px;
  border: 0;
  display: block;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .home-row {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-logo {
    align-items: flex-start;
    width: auto;
  }
}