/* ========================================
   FOOTER - BASE STYLES
   ======================================== */

/* Footer simple (ancien style) */
footer {
  background-color: #202a37;
  color: #ffffff;
  padding: 36px 0;
}

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

/* Liens du footer */
footer a {
  color: #f7ca5a; /* contraste et rappel de la palette */
  text-decoration: none;
  transition: color 0.15s ease, transform 0.12s ease;
}

footer a:hover,
footer a:focus {
  color: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

/* Icônes sociales dans le footer */
footer .social-links a,
footer .social-links i {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 8px;
  transition: transform 0.12s ease, color 0.12s ease;
}

footer .social-links a:hover,
footer .social-links i:hover {
  transform: translateY(-4px);
  color: #f7ca5a;
}

/* Texte de copyright plus discret */
footer p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========================================
   FOOTER AVANCÉ (nouveau style)
   ======================================== */

.footer {
  background-color: #1f2937; /* bleu foncé */
  color: #ffffff;
  padding: 60px 80px 30px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

/* Logo */
.footer-brand .brand-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.brand-logo {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
}

.brand-description {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Colonnes */
.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-column a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

/* Séparateur */
.footer-separator {
  border: none;
  border-top: 1px solid #475569;
  margin: 50px 0 25px;
}

/* Bas de footer */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

/* Réseaux */
.footer-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: #ffffff;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  transform: scale(1.15);
  color: #f7ca5a;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* Tablettes (max 992px) */
@media screen and (max-width: 992px) {
  .footer {
    padding: 50px 50px 25px;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  /* La 4ème colonne passe en dessous */
  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .footer-column h4 {
    font-size: 1.05rem;
  }

  .footer-separator {
    margin: 40px 0 20px;
  }
}

/* Tablettes moyennes (max 768px) */
@media screen and (max-width: 768px) {
  .footer {
    padding: 40px 30px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  /* Brand prend toute la largeur */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand .brand-header {
    justify-content: center;
  }

  .brand-description {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Colonnes en 2 colonnes */
  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* Smartphones (max 576px) */
@media screen and (max-width: 576px) {
  /* Footer simple */
  footer {
    padding: 28px 0;
  }

  footer .container {
    padding-left: 15px;
    padding-right: 15px;
    gap: 10px;
  }

  footer .social-links a,
  footer .social-links i {
    font-size: 1.1rem;
    margin: 0 6px;
  }

  footer p {
    font-size: 0.85rem;
    text-align: center;
  }

  /* Footer avancé */
  .footer {
    padding: 35px 20px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-brand .brand-header {
    flex-direction: column;
    gap: 10px;
  }

  .brand-logo {
    width: 45px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .footer-column li {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .footer-separator {
    margin: 30px 0 20px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .footer-socials {
    gap: 15px;
  }

  .footer-socials a {
    font-size: 1.2rem;
  }
}

/* Petits smartphones (max 380px) */
@media screen and (max-width: 380px) {
  /* Footer simple */
  footer {
    padding: 24px 0;
  }

  footer .social-links a,
  footer .social-links i {
    font-size: 1rem;
    margin: 0 5px;
  }

  footer p {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  /* Footer avancé */
  .footer {
    padding: 30px 15px 15px;
  }

  .footer-container {
    gap: 25px;
  }

  .brand-logo {
    width: 40px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-description {
    font-size: 0.85rem;
  }

  .footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .footer-column li {
    margin-bottom: 8px;
    font-size: 0.85rem;
  }

  .footer-separator {
    margin: 25px 0 15px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-socials a {
    font-size: 1.1rem;
  }
}

/* Optimisation pour écrans ultra-larges */
@media screen and (min-width: 1400px) {
  .footer {
    padding: 70px 100px 35px;
  }

  .footer-container {
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .brand-description {
    font-size: 1rem;
  }

  .footer-column h4 {
    font-size: 1.15rem;
  }

  .footer-column li {
    font-size: 1rem;
  }

  .footer-separator {
    margin: 60px 0 30px;
  }
}

/* Ajustement pour orientation paysage sur petits écrans */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .footer {
    padding: 25px 20px 15px;
  }

  .footer-container {
    gap: 20px;
  }

  .brand-description br {
    display: none;
  }

  .footer-separator {
    margin: 20px 0 15px;
  }
}