/* === STRUCTURE DE BASE === */

main {
  flex: 1 0;
}
footer {
  flex-shrink: 0;
}

/* === POLICES PERSONNALISÉES === */
@font-face {
  font-family: 'Beauty Angelique';
  src: url('fonts/beauty-angelique.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === TYPOGRAPHIE GÉNÉRALE === */
body {
  font-family: 'Pala';
  color: #4a4a4a;
  background-color: #f8f8f1; /* Blanc ceramique */
  padding: 60px;
}

p, li {
  font-size: 18px;
  line-height: 1.6;
  margin: 5px 0 10px 0;
}

/* === TITRES === */
h1, h2, h3 {
  font-family: 'Beauty Angelique', cursive;
  color: #b48eae;
  margin-bottom: 10px;
}

h1 {
  font-size: 72px;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 40px;
  text-align: left;
  margin: 5px 0;
}

h3 {
  font-size: 36px;
  text-align: left;
}

.blog-title {
  text-align: center;
  font-size: 3em;
  font-family: 'Beauty Angelique', cursive;
  margin: -40px 0 20px 0;
}

/* === MESSAGE DE BIENVENUE === */
.message-bienvenue {
  font-size: 24px;
  text-align: center;
  color: #b48eae;
  font-family: 'Cinzel', serif;
  margin: 40px auto;
  position: relative;
}

.retour-accueil {
  display: none;
  margin-left: 10px;
  font-size: 0.9em;
  color: #c3b1e1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* Style du titre */
.blog-title {
  text-align: center;
  font-size: 64px;
  font-family: 'Beauty Angelique', cursive;
  margin: 20px 0;
}

/* Style du lien du titre */
.title-link {
  color: #b48eae; /* lavande */
  text-decoration: none;
}

/* Neutraliser le hover */
.title-link:hover,
.title-link:focus,
.title-link:active {
  color: #b48eae; /* reste lavande */
  text-shadow: none;
  background: none;
}

/* === CITATIONS === */
.citation-titre {
  text-align: center;
  font-family: 'Cinzel', cursive;
  font-size: 1em;
  color: #a078b3;
  margin-top: 60px;
}

.citation-magique {
  font-family: 'Cinzel', cursive;
  font-size: 15px;
  color: #b48eae;
  text-align: center;
  padding: 20px;
  margin: 40px auto 60px auto;
  max-width: 700px;
  border-left: 2px solid #c3b1e1;
  border-right: 2px solid #c3b1e1;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === ARTICLES / POSTS === */
.blog-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* empêche le retour à la ligne */
  gap: 30px;
  max-width: 1000px;
  margin: 20px auto;
  padding: 40px;
}

.post {
  flex: 0  300px; /* largeur fixe, pas de rétrécissement */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}


.post img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.post h2 {
  font-size: 24px;
  color: #b48eae;
  margin-bottom: 10px;
  text-align: center;
}

.post p {
  font-size: 16px;
  color: #4a4a4a;
  margin-bottom: 15px;
}

.meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

/* === LIENS === */
a {
  color: #c3b1e1;
  text-decoration: none;
}

a:hover {
  color: yellow;
  background-color: rgba(255, 215, 0, 0.1);
}

/* === BOUTON LIRE LA SUITE === */
.read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #c3b1e1;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  background-color: #e8c1c5;
}

/* === MENU === */

/* Mets le fond doré uniquement sur le menu */
.menu {
  background-color: gold;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.menu-toggle {
  display: none;
  font-size: 16px;
  color: white;
  cursor: pointer;
  text-align: right;
  padding: 5px 10px;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: lemonchiffon;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.menu a:hover {
  color: yellow;
  background-color: rgba(255, 215, 0, 0.1);
}



/* === FORMULAIRE DANS LE MENU ROSE === */

.menu-form {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.menu-form input {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: rgba(255,255,255,0.85);
}

.menu-form input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.menu-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #ff0090;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.menu-form button:hover {
  background: #ffe6f3;
  transform: translateY(-2px);
}

/* === FOOTER === */

footer {
  background-color: gold;
  color: lemonchiffon;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-family: 'Pala';
}
footer a {
 color: lemonchiffon;
  text-decoration: none;
}


footer a:hover {
  color: white;
  text-decoration: underline;
}

/* === FORMULAIRE DE CONTACT === */
form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #b48eae;
  font-family: 'Cinzel', serif;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #c3b1e1;
  border-radius: 8px;
  font-family: 'Pala';
  font-size: 16px;
  background-color: #fdfdfd;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #c3b1e1;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #e8c1c5;
}





/* === BOUTON RETOUR HAUT === */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: PeachPuff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 20%;
  cursor: pointer;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
  .blog-columns {
    flex-direction: column;
    align-items: center;
  }

  .post {
    max-width: 90%;
  }
  }

@media (max-width: 768px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 42px;
  }

  .menu-toggle {
    display: block;
  }

  .menu ul {
    display: none;
    flex-direction: column;
    background-color: #444;
    margin-top: 10px;
  }

  .menu.show ul {
    display: flex;
  }

  .menu a {
    padding: 15px;
    display: block;
  }

  .menu li {
    border-top: 1px solid #555;
    margin: 0;
  }
  }