/* Styles pour la navbar */
.first-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.first-navbar .navbar-nav .nav-link {
  color: #2c3e50; /* Bleu profond élégant */
  font-weight: 500;
  margin-left: 2rem;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.first-navbar .navbar-nav .nav-link:hover {
  color: #2c3e50; /* Rouge subtil */
  transform: translateY(-2px);
}

.first-navbar .navbar-nav .nav-link i {
  font-size: 1.3rem;
  margin-left: 1.5rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.first-navbar .navbar-nav .nav-link i:hover {
  color: #2c3e50;
}

/* Styles pour la deuxième navbar */
.second-navbar {
  padding: 1.5rem 0;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px; /* Arrondi des bords comme le header */
  overflow: hidden; /* Assure que le contenu respecte la bordure arrondie */
}

.second-navbar .navbar-brand img {
  height: 50px;
  margin-right: 2rem;
  transition: transform 0.3s ease;
}

.second-navbar .navbar-brand:hover img {
  transform: scale(1.05);
}

.second-navbar .offcanvas-btn {
  background-color: #2c3e50;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.second-navbar .offcanvas-btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(231, 76, 60, 0.5);
}

.second-navbar .navbar-nav .nav-link {
  color: #2c3e50;
  font-weight: 500;
  margin-left: 2rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.second-navbar .navbar-nav .nav-link:hover {
  color: #2c3e50;
}

.second-navbar .btn {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.second-navbar .btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(231, 76, 60, 0.5);
}

/* Styles pour la section de bienvenue */
.welcome-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); /* Dégradé plus sombre pour meilleur contraste */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.welcome-section h1 {
  font-size: 3.5rem; /* Taille augmentée */
  font-weight: 700;
  color: #ffffff; /* Texte blanc pour contraste */
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4); /* Ombre renforcée */
  margin-bottom: 2.5rem; /* Plus d'espace */
}

.welcome-section h2 {
  font-size: 2.25rem; /* Taille augmentée */
  font-weight: 600;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.welcome-section p {
  font-size: 1.3rem; /* Taille augmentée */
  line-height: 1.9;
  color: #ffffff; /* Texte blanc pour contraste */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); /* Ombre subtile */
  margin-bottom: 3rem; /* Plus d'espace */
}

.text-content {
  max-width: 60%; /* Limite la largeur du texte */
}

.image-content {
  display: flex;
  justify-content: flex-end; /* Pousse l'image à l'extrême droite */
}

.image-content img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-content img:hover {
  transform: scale(1.05);
}

.btn-capsule {
  display: inline-block;
  padding: 1.2rem 2.5rem; /* Bouton plus grand */
  background-color: #2c3e50;
  color: #ffffff;
  border: 2px solid #ffffff; /* Bordure pour contraste */
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Ombre pour lisibilité */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
}

.btn-capsule:hover {
  background-color: #2c3e50;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(231, 76, 60, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-section {
      padding: 2rem 1rem;
  }
  .welcome-section h1 {
      font-size: 2.5rem;
  }
  .welcome-section h2 {
      font-size: 1.5rem;
  }
  .welcome-section p {
      font-size: 1rem;
  }
  .text-content {
      max-width: 100%; /* Pleine largeur sur mobile */
  }
  .image-content {
      justify-content: center; /* Centre l'image sur mobile */
  }
  .image-content img {
      max-width: 150px;
  }
  .btn-capsule, .btn-explore {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
  }
  .post-entry-1 {
      padding: 1rem;
  }
  .post-image img {
      height: 150px;
  }
  .post-entry-1 h3 {
      font-size: 1.2rem;
  }
  .post-entry-1 .post-meta {
      font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .second-navbar .navbar-brand img {
      height: 30px;
  }
  .second-navbar .offcanvas-btn {
      padding: 0.25rem 0.75rem;
  }
  .second-navbar .navbar-nav .nav-link {
      font-size: 1rem;
      margin-left: 1rem;
  }
  .second-navbar .btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
}

/* Styles pour le footer */
.footer-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); /* Dégradé moderne */
  padding: 3rem 0;
  border-radius: 15px 15px 0 0; /* Bordures arrondies uniquement en haut */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
  color: #ecf0f1; /* Texte clair pour contraste avec le fond */
}

