/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #687061;
  color: white;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

/* En-tête */
header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 47px;
background-color: black;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
box-sizing: border-box;
z-index: 10; /* important pour qu’il reste au-dessus */
}

header img {
height: 25px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: black;
  border: 1px solid white;
  padding: 6px;
  cursor: pointer;
  height: 35px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100%;
}

#search-input {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 35px;
  padding: 0 10px;
  background-color: black;
  color: white;
  border: 1px solid white;
  width: 200px;
  z-index: 2;
}

/* Fil d'ariane */
.breadcrumb {
position: absolute;
top: 47px;
left: 0;
width: 100%;
height: 47px;
background-color: white;
color: black;
display: flex;
align-items: center;
padding: 0 2rem;
font-size: 14px;
box-sizing: border-box;
z-index: 9;
}
.breadcrumb a {
  color: black;
  text-decoration: none;
  margin-right: 0.5rem;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Contenu principal */
main {
  flex: 1;
  padding: 2rem;
  margin: 10 px
}

.page-index main,
.page-index .zone-centrale {
margin-top: 47px;
}

.page-standard main,
.page-standard .zone-centrale {
margin-top: 94px;
}

.page-plante main,
.page-plante .zone-centrale {
margin-top: 120px;
}

/* Pied de page */
footer {
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 11px
}
footer a {
  color: lightgray;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.wrapper {
display: flex;
justify-content: center; /* centre horizontalement */
align-items: center; /* centre verticalement */
height: 70vh; /* prend toute la hauteur de la fenêtre */
}
.category-flex {
display: flex;
flex-wrap: wrap;
width: 55%;
max-width: 1200px;
margin: auto;
gap: 5px;
}
.tile {
flex: 0 0 calc(20% - 4px);
aspect-ratio: 1/1;
background-size: cover;
background-position: center;
position: relative;
transition: background-color 0.3s ease;
}
.tile.clickable:hover {
background-image: none !important;
background-color: black;
}
.tile.clickable a {
color: white;
font-weight: bold;
text-decoration: none;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
.voir-toutes-plantes {
text-align: center;
margin: 10px auto;
width: 100%;
display: block;
}

.voir-toutes-plantes a {
color: #cccccc;
text-decoration: underline;
font-size: 0.9em;
transition: color 0.3s ease;
}

.voir-toutes-plantes a:hover {
color: #888888;
}
.zone-centrale {
display: flex;
justify-content: center;
align-items: center;
background-color: #0a3d0a;
margin: 40px auto;
padding: 40px;
width: fit-content;
max-width: 90%;
border-radius: 0;
gap: 40px;
}
.zone-centrale .colonne {
width: 300px;
color: white;
}
.zone-centrale img {
width: 300px;
height: 300px;
object-fit: cover;
border-radius: 0;
display: block;
}
.zone-centrale {
max-width: calc(100% - 200px);
word-wrap: break-word;
overflow-wrap: break-word;
}
/* Conteneur du grid */
.grille-plantes {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 20px;
}

/* Tuile individuelle */
.tuile-plante {
text-decoration: none;
color: white;
transition: filter 0.3s ease;
}

.tuile-plante:hover {
filter: brightness(0.8);
}

/* Conteneur de l’image + texte */
.image-container {
position: relative;
width: 100%;
aspect-ratio: 1/1;
overflow: hidden;
background-color: #333;
}

/* Skeleton loader */
.skeleton img {
opacity: 0;
transition: opacity 0.5s ease;
}
.skeleton img.loaded {
opacity: 1;
}

/* Image de plante */
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Texte en bas de l’image */
.nom-plante {
position: absolute;
bottom: 0;
width: 100%;
background: black;
color: white;
font-size: 0.85em;
padding: 4px;
text-align: center;
}
/* Bloc pour paragraphe */
.bloc-texte {
width: 97%;
margin: 2rem auto;
padding: 1.5rem;
background-color: #0a3d0a;
border-radius: 0px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
color: white;
}
.bloc-texte p {
margin-bottom: 1rem;
line-height: 1.6;
}
/* print.css */
@media print {
  body {
    font-size: 10pt;
    margin: 0;
    padding: 0;
}
