@font-face {
  font-family: "ComicNeue";
  src: url("/fonts/ComicNeue-Regular.woff") format("woff");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  
}
@font-face {
  font-family: "Porkys_";
  src: url("/fonts/PORKYS_.woff") format("woff");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

#site-notice {
  background-color: #ffc6c6;
  color: #4d3b00;
  font-family: "ComicNeue", cursive, sans-serif;
  padding: 10px 20px;
  text-align: center;
  font-size: 1em;
  border-bottom: 2px dashed #d0a000;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

#info-banner {
  display: none; /* par défaut */
  background-color: #ffc6c6;
  color: #4d3b00;
  font-family: "ComicNeue", cursive, sans-serif;
  padding: 8px 12px;
  font-size: 1em;
  text-align: center;
  border-bottom: 2px dashed #d69c1d;
  position: relative;
  z-index: 1000;
  position: relative;
  animation: slideDown 0.4s ease;
}

/* Quand on retire la classe hidden, il devient visible */
#info-banner.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




body {
  font-family: "ComicNeue", cursive, sans-serif;
  background: url('images/flowr1.jpg') repeat;
  margin: 0;
  padding: 0;
  text-align: center; /* On garde le centrage du texte global */
  font-weight: bold;
}

/* Forcer toutes les images à ne pas dépasser leur conteneur */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Forcer le retour à la ligne pour les textes longs */
p, h1, h2, h3, h4, h5, h6, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Curseur personnalisé --- */
html, body, *, *:hover {
  cursor: url('/images/baguette.png') 10 5, auto !important;
}

/* --- Style des étoiles scintillantes --- */
.star {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  animation: fadeOut 1s forwards, twinkle 0.5s infinite alternate;
}

/* --- Animations --- */
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(2); }
}

@keyframes twinkle {
  from { filter: brightness(1.2); transform: rotate(0deg); }
  to { filter: brightness(2); transform: rotate(15deg); }
}

/* --- Logo du site --- */
#site-logo {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px;
}

#site-logo img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* --- Conteneur Principal --- */
#container {
  width: 700px;
  max-width: 700px;
  margin: 30px auto; /* Permet de centrer le conteneur */
  padding: 20px;
  background-color: #fffbdc;
  border: 5px solid #ffc400;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 2px dashed #f4a949;
  border-radius: 5px;
  padding: 6px 12px;
  background: #fffef2;
  box-shadow: 2px 2px 0 #f4a949;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Porkys_", cursive;
}

.nav-btn:hover {
  transform: scale(1.1) rotate(-1deg);
  background-color: #ffc115;
  color: #d75f00;
  box-shadow: 2px 2px 0 #ffc57e;
}

.nav-btn img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.nav-btn span {
  font-size: 25px;
  font-weight: bold;
  color: #3c240c;
}

/* Adapté aux petits écrans */
@media screen and (max-width: 500px) {
  .nav-btn {
    padding: 6px 10px;
  }

  .nav-btn img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .nav-btn span {
    font-size: 14px;
  }
}




/* --- En-tête --- */
header {
  text-align: center;
  padding: 10px;
  background-color: #f3dc91;
  border-bottom: 3px solid #ffc400;
}

header img#logo {
  display: block;
  margin: 0 auto;
  max-width: 450px;
}

/* --- Navigation avec images --- */
nav {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

nav a img {
  width: 200px;
  height: auto;
}

/* Votre conteneur principal fait 700px, on aligne la marquee dessus */
.marquee {
  width: 697px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background-color: #ecac58;
  padding: 5px 0;
  border: 2px solid rgb(255, 153, 0);
}

/* Contenu défilant (dupliqué dans le HTML pour l'effet infini) */
.marquee-content {
  display: inline-flex;
  white-space: nowrap;
  min-width: 200%;
  animation: marquee-scroll 30s linear infinite;
}

/* Espacement entre les images */
.marquee-content a {
  display: inline-block;
  padding: 0 10px;
}

/* Taille des images boutons */
.marquee-content a img {
  width: 100px !important;
  max-width: none !important;
  height: auto;
}

/* Animation fluide et infinie (défile de 0% à -50%) */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* --- Section Présentation --- */
#presentation {
  background: #fff8e1;
  border: 3px dashed orange;
  padding: 20px;
  margin: 30px auto;
  max-width: 800px;
  font-family: "ComicNeue", cursive, sans-serif;
  overflow: hidden;
}

