/* --------- POLICES --------- */
@import url('https://fonts.googleapis.com/css2?family=Garamond&family=Grafton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --------- BASE --------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', serif;
  background-color: #ffffff;
  color: #333;
  max-width: 960px;
  margin: 0 auto;
  padding: 2em;
  line-height: 1.6;
}

/* --------- EN-TÊTE --------- */
header {
  margin-bottom: 2em;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: #fff;
}

.site-title {
  font-family: 'Open Sans', serif;
  font-size: 2.8em;
  color: #5e4b8b; /* Violet pastel profond */
  margin: 0;
}

/* --------- NAVIGATION --------- */
.main-nav a {
  text-decoration: none;
  color: #8a5d9f;
  font-weight: bold;
  margin-left: 20px;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #c49ccf;
}

/* --------- CONTENU PRINCIPAL --------- */
main h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: #6a4c93;
}

main ul {
  list-style: none;
  padding: 0;
}

main li {
  margin-bottom: 1.5em;
}

/* --------- PIED DE PAGE --------- */
footer {
  margin-top: 4em;
  text-align: center;
  color: #999;
  font-size: 0.9em;
  padding-top: 2em;
  border-top: 1px solid #eee;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-top: 1em;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 15px;
  }
}

/* --- Bloc titre d’article --- */
.article-hero {
  background-color: transparent; /* ou #fff, ou un rose plus discret */
  padding: 2em;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2em;
}

.article-hero h2 {
  font-size: 2.2em;
  color: #6a4c93;
  font-family: 'Open Sans', serif;
}

/* --- Contenu article --- */
.article-content {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  text-align: justify;
}

