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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1574ce;
  background: #f9f9f9;
  line-height: 1.6;
}

/* ----- NAVBAR ----- */
/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(108, 10, 133, 0.9); /* fond blanc semi-transparent */
  backdrop-filter: blur(6px);            /* effet verre dépoli */
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* petite ombre */
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

/* soulignement animé au survol */
.navbar ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #0077cc;
  transition: width 0.3s;
}

.navbar ul li a:hover {
  color: #0077cc;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* lien actif (section courante) */
.navbar ul li a.active {
  color: #0077cc;
}

.navbar ul li a.active::after {
  width: 100%;
}


/* ----- SECTIONS ----- */
section {
   padding: 6rem 2rem 2rem; /* espace en haut pour la navbar */
  display: flex;
  flex-direction: column;
  align-items: center;   /* centre horizontalement */
  text-align: center;
}

/* Accueil avec fond */
.accueil .fond {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accueil .contenu {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 12px;
  max-width: 1000px;
}

.accueil .texte {
  flex: 1;
}

/* ----- TABLEAUX ----- */
.tableaux .grille {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
}

.tableaux .ligne {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tableaux .ligne.inverse {
  flex-direction: row-reverse;
}

.tableaux img.miniature {
  width: 200px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

.tableaux img.miniature:hover {
  transform: scale(1.05);
}

.tableaux .texte {
  flex: 1;
}

/* ----- GRAND IMAGE (lightbox) ----- */
.grand-image {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.grand-image img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.grand-image .fermer {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* ----- POESIES ----- */
.texte .contenu {
  max-width: 800px;
  text-align: justify;
  margin: 0 auto;
}

/* ----- CONTACT ----- */
.contact {
   text-align: center;
  max-width: 800px;
  margin: 0 auto;   /* centre horizontalement le bloc */
}

/* ----- RESEAUX ----- */
.reseaux {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.reseaux a {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.reseaux a:hover {
  color: #0077cc;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .tableaux .ligne {
    flex-direction: column;
    text-align: center;
  }

  .accueil .contenu {
    flex-direction: column;
  }
}

footer {
  background-color: #f5f5f5; /* gris clair */
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: #555;
  border-top: 1px solid #ddd;
}

footer a {
  color: #555;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

label {
  font-weight: bold;
}

input, textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px;
  background: #0073e6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #005bb5;
}
