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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color:#ffffff;
  color: #02203b;
  line-height: 1.6;
}

/* === Hero image plein écran (SEULEMENT pour la page d'accueil) === */
.hero {
  position: relative;
  height: 100vh;
  background: url('images/accueil.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  background-color: rgba(213, 173, 250, 0.712);
  padding: 2em;
  text-align: center;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: #e5ff00f3;
  font-size: 3rem;
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-family: 'Poppins', sans-serif;
  color: #F5F0E1;
  font-size: 1.5rem;
  margin-bottom: 1em;
}

/* === Header (violet profond partout) === */
header {
  text-align: center;
  padding: 2em 1em;
  background-color: #2C0050;
  color: #F5F0E1;
}

header h1 {
  font-family: 'Playfair Display', serif;
  color: #e5ff00f3;
  font-size: 2.4rem;
  margin-bottom: 0.5em;
}

/* === Navigation (dans le header violet) === */
/* === Menu avec effet “underline glissant” === */
nav {
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #F5F0E1;
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 25px;
  position: relative;
  transition: color 0.3s;
}

/* Ligne glissante */
nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #e5ff00f3;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 60%;
}

/* Changement de couleur du texte pour l’actif */
nav a.active {
  color: #e5ff00f3;
}


/* === Main Content (fond blanc moderne pour toutes les pages sauf accueil) === */
main {
  min-height: calc(100vh - 250px);
  padding: 3em 1.5em;
  background-color: #FFFFFF;
  max-width: 1000px;         /* centrage horizontal */
  margin: 0 auto;             /* centrage horizontal */
  text-align: left;         /* contenu à gauche */
}

/* Pour la page d'accueil, le main contient le hero donc pas de padding supplémentaire */
.accueil main {
  padding: 0;
  min-height: auto;
}

/* === Titres secondaires (modernes avec accent jaune) === */
h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #2C0050;
  margin-bottom: 1em;
  position: relative;
  font-size: 2rem;
}

h2::after, h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);  /* centre la ligne décorative */
  width: 60px;
  height: 3px;
  background-color: #e5ff00f3;
}

/* === Articles de poésie === */
.poesie article {
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.poesie article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* === Sections idéaux === */
.ideaux section {
  margin-bottom: 2.5em;
}

.ideaux ul {
  list-style: none;
  padding-left: 0;
}

.ideaux li {
  padding: 0.5em 0;
  position: relative;
  padding-left: 20px;
  text-align: left; /* reste lisible malgré le centrage global */
}

.ideaux li::before {
  content: '•';
  color: #e5ff00f3;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* === Mentions légales === */
.mentions {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
}

.mentions p {
  margin-bottom: 1em;
}

.mentions strong {
  color: #2C0050;
  font-weight: 600;
}

/* === Boutons === */
.btn {
  display: inline-block;
  padding: 0.8em 1.2em;
  border-radius: 40px;
  background-color: #e5ff00f3;
  color: #2C0050;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #e5ff00f3;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

.btn:hover {
  background-color: #2C0050;
  color: #e5ff00f3;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 238, 0, 0.3);
}

/* === Galerie de tableaux === */
.galerie {
  padding: 2em 1.5em;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

figure {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(44, 0, 80, 0.1);
  border: 1px solid #e0e0e0;
}

figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(44, 0, 80, 0.2);
}

figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

figcaption {
  padding: 1.2em;
  color: #2C0050;
  font-style: normal;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

/* === Footer (violet profond partout) === */
footer {
  text-align: center;
  padding: 2em 1em;
  background-color: #2C0050;
  color: #F5F0E1;
  margin-top: auto;
}

footer p, footer a {
  color: #F5F0E1;
}

footer a {
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #e5ff00f3;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.8em;
    align-items: center;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.7em 1em;
  }

  h2, h3 {
    font-size: 1.6rem;
  }

  h2::after, h3::after {
    width: 40px;
  }

  main {
    padding: 2em 1em;
  }

  .grille {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header {
    padding: 1.5em 1em;
  }

  nav {
    padding: 0.8em 0;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6em 0.9em;
  }

  h2, h3 {
    font-size: 1.4rem;
  }

  figure img {
    height: 200px;
  }
}
/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #F5F0E1;
  font-family: 'Poppins', sans-serif;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #FFEE00;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #fff;
}