.article-content p {
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

/* --- Pied de page bleu pastel --- */
footer {
  margin-top: 4em;
  text-align: center;
  font-size: 0.9em;
  padding-top: 2em;
  border-top: 1px solid #eee;
  color: #a4c0dd;
}

.footer-brand {
  color: #7da8d6;
  font-weight: bold;
}

.contact-form {
  background-color: #fff;
  padding: 2em;
  margin-top: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.contact-form p {
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
}

.contact-form button {
  margin-top: 1.5em;
  padding: 0.9em;
  background-color: #cda4de;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #b785cc;
}

.about-section {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  font-size: 1.1em;
  color: #333;
  margin-top: 2em;
  text-align: justify;
}

.apropos-section p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.logo-img {
  height: 250px;       /* Tu peux descendre à 30px si nécessaire */
  width: auto;
  max-width: 100%;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  padding: 8px 14px;
  margin-left: 10px;
  border: 2px solid #f4c2c2;      /* rose pastel doux */
  border-radius: 20px;
  color: #b85c83;                  /* texte rose/mauve doux */
  transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover {
  background-color: #fce4ec;       /* fond rose clair au survol */
  color: #8b3e66;
}

.section-title {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.8em;
  color: #b85c83;
  border: 2px solid #f4c2c2;     /* contour rose pastel */
  border-radius: 25px;
  padding: 8px 20px;
  background-color: transparent; /* <- plus de fond rose */
  margin-bottom: 1em;
  text-align: center;
  display: block;
  margin: 0 auto 1em auto;
}

/* --- Centrage du titre Accueil --- */
.centered-title {
  text-align: center;
}

/* --- Layout deux colonnes amélioré --- */
.main-content {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
  margin-top: 2em;
}

/* --- Articles à gauche (colonne principale) --- */
.articles-preview {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.article-card {
  background-color: #fdf7fb;
  border: 1px solid #f4c2c2;
  border-radius: 12px;
  padding: 1.5em;
  width: calc(50% - 1em);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card h3 {
  color: #6a4c93;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.article-card p {
  font-size: 1em;
  color: #555;
}

/* --- Colonne catégories à droite --- */
.categories-box {
  flex: 1;
  border: 2px dashed #f4c2c2;
  border-radius: 15px;
  background-color: #fff9fc;
  padding: 1.5em;
  font-size: 1em;
  height: fit-content;
  position: sticky;
  top: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.categories-box h3 {
  margin-bottom: 1em;
  color: #b85c83;
  font-size: 1.3em;
  text-align: center;
}

.categories-box ul {
  list-style: none;
  padding: 0;
}

.categories-box li {
  margin-bottom: 0.8em;
  font-weight: 600;
  color: #8b3e66;
  text-align: center;
}

/* --- Responsive ajustement pour petits écrans --- */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .articles-preview {
    flex-wrap: nowrap;
    width: 100%;
  }

  .article-card {
    width: 100%;
  }

  .categories-box {
    width: 100%;
    margin-top: 2em;
  }
}

.home-table {
  width: 100%;
  border-spacing: 3em 0; /* 6em d'écart horizontal */
  border-collapse: collapse;
}

.articles-cell {
  width: 70%;
  vertical-align: top;
}

.categories-cell {
  width: 30%;
  vertical-align: top;
}

.article-card {
  background-color: #f9f6fc;
  border: 1px solid #e5d2f3;
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.no-style-link {
  color: inherit;       /* conserve la couleur du texte normal */
  text-decoration: none; /* enlève le soulignement */
  cursor: pointer;       /* optionnel, montre que c’est cliquable */
}
.no-style-link:hover {
  /* Optionnel : style au survol si tu veux */
  text-decoration: underline;
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: block; /* Pour que le lien prenne toute la zone */
}
.card-link:hover {
  /* style au survol si tu veux */
  text-decoration: underline;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.category-card {
  background-color: #fff0f5; /* rose pastel clair */
  border-radius: 15px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  color: #b85c83;
  font-size: 1.4em;
  margin-bottom: 0.5em;
  font-family: 'Open Sans', sans-serif;
}

.category-card p {
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

.no-style-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.latest-articles {
  margin-top: 3em;
  padding: 2em 0;
}

.article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.article-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 220px;
  text-align: center;
  padding: 1em;
  transition: transform 0.3s ease;
}

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

.card-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8em;
}

.article-card h4 {
  font-size: 1.1em;
  color: #6a4c93;
  margin-bottom: 0.5em;
}

.article-card p {
  font-size: 0.95em;
  color: #555;
}

.article-card a {
  text-decoration: none;
  color: inherit;
}

.home-content {
  display: flex;
  gap: 40px;
  margin-top: 2em;
}

/* Colonne articles */
.articles-column {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.article-card {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card h3 {
  margin-bottom: 0.5em;
  color: #b85c83;
}

/* Colonne catégories */
.categories-sidebar {
  flex: 1.2;
  background-color: #fff0f5;
  padding: 1.5em;
  border-radius: 15px;
  height: fit-content;
}

.categories-title {
  font-size: 1.4em;
  color: #b85c83;
  margin-bottom: 1em;
  border-bottom: 2px solid #f4c2c2;
  padding-bottom: 0.3em;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.8em;
}

.categories-list a {
  color: #8b3e66;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.categories-list a:hover {
  color: #c49ccf;
}

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 2em;
}

/* Grille à 2 colonnes pour les articles */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Cartes d’article */
.article-card {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card h3 {
  margin-bottom: 0.5em;
  color: #b85c83;
}

/* Zone catégories */
.categories-sidebar {
  background-color: #fff0f5;
  padding: 1.5em;
  border-radius: 15px;
  height: fit-content;
}

.categories-title {
  font-size: 1.4em;
  color: #b85c83;
  margin-bottom: 1em;
  border-bottom: 2px solid #f4c2c2;
  padding-bottom: 0.3em;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.8em;
}

.categories-list a {
  color: #8b3e66;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.categories-list a:hover {
  color: #c49ccf;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .categories-sidebar {
    margin-top: 2em;
  }
}

.external-link-box {
  background-color: #fde6ef; /* rose pastel */
  padding: 12px 16px;
  border-left: 4px solid #f78fb3;
  border-radius: 10px;
  margin: 20px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #444;
}

.external-link-box a {
  color: #d14c7d;
  text-decoration: none;
  font-weight: bold;
}

.external-link-box a:hover {
  text-decoration: underline;
}
