/* Feuille CSS pour Produits */

/* Déclaration des polices, chaque font dans son propre @font-face */
@font-face {
  font-family: "land";
  src: url('font/land.otf');
  font-display: swap;
}

@font-face {
  font-family: "gigi";
  src: url('font/gigi.ttf');
  font-display: swap;
}

@font-face {
  font-family: "slim";
  src: url('font/slim.ttf');
  font-display: swap;
}

@font-face {
  font-family: "teton";
  src: url('font/teton.ttf');
  font-display: swap;
}

@font-face {
  font-family: "celt";
  src: url('font/celt.ttf');
  font-display: swap;
}

/* Corps de la page */
body {
  margin: 0; /* auto n'est pas valide pour margin/padding */
  padding: 0;
  background: black;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* font-display n'est pas une propriété valide pour body */
}

/* Pied de page */
.footer {
  color: white;
  font-size: 1.6em;
  font-style: italic;
  font-family: teton;
}

/* Styles pour strong et em */
strong, em {
  font-family: celt;
  color: #FF7F50;
}

/* Styles .parag */
.parag {
  line-height: 1.6em;
  margin: 8px auto;
  font-size: 1.1em;
  background-color: black;
  text-align: center;
  list-style-position: inside;
  padding: 6px 10px;
  font-family: land;
  color: #65FF00;
}

/* Styles communs pour .parag et p */
.parag
p, ul, ol {
  line-height: 1.4em;
  margin: 6px auto;
  font-size: 1em;
  text-align: center; /* ici tu avais justify, j'ai gardé center pour cohérence */
  background-color: transparent;
  font-family: gigi;
  color: #C0FFC0;
  padding: 4px 8px;
}

/* Titres */
h1 {
  color: gold;
  text-align: center;
  font-size: 1.2em;
  font-family: celt;
  margin: 10px auto;
  line-height: 1.2em;
  text-shadow: 1px 1px 1px purple, 0 0 0.5em black;
  max-width: 90%;
}

h2 {
  color: gold;
  font-style: italic;
  text-align: center;
  font-size: 1em;
  font-family: celt;
  margin: 8px auto;
  line-height: 1.3em;
  text-shadow: 1px 1px 1px purple, 0 0 0.5em black;
  max-width: 90%;
}

h3 {
  color: gold;
  font-family: celt;
  font-size: 1em;
  font-style: italic;
  margin: 8px auto;
  line-height: 1.3em;
  text-shadow: 1px 1px 1px purple, 0 0 0.5em black;
  max-width: 90%;
}

/* Toggle */
.toggle-title {
  cursor: pointer;
  display: block;
  width: fit-content;
  padding: 0 6px;
  background-color: black;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-bottom: 8px;
}
.toggle-title:hover {
  background-color: #ADD8E6;
}

.toggle-content {
  display: none;
  padding: 2px 3px;
  border-left: 3px solid #ccc;
  background-color: black;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.toggle-content p {
  font-size: 0.95em;
  line-height: 1.4em;
  padding: 4px 10px;
  color: #D0FFD0;
  text-align: justify;
}



/* Images */
.main img {
  border-radius: 20px;
  height: 260px;
  width: 260px;
  overflow: hidden;
}

.main {
  width: 100%;
}

.collection-wrapper {
  width: 25%;
  float: left;
}

.product-card_title h3 {
    height: 40px;
    line-height: 1.3em;
  }

.product-card_price {
  font-family: celt;
  color: #00FFFF;
  font-size: 1.40em;
}

.product-card_img {
  display: block;
}

/* Overlay */
.overlay-image {
  position: relative;
  display: inline-block;
}

.overlay-image img {
  display: block;
}

.over-image {
  position: absolute;
  top: 75%;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 20px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.overlay-image .hover-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  background-color: rgba(10, 26, 0, 0.5);
  color: white;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.overlay-image .hover-image p {
  font-size: 1.35em;
  border-radius: 8px;
  font-family: celt;
  color: gold;
  background-color: transparent;
}

.overlay-image:hover .hover-image {
  opacity: 1;
}

/* Boutons */
.bouton a {
  background: #850606;
  border-radius: 6px;
  padding: 0.3em 0.3em;
  color: white;
  display: inline-block;
  text-align: center;
  font-size: 1.25em;
  text-decoration: none;
  font-family: gigi;
}

.boxboutonPag {
  display: inline-block;
  text-align: center;
  margin: 25px auto 0 auto;
}

.boutonPag a {
  background: black;
  border-radius: 90px;
  padding: 25px;
  color: silver;
  float: left;
  font: bold 1.2em "teton", sans-serif;
  text-align: center;
  max-width: 5%;
  text-decoration: none;
}

.boutonPag a:visited {
  background-color: #4b0b5f;
}

.boutonPag a:hover:not(.active) {
  /* background-color vide supprimé */
}

.boutonPag a:active {
  background-color: rgb(139, 255, 28);
}

/* Footer */
.foot {
  display: inline-block;
  width: 100%;
}

/* Checkbox */
.chekbox {
  display: inline-block;
}

input[type="checkbox"] {
  accent-color: green;
}

label {
  color: black;
}

legend {
  color: black;
  font-family: gigi;
  font-size: 1.45em;
  background-color: #00FFFF;
  border-radius: 5px;
  padding: 0 5px;
}

/* Spoiler */
div.spoiler {
  cursor: pointer;
}

div.spoiler div.contenuSpoiler {
  display: none;
}

p a {
  font-family: celt;
  color: #FF7F50;
  text-decoration: none;
}


p a:hover {
  color: black;
  background-color: #1df1ad;
  border-radius: 6px;
}


/* Responsive */

@media all and (max-width: 1200px) {
  h1 {
    font-size: 1.1em;
  }
  h2 {
    font-size: 0.9em;
  }
  h3 {
    font-size: 0.85em;
  }
  .product-card_title h3 {
    height: 65px;
  }
  .overlay-image .hover-image p {
    font-size: 1.25em;
    border-radius: 4px;
  }
  .parag {
    line-height: 14px;
    letter-spacing: 1px;
    list-style-position: outside;
    margin: 0 auto;
    font-size: 0.85em;
    background-color: black;
  }
  .product-card_img {
    display: block;
    margin: 0 auto;
  }
  .main img {
    height: 140px;
    width: 140px;
    border-radius: 12px;
    box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5);
  }
  .main {
    width: 100%;
  }
  .collection-wrapper {
    width: 50%;
    float: left;
  }
  .product-card_price {
    font-size: 1.2em;
    text-align: center;
  }
  .bouton a {
    font-size: 1em;
  }
  .boxboutonPag {
    margin-top: 5px;
  }
  .boutonPag a {
    border-radius: 15px;
    padding: 15px;
    font: bold 1em "teton", sans-serif;
  }
  legend {
    font-size: 1.25em;
  }
}

