* {
    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;
}

.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;
    margin-bottom: 25px;
}

.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;
}


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

.assos-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;
}

.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;
}

.actions-assos {
    display: flex;
    gap: 10px;
    padding: 15px;
    margin: 0;
}

.bloc-assos {
    padding: 0 20px 30px 20px;
}

.bloc-assos .card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.bloc-assos .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.card-text {
    font-size: 13px;
}

a {
    text-decoration: none;
    color: black;
}

.page-detail {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
}

.carte-asso {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px black;
    margin-bottom: 20px;
    max-width: 850px;
    margin: 0 auto 20px;
    border: 2px solid black;
    width: 50%;
}

.image-asso {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.infos-asso {
    padding: 20px;
}

.entete-asso {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.entete-asso h1 {
    margin-bottom: 6px;
}

.categorie {
    color: #666;
    margin-bottom: 10px;
}

.btn-rejoindre {
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.btn-rejoindre:hover {
    background: #000;
    color: white;
}

.stats-asso {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat {
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 5px 16px;
    border: 2px solid rgb(83, 6, 135);
}

.stat-titre {
    color: #888;
    margin-bottom: 4px;
}

.events-asso {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px black;
    border: 2px solid black;
}

.events-asso h2 {
    margin-bottom: 16px;
}

.events-asso ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.date-event {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 52px;
}

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;
    }
}