/* blog/competences-essentielles-hotellerie-luxe-2026 — feuille de l'article.
Aplati depuis le bloc <style jsx> de la page d'origine. styled-jsx
limitait ces regles aux elements rendus par la page : chaque selecteur
est donc porte par `.blog-article`. */

.blog-article {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
}

.blog-article .article-banner {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.blog-article .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
}

.blog-article .banner-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.blog-article .article-category {
  display: inline-block;
  background-color: var(--gold, #B8860B);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.blog-article .talentshotels-hotel-mode .article-category {
  background-color: var(--purple, #132032);
}

.blog-article .article-date {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.blog-article .article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-article .article-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #444;
}

.blog-article .article-toc {
  background-color: #f9f9f7;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2.5rem;
}

.blog-article .article-toc h2 {
  font-family: 'Cormorant Garamond', serif;
  margin-top: 0;
  color: #333;
  font-size: 1.5rem;
}

.blog-article .article-toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.blog-article .article-toc li {
  margin-bottom: 0.5rem;
}

.blog-article .article-toc a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-article .article-toc a:hover {
  color: var(--gold, #B8860B);
}

.blog-article .talentshotels-hotel-mode .article-toc a:hover {
  color: var(--purple, #132032);
}

.blog-article section {
  margin-bottom: 3rem;
}

.blog-article h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-article h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: #222;
}

.blog-article h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

.blog-article p {
  margin-bottom: 1.2rem;
}

.blog-article ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-article li {
  margin-bottom: 0.5rem;
}

.blog-article .article-image {
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-article .image-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 0.8rem;
}

.blog-article .info-box {
  background-color: #f9f9f7;
  border-left: 4px solid var(--gold, #B8860B);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-article .talentshotels-hotel-mode .info-box {
  border-left: 4px solid var(--purple, #132032);
}

.blog-article .info-box h4 {
  margin-top: 0;
  font-family: 'Cormorant Garamond', serif;
  color: #333;
}

.blog-article .article-conclusion {
  margin: 3rem 0;
}

.blog-article .article-cta {
  margin: 4rem 0;
}

.blog-article .cta-box {
  background: linear-gradient(135deg, #f9f9f7, #f5f5f2);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.blog-article .cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #222;
}

.blog-article .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-article .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 180px;
}

.blog-article .btn-gold {
  background: linear-gradient(135deg, #B8860B, #DAA520);
  color: white;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.blog-article .talentshotels-hotel-mode .btn-gold {
  background: linear-gradient(135deg, #132032, #2b4566);
  box-shadow: 0 4px 12px rgba(71, 49, 76, 0.15);
}

.blog-article .btn-outline {
  border: 1px solid #ddd;
  color: #333;
  background: white;
}

.blog-article .btn:hover {
  transform: translateY(-2px);
}

.blog-article .btn-gold:hover {
  box-shadow: 0 6px 15px rgba(184, 134, 11, 0.2);
}

.blog-article .talentshotels-hotel-mode .btn-gold:hover {
  box-shadow: 0 6px 15px rgba(71, 49, 76, 0.2);
}

.blog-article .btn-outline:hover {
  border-color: #ccc;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

.blog-article .article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.blog-article .article-share p {
  margin-right: 1rem;
  margin-bottom: 0;
  font-weight: 500;
}

.blog-article .share-buttons {
  display: flex;
  gap: 0.8rem;
}

.blog-article .share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  background: white;
}

.blog-article .share-button:hover {
  background-color: #f9f9f7;
  color: var(--gold, #B8860B);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.blog-article .talentshotels-hotel-mode .share-button:hover {
  color: var(--purple, #132032);
}

.blog-article .related-articles {
  margin: 4rem 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.blog-article .related-articles h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-article .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-article .related-article {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-article .related-article:hover {
  transform: translateY(-5px);
}

.blog-article .related-article h4 {
  padding: 1rem;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #333;
}

@media (max-width: 768px) {
  .blog-article h1 {
    font-size: 2rem;
  }

  .blog-article h2 {
    font-size: 1.7rem;
  }

  .blog-article h3 {
    font-size: 1.3rem;
  }

  .blog-article .article-intro {
    font-size: 1rem;
  }

  .blog-article .banner-content {
    padding: 1.5rem;
  }

  .blog-article .article-content {
    padding: 0 1rem;
  }

  .blog-article .cta-box {
    padding: 1.5rem;
  }

  .blog-article .btn {
    width: 100%;
  }

  .blog-article .article-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-article .share-buttons {
    margin-top: 0.5rem;
  }
}

/* Supprimer la marge supérieure de la bannière d'article */
.blog-article .article-banner {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 0; /* Assure qu'il n'y a pas de marge au-dessus de la bannière */
  margin-bottom: 1rem;
}

/* Assurez-vous que le main n'a pas de marge supérieure */
.blog-article {
  margin-top: 0;
  padding-top: 0;
}

/* Vous pouvez également réduire le padding du header si nécessaire */
/* Ajoutez ceci dans le composant Header ou modifiez votre HeaderWithSwitch */
.blog-article .header {
  padding-bottom: 0; /* Réduit le padding en bas du header */
}

.blog-article .nav-container {
  height: 70px; /* Réduire la hauteur du container de navigation */
  padding-bottom: 0; /* Éliminer le padding en bas */
}

/* Si votre bannière a un padding interne, vous pouvez également l'ajuster */
.blog-article .banner-content {
  padding-top: 1.5rem; /* Réduire le padding du haut */
}

/* Modifier la bannière et son overlay pour centrer le contenu */
.blog-article .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center; /* Change de flex-end à center pour centrer verticalement */
  justify-content: center; /* Ajoute un centrage horizontal */
}

.blog-article .banner-content {
  width: 100%;
  max-width: 900px; /* Légèrement plus large pour les titres longs */
  margin: 0 auto;
  padding: 2rem;
  color: white;
  text-align: center; /* Centre le texte horizontalement */
}

/* Optimiser l'affichage du titre pour qu'il soit plus visible */
.blog-article .banner-content h1 {
  font-size: 2.8rem; /* Augmente légèrement la taille du titre */
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Ajoute une ombre pour améliorer la lisibilité */
}

/* Ajuster la catégorie pour qu'elle reste en évidence */
.blog-article .article-category {
  display: inline-block;
  background-color: var(--gold, #B8860B);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ajoute une légère ombre */
}

/* Ajuster la date pour qu'elle soit bien visible */
.blog-article .article-date {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.8rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Ajoute une ombre légère */
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
  .blog-article .banner-content h1 {
    font-size: 2rem; /* Taille réduite sur mobile */
  }

  .blog-article .banner-content {
    padding: 1.5rem;
  }
}

.blog-article .article-banner {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 400px; /* Limite la hauteur maximale */
  overflow: hidden; /* Assure que l'image ne déborde pas */
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Maintenir le ratio d'aspect correct pour l'image tout en limitant sa hauteur */
.blog-article .banner-image {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover; /* Assure que l'image couvre bien l'espace disponible */
  object-position: center; /* Centre l'image */
}

/* Ajuster l'overlay pour qu'il corresponde à la nouvelle hauteur */
.blog-article .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuster le contenu pour une bannière plus compacte */
.blog-article .banner-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem; /* Réduire légèrement le padding */
  color: white;
  text-align: center;
}

/* Ajuster la taille du titre pour la bannière plus petite */
.blog-article .banner-content h1 {
  font-size: 2.5rem; /* Légèrement plus petit pour s'adapter à la hauteur réduite */
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
  .blog-article .article-banner,
  .blog-article .banner-image {
    max-height: 300px; /* Encore plus petit sur mobile */
  }

  .blog-article .banner-content h1 {
    font-size: 1.8rem;
  }

  .blog-article .banner-content {
    padding: 1rem;
  }
}