.footer-column {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* Séparateur subtil */
}

.footer-column:last-child {
  border-right: none; /* Pas de séparateur pour la dernière colonne */
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-text {
  font-size: 1rem;
  color: #ecf0f1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-text a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: #2c3e50;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2c3e50;
}

.footer-button {
  background-color: #2c3e50;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.footer-button:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.5);
}

.newsletter-form {
  align-items: center;
  position: relative;
}

.newsletter-input {
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 2.5rem; /* Espace pour l'icône */
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.newsletter-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
}

.newsletter-btn {
  background-color: #2c3e50;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.newsletter-btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.5);
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 1.8rem;
  color: #ecf0f1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #2c3e50;
  transform: scale(1.1);
}

.copyright p {
  font-size: 0.95rem;
  color: #ecf0f1;
  margin: 0;
}

/* Styles pour le formulaire d’inscription */
.signup-card {
  background-color: #ffffff;
  border: none;
  border-radius: 15px; /* Bordures arrondies */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-title {
  color: #2c3e50;
  font-weight: 700;
}

.card-body {
  padding: 2rem;
}

.form-label {
  font-size: 1rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem;
  font-size: 1rem;
  color: #2c3e50;
  background-color: #f8f9fa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  background-color: #ffffff;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.alert-danger .btn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.signup-btn {
  background-color: #2c3e50;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.signup-btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(231, 76, 60, 0.5);
}

.signup-btn i {
  font-size: 1.2rem;
}

.login-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Styles pour le formulaire de connexion */
.login-card {
  background-color: #ffffff;
  border: none;
  border-radius: 15px; /* Bordures arrondies */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.login-btn {
  background-color: #3498db; /* Bleu pour différencier de l’inscription */
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.login-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(52, 152, 219, 0.5);
}

.login-btn i {
  font-size: 1.2rem;
}

.signup-link {
  color: #2c3e50; /* Rouge pour différencier */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: #2c3e50;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-section {
      padding: 2rem 1rem;
  }
  .welcome-section h1 {
      font-size: 2.5rem;
  }
  .welcome-section h2 {
      font-size: 1.75rem;
  }
  .welcome-section p {
      font-size: 1.1rem;
  }
  .text-content {
      max-width: 100%; /* Pleine largeur sur mobile */
  }
  .image-content {
      justify-content: center; /* Centre l'image sur mobile */
  }
  .image-content img {
      max-width: 150px;
  }
  .btn-capsule, .btn-explore {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
  }
  .post-entry-1 {
      padding: 1rem;
  }
  .post-image img {
      height: 150px;
  }
  .post-entry-1 h3 {
      font-size: 1.2rem;
  }
  .post-entry-1 .post-meta {
      font-size: 0.9rem;
  }
  .footer-section {
      padding: 2rem 0;
      border-radius: 0;
  }
  .footer-column {
      border-right: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 1.5rem;
  }
  .footer-column:last-child {
      border-bottom: none;
  }
  .footer-title {
      font-size: 1.3rem;
  }
  .footer-text {
      font-size: 0.95rem;
  }
  .footer-links a {
      font-size: 0.95rem;
  }
  .footer-button, .newsletter-btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
  .social-icon {
      font-size: 1.5rem;
  }
  .newsletter-input {
      padding: 0.5rem 0.75rem 0.5rem 2rem;
  }
  .newsletter-icon {
      font-size: 1rem;
      left: 0.5rem;
  }
  .signup-card, .login-card {
      padding: 1rem;
  }
  .card-body {
      padding: 1.5rem;
  }
  .signup-btn, .login-btn {
      padding: 0.5rem 1rem;
      font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .second-navbar .navbar-brand img {
      height: 30px;
  }
  .second-navbar .offcanvas-btn {
      padding: 0.25rem 0.75rem;
  }
  .second-navbar .navbar-nav .nav-link {
      font-size: 1rem;
      margin-left: 1rem;
  }
  .second-navbar .btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
}