.presentation-container {
  display: flex;
  align-items: flex-start;
}



.presentation-texte h2 {
  margin-top: 0;
  font-size: 1.8rem;
  text-align: center;
  color: #000;
}

.presentation-texte p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

/* Image à droite bien collée au bord */
.presentation-avatar {
  position: absolute;
  right: 20px;
  top: 38px;
  height: 130px;
  object-fit: contain;
  z-index: 0;
}






/* --- Galerie Photos (style rétro polaroid avec fond liège) --- */
#gallery {
  padding: 20px;
  margin: 20px 0;
  background: url('images/tableau_liege.png') no-repeat center center;
  background-size: cover;
  border: 3px dashed #f19316;
}

#gallery h2 {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* --- Centrage du logo Galerie Photo --- */
#gallery-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

#gallery-title img {
  max-width: 300px;
  height: auto;
}

/* Conteneur de la galerie */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  padding: 10px;
}

/* Style des cartes Polaroid */
.polaroid {
  background-color: #fff;
  padding: 15px;
  border: 4px solid #f0f0f0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  /* transform: rotate(-2deg); ← 🔁 à supprimer */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
}

.voir-plus-btn {
  background-color: #085a5a;
  color: white;
  padding: 10px 20px;
  font-family: "ComicNeue", cursive, sans-serif;
  font-size: 1.1rem;
  border: 3px outset #fff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 3px 3px 0 #555;
  transition: all 0.2s ease;
  display: inline-block;
}

.voir-plus-btn:hover {
  background-color: #488fac;
  box-shadow: 5px 5px 0 #333;
}


.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.8);
}

.polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 8px;
}

.polaroid .caption {
  font-family: 'Courier New', monospace;
  font-size: 1em;
  color: #333;
  text-align: center;
}

/* --- Section Dernières Entrées --- */
#latest-entries {
  padding: 20px;
  margin: 15px 0;
  background-color: #f3dc91;
  border: 3px dashed #f19316;
}

/* --- Grille des 4 dernières entrées (2x2) --- */
.grid-latest-entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Style des entrées affichées en grille --- */
.latest-entry {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff9249;
  padding: 10px;
  text-align: center;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Titre de l'entrée --- */
.latest-entry h3 {
  margin: 5px 0;
  font-size: 1.1em;
  line-height: 1.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Images uniformisées --- */
.latest-entry .entry-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

/* --- Extrait du contenu --- */
.latest-entry p {
  margin: 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limite à 2 lignes */
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

/* --- Bouton "Lire la suite" --- */
.read-more {
  background: #f59547;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
  border-radius: 3px;
}
.read-more:hover {
  background: #ffc814;
}



/* --- Boutons Retour et Découvrir Plus --- */
.btn-return, .btn-discover {
  background: #f5982f;
  color: #fff;
  padding: 8px 20px;
  font-size: 1rem;
  margin-bottom: 30px;
  margin-top: 20px;
  font-family: "ComicNeue", cursive, sans-serif;

  border: 3px outset #ffffff;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #888;
  transition: background-color 0.3s ease;
}
.btn-return:hover, .btn-discover:hover {
  background: #f38327;
}



#see-more-guestbook.blue-button {
  background: #00bfff;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: "ComicNeue", cursive, sans-serif;
  border: 3px outset #ffffff;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #888;
  transition: background-color 0.3s ease;
}

#see-more-guestbook.blue-button:hover {
  background-color: #87cefa;
}


#guestbook-preview {
  padding: 20px;
  margin: 20px 0;
  background: url('images/bluesky_nuage.jpg') no-repeat center center;
  background-size: cover;
  border: 4px dashed #ccf1f1;
}

#clouds-title img {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#guestbook-preview h2 {
  margin-bottom: 20px;
}

#guestbook-bubbles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: start;
  padding: 10px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Bulle compacte façon nuage */
.bubble {
  position: relative;
  background: #ffffffee;
  border-radius: 40px;
  padding: 15px;
  width: 100%;
  max-width: 280px;
  min-height: 140px;
  box-shadow: 4px 4px 0 #ccc;
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}


.bubble img {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #d6a844;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: white;
}


.bubble strong {
  display: block;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #000080;
  font-family: "ComicNeue", cursive, sans-serif;
}

