/* ===================== IMPORT POLICE ===================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* ===================== GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FE5555;
  padding: 15px 20px;
  position: relative;
  z-index: 100;
}

.navbar .logo img {
  max-width: 90px;
  height: auto;
}

.navbar a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: background 0.3s ease-in-out, transform 0.2s;
  font-size: 1.1rem;
}

.navbar a:hover {
  background-color: #FE8888;
  transform: scale(1.1);
  border-radius: 5px;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: white;
  margin-left: auto;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 20px;
  margin-top: auto; /* pousse le footer en bas */
}

footer .socials {
  margin-top: 10px;
}

footer .socials a img {
  width: 30px;
  height: 30px;
  margin: 0 10px;
  transition: transform 0.3s;
  object-fit: contain;
}

footer .socials a:hover img {
  transform: scale(1.2);
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===================== PARTNERS ===================== */
.partners {
  flex: 1;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partners h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 30px;
}

.partner-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  height: 100%;
}

.partner-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s, filter 0.3s;
}

.partner-card h3 {
  font-size: 1.4rem;
  color: #FE5555;
}

.partner-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.partner-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.2);
}

/* ===================== MODAL ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  padding: 40px 20px;
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-content h2 {
  font-size: 1.8rem;
  color: #FE5555;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-content .btn {
  display: inline-block;
  background: #FE5555;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 1rem;
}

.modal-content .btn:hover {
  background: #FE8888;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #FE5555;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-card img {
    width: 100px;
    height: 100px;
  }
  .partner-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .partner-card {
    padding: 20px;
  }
  .partner-card img {
    width: 80px;
    height: 80px;
  }
  .partner-card h3 {
    font-size: 1.2rem;
  }
}

/* ===================== RESPONSIVE NAVBAR ===================== */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    position: absolute;
    top: -100vh;
    left: 0;
    width: 100%;
    background-color: #FE8888;
    text-align: center;
    transition: top 0.4s ease-in-out;
    z-index: 99;
  }

  .menu a {
    padding: 15px;
    display: block;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .menu-active {
    top: 100%;
  }
}

.navbar a.active {
    border-bottom: 3px solid white;
}