
/*header*/
header {
  display: flex;
  width: 100%;
  box-sizing: border-box;  
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #2c3e50;
  color: white;
  flex-wrap: wrap;
  gap: 20px;
}

.header-center {
  flex-grow: 1;
  text-align: center;
}

.vignette {
  background-color: #34495e;
  padding: 10px;
  border-radius: 8px;
  width: 160px;
  font-size: 0.85em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-align: center;
}

.vignette a {
  display: block;
  margin-top: 5px;
  text-decoration: none;
  background-color: #ecf0f1;
  color: #2c3e50;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.vignette a:hover {
  background-color: #f39c12;
  color: white;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .vignette {
    width: 100%;
  }
}
/*header*/

h1 {
 text-align: center;
 color: #f9f9f9;
 margin-bottom: 10px;
}

h1 {
 margin: 0;
}

.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 20px;
 max-width: 1100px;
 margin: auto;
}

.article-card {
 background-color: #fff;
 border-radius: 10px;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 overflow: hidden;
 transition: transform 0.2s ease-in-out;
}

.article-card:hover {
 transform: translateY(-5px);
}

.article-card img {
 width: 100%;
 height: 180px;
 object-fit: cover;
}

.article-content {
 padding: 15px;
}

.article-content h2 {
 font-size: 1.2rem;
 margin: 0 0 10px;
 color: #333;
}

.article-content p {
 font-size: 0.95rem;
 color: #666;
 margin-bottom: 10px;
}

.article-content small {
 display: block;
 color: #aaa;
 margin-bottom: 10px;
}

.article-content a {
 display: inline-block;
 color: #007bff;
 text-decoration: none;
 font-weight: bold;
}

.article-content a:hover {
 text-decoration: underline;
}

.admin-button {
 padding: 5px 15px;
 background-color:rgb(242, 247, 251);
 border: none;
 border-radius: 8px;
 color: blue;
 cursor: pointer;
 transition: background-color 0.3s;
 text-decoration: none;
 text-align: center;
 display: inline-block;
 }

/*extrait de layout.css*/ 
.container {
 display: flex;
 justify-content: center;
 gap: 20px;
 margin: 20px;
}
.main-content {
 width: 100%;
 background-color: #ffffff;
 padding: 15px;
 border-radius: 10px;
}

.main-inner {
    max-width: 100%;
    margin: 0 auto;    /* 💥 Ça centre le bloc horizontalement */
    text-align: left;  /* Et le texte reste aligné à gauche */
   }

.left-side, .right-side {
    width: auto;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
   }
   
   

@media (max-width: 768px) {
 .container {
     flex-direction: column;
 }

 .left-side, .right-side, .main-content {
     width: 100%;
 }
}

.left-side {
 background-color: #f9f9f9;
}

.main-content {
 background-color: #eaf7ff;
}

.right-side {
 background-color: #f9f9f9;
}

  /* bouton du "voir dossier" */
.btn-dossier {
  display: inline-block;
  background-color: #9cf6f8;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
  }
.btn-dossier:hover {
  background-color: #fdc87d;
  }

.a-lire-aussi {
  margin-top: 0px;
  padding: 10px;
  background: #f5f2f2;
  border-radius: 12px;
}


.titre-section {
  font-size: 1.6em;
  margin-bottom: 10px;
  text-align: center;
}

.grille-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.carte-article {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.carte-article:hover {
  transform: translateY(-5px);
}

.carte-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.carte-article h3 {
  font-size: 1.2em;
  margin: 10px 0;
}

.carte-article p {
  font-size: 0.95em;
  color: #555;
}

.bouton-lire {
  display: inline-block;
  margin-top: 10px;
  color: white;
  background-color: #007bff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
}

.bouton-lire:hover {
  background-color: #0056b3;
}

/*Début: Réseaux sociaux: aimer-partager-copier le lien*/
.blog-engagement {
  text-align: center;
  margin: 60px auto 40px;
  padding: 30px;
  max-width: 600px;
  background: #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-engagement h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1e3a8a;
}

.engagement-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.engagement-buttons button,
.engagement-buttons a {
  background: #2563eb;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}

.engagement-buttons button:hover,
.engagement-buttons a:hover {
  background: #1e40af;
}

.copy-message {
  margin-top: 15px;
  font-size: 0.9rem;
  color: green;
}
/*Fin: Réseaux sociaux: aimer-partager-copier le lien*/