.bubble blockquote {
  margin-top: 8px;
  font-size: 0.95rem;
  font-style: italic;
  background: #f0f8ff;
  border-left: 4px solid #00bfff;
  padding-left: 10px;
  border-radius: 8px;
  color: #333;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}




/* --- Section pour le dashboard admin --- */
#admin-container {
  width: 700px;
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fffbdc;
  border: 5px solid #ffc400;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

/* --- Image FIXE en bas de la page, au-dessus du pied de page --- */
#fixed-image {
  position: absolute;
  left: 87%;
  bottom: 0;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  z-index: 99999;
  pointer-events: none;
}

/* --- Style du lecteur audio rétro --- */
#retro-audio-player {
  background-color: #ffcc00;
  border: 4px solid #000;
  padding: 15px;
  width: 300px;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: #000;
  box-shadow: 4px 4px 0px #000;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
}
#retro-audio-player #audio-info {
  margin-bottom: 10px;
  font-size: 12px;
}
.audio-controls {
  display: flex;
  justify-content: space-between;
}
.audio-controls button {
  background-color: #000;
  color: #ffcc00;
  border: none;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  width: 30%;
  font-family: 'Press Start 2P', cursive;
}
.audio-controls button:hover {
  background-color: #ff6600;
}


#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 5 auto;
  display: inline-flex;
  gap: 25px;
  align-items: center;
}

#main-nav li {
  display: inline-block;
}

#main-nav img {
  width: 100px;
  height: auto;
  transition: transform 0.2s ease;
  cursor: pointer;
  image-rendering: pixelated; /* optionnel pour un look rétro */
}

#main-nav img:hover {
  transform: scale(1.1);
}





/* === Galerie photo façon Tetris === */
/* --- Galerie responsive façon Tetris avec images plus petites --- */
.photo-group {
  column-count: 3;
  column-gap: 10px;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .photo-group {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .photo-group {
    column-count: 1;
  }
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 5px;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.photo-item img:hover {
  transform: scale(1.02);
}




#retour-btn2 {
  background: #eca92b;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: "ComicNeue", cursive, sans-serif;
  border: 3px outset #ffffff;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #888;
  transition: background-color 0.3s ease;
}

#retour-btn2:hover {
  background-color: #eec16d;
}








#zoom-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#zoom-overlay.hidden {
  display: none;
}

#zoom-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

#zoom-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
}

#close-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f19316;
  color: white;
  border: none;
  padding: 5px 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.tag-badge {
  background-color: #dff0f7;
  color: #007acc;
  border: 1px solid #b0d8ef;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 0.75rem;
  margin: 2px;
  display: inline-block;
  font-family: "ComicNeue", cursive, sans-serif;
}

.photo-item {
  position: relative;
  display: inline-block;
}

.favorite-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(238, 100, 192);
  color: white;
  font-weight: bold;
  font-size: 0.7em;
  padding: 4px 8px;
  border-bottom-right-radius: 8px;
  z-index: 2;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}






.nav-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  list-style: none;
}

.nav-icons li {
  text-align: center;
}

.nav-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.nav-icons img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.nav-icons span {
  font-family: 'ComicNeue', cursive;
  font-size: 16px;
  color: #4b2c2c;
}

.entry-meta {
  background: #f7dd80; /* Jaune pâle très doux (en accord avec ton fond) */
  padding: 10px 20px;
  border-radius: 12px;
  margin-top: 15px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: #5a3e1b; /* Marron doux pour rester lisible mais chaleureux */
  font-family: 'Poppins', 'Arial', sans-serif;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0px 4px 8px rgba(90, 62, 27, 0.1); /* Ombre très légère brun clair */
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 20%;
  object-fit: cover;
  margin-bottom: 8px;
  
  border: 3px solid #ffffff; 
  background-color: #fff; 
  box-shadow: 0px 2px 5px rgba(90, 62, 27, 0.2); 
}


.entry-meta {
  background: #e2be6f; 
  padding: 6px 12px;
  border-radius: 10px;
  margin: 5px auto 5px auto;
  font-size: 0.8rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.profile-pic-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}





/* --- Pied de Page --- */
footer {
  text-align: center;
  padding: 10px;
  background-color: #f3dc91;
  border-top: 3px solid #ffc400;
  font-size: 12px;
}
