
.blog-main {
  padding: 80px 0 100px;
}

/* LISTE DES CARTES */
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Carte article */
.blog-card {
  width: 230px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-image-wrapper {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 18px 40px -10px;
}

.blog-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* Bandeau titre sous l’image */
.blog-card-title {
  margin-top: 8px;
  padding: 6px 12px;
  text-align: center;
  background-color: #4c4c30;
  color: #f4decb;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -10px;
  font-size: 14px;
}

/* Effet hover */
.blog-card:hover {
  transform: translateY(-4px);
}

/* ------------------ */
/* MODAL D’ARTICLE    */
/* ------------------ */

.blog-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: none;              
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.blog-modal.is-open {
  display: flex;
}

.blog-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: #4c4c30;
  border-radius: 10px;
  padding: 20px 24px 24px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 20px 50px;
  color: #f4decb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #f4decb;
  font-size: 24px;
  cursor: pointer;
}


.blog-modal-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-modal-image {
  width: 100%;
  max-width: 420px;   
  height: auto;      
  object-fit: cover;
  display: block;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
              rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
              rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}


/* Titre article modal */
.blog-modal-header {
  text-align: center;
  margin-top: 10px;
}

/* Même style que hero-overlay h1 */
.blog-modal-title {
  font-size: 3rem;
  color: #d2691e;
  margin: 0;
  white-space: nowrap;
  font-size: 40px;
}

/* Même style que hero-overlay p */
.blog-modal-subtitle {
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 5px;
  white-space: nowrap;
}

.blog-modal-text-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;      /* ✅ scroll partout */
  max-height: 35vh;      /* ✅ ajuste: 35vh / 40vh */
  padding-right: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.blog-modal-text-wrapper{
  flex: 1;
  min-height: 0;
  overflow-y: auto;     /* ✅ scroll partout */
  padding-right: 10px;
}

/* scrollbar chrome/edge */
.blog-modal-text-wrapper::-webkit-scrollbar {
  width: 10px;
}
.blog-modal-text-wrapper::-webkit-scrollbar-track {
  background: rgba(244, 222, 203, 0.12);
  border-radius: 999px;
}
.blog-modal-text-wrapper::-webkit-scrollbar-thumb {
  background: #ca5900;
  border-radius: 999px;
  border: 2px solid rgba(76, 76, 48, 0.7);
}
.blog-modal-text-wrapper::-webkit-scrollbar-thumb:hover {
  background: #e06c09;
}

/* firefox */
.blog-modal-text-wrapper{
  scrollbar-width: thin;
  scrollbar-color: #ca5900 rgba(244, 222, 203, 0.12);
}

/* ✅ rendre le contenu Quill joli dans la modale */
#blog-modal-body h1,
#blog-modal-body h2,
#blog-modal-body h3{
  margin: 14px 0 10px;
  line-height: 1.2;
}

#blog-modal-body p{
  margin: 0 0 12px;
  line-height: 1.7;
}

#blog-modal-body img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 14px auto;
  box-shadow: rgba(0,0,0,.25) 0px 18px 40px -10px;
}
/* ------------------ */
/* RESPONSIVE         */
/* ------------------ */

@media (max-width: 900px) {
  .blog-card {
    width: 45%;
    max-width: 260px;
  }

  .blog-modal-content {
    padding: 16px 16px 20px;
  }

  .blog-modal-title {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .blog-main {
    padding: 60px 0 80px;
  }

  .blog-card {
    width: 90%;
    max-width: 320px;
  }

  /* La modale tient dans la hauteur d'écran */
  .blog-modal-content {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
  }

  .blog-modal-title {
    font-size: 2.2rem;
    white-space: normal;
  }

  .blog-modal-subtitle {
    font-size: 1.2rem;
    white-space: normal;
  }

  /* 👉 À partir de 600px et moins : texte scrollable */
  .blog-modal-text-wrapper {
    font-size: 14px;
    flex: 1;        
    min-height: 0;
    max-height: 20vh;  
    overflow-y: auto;  
    padding-right: 8px;
  }

  /* Scrollbar orange sur mobile (<=600px) */
  .blog-modal-text-wrapper::-webkit-scrollbar {
    width: 8px;
  }
  .blog-modal-text-wrapper::-webkit-scrollbar-track {
    background: #4c4c30;
    border-radius: 10px;
  }
  .blog-modal-text-wrapper::-webkit-scrollbar-thumb {
    background: #ca5900;
    border-radius: 10px;
  }
  .blog-modal-text-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e06c09;
  }
  .page-blog .left-subtitle{
  font-size: 20px;
}
  .page-blog .left-title{
  font-size: 20px;
}
}

/* INTRO BLOG (avant les cartes) */
.blog-intro{
  max-width: 1100px;
  margin: 0 auto 45px;
  padding: 0 16px;
}

.blog-intro-card{
  background: #4c4c30;
  border-radius: 10px;
  padding: 26px 24px 22px;
  box-shadow: rgba(50, 50, 93, 0.25) 0 40px 70px -20px,
              rgba(0, 0, 0, 0.3) 0 25px 50px -30px,
              rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
  color: #f4decb;
  text-align: center;
}

.blog-intro-head{
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}



.blog-intro-title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  margin: 0;
  font-size: 20px;
  color: #ca5900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  white-space: nowrap;
  
}

.blog-intro-text{
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.blog-intro-signature{
  margin: 14px 0 0;
  color: #ca5900;
  font-size: 16px;
  font-style: italic;
}

/* responsive propre */
@media (max-width: 600px){
  .blog-intro-card{
    padding: 20px 16px 18px;
  }

  .blog-intro-title{
    font-size: 16px;
    white-space: normal;
    width: 90%;
  }

  .blog-intro-text{
    font-size: 14px;
  }

  .blog-intro-cadre{
    width: 150px;
  }
}
