@media (prefers-color-scheme: dark) {
  html {
    background-color: #fff !important;
    color-scheme: only light;
  }

  body, body * {
    background: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
  }
}


/* Exemple : Police si tu en as besoin */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS EXEMPLE ===============*/
:root {
  /*========== Colors ==========*/
  --jg-first-color: hsl(82, 60%, 28%);  /* Vert */
  --jg-title-color: hsl(0, 0%, 15%);
  --jg-text-color: hsl(0, 0%, 35%);
  --jg-body-color: hsl(0, 0%, 95%);
  --jg-container-color: hsl(0, 0%, 100%);
  --faq-bg: #fff;
  --faq-text: #848a91;
  --faq-gray: #494b4e;
  --faq-lightgray: #e5e5e5;
  --faq-primary: #d19a75;

  /*========== Font and typography ==========*/
  --jg-body-font: "Poppins", sans-serif;
  --jg-h2-font-size: 1.25rem;
  --jg-small-font-size: .813rem;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1120px) {
  :root {
    --jg-h2-font-size: 1.5rem;
    --jg-small-font-size: .875rem;
  }
}

/* Conteneur principal (remplace .container) */
.jg-gallery {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
  padding-block: 5rem; 
}
.jg-gallery-text {
    text-align: center;
    padding: 4.5rem 0 2rem;
  }
  

/* Grille de cartes (remplace .card__container) */
.jg-gallery-grid {
  display: grid;
  grid-template-columns: 1fr; /* => 1 colonne par défaut (mobile) */
  gap: 20px;
  justify-content: center;
}


/* Chaque carte (remplace .card__article) */
.jg-card {
  position: relative;
  overflow: hidden;
}

/* Image : 380×480 (remplace .card__img) */
.jg-card-img {
    width: 100%;
    max-width: 380px;      /* Elle n’ira jamais au-dessus de 380px */
    aspect-ratio: 380/480; /* Ratio ~ 0.79 (même forme verticale) */
    object-fit: cover;
    border-radius: 1.5rem;
    margin: 0 auto;
     display: block;
     }

/* Bloc info (remplace .card__data) */
.jg-card-info {
  width: 320px;
  background-color: var(--jg-container-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

/* Remplace .card__title => .jg-card-title */
.jg-card-title {
  font-size: var(--jg-h2-font-size);
  font-weight: 500;
  color: var(--jg-title-color);
  margin-bottom: 0.75rem;
}

/* Remplace .card__description => .jg-card-desc */
.jg-card-desc {
  display: block;
  font-size: var(--jg-small-font-size);
  margin-bottom: 0.25rem;
}

/* Remplace .card__price => .jg-card-price */
.jg-card-price {
  color: var(--jg-first-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Remplace .card__ref => .jg-card-ref */
.jg-card-ref {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: var(--jg-small-font-size);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
}

/* Apparition du code de référence au survol */
.jg-card:hover .jg-card-ref {
  opacity: 1;
  transform: translateY(0);
}

/* Animation du bloc info (remplace .card__data) au survol */
.jg-card:hover .jg-card-info {
  animation: jg-show-data 1s forwards;
  opacity: 1;
  transition: opacity 0.3s;
}

/* Gère l'overflow lors du survol */
.jg-card:hover {
  animation: jg-remove-overflow 2s forwards;
}
.jg-card:not(:hover) {
  animation: jg-show-overflow 2s forwards;
}
.jg-card:not(:hover) .jg-card-info {
  animation: jg-remove-data 1s forwards;
}

/* Keyframes (show-data, remove-data, etc.) */
@keyframes jg-show-data {
  50% {
    transform: translateY(-11rem);
  }
  100% {
    transform: translateY(-8.5rem);
  }
}

@keyframes jg-remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes jg-remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(0.5rem);
  }
}

@keyframes jg-show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* Pour petits écrans */
@media screen and (max-width: 340px) {
  .jg-gallery {
    margin-inline: 1rem;
  }
  .jg-card-info {
    width: 90%;
    padding: 1rem;
  }
}

/* Pour tablettes */
@media screen and (min-width: 768px) {
  .jg-gallery-grid {
    grid-template-columns: repeat(2, 1fr);

  }
}

/* Pour PC (large devices) */
@media screen and (min-width: 1024px) {
  .jg-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*==================== JUG-MESSAGE ====================*/
.JUG-message {
  padding: 5rem 2rem; /*Ajustement sur les côter JUG*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.JUG-message__container {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.8);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #d19a75;
  position: relative;
}

.JUG-message__title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.JUG-message__quote {
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.JUG-message__signature {
  font-weight: bold;
  font-size: 1.1rem;
  color: #d19a75;
  display: block;
  margin-bottom: 2rem;
}

.JUG-message__cta p {
  font-size: 1rem;
  padding: 20px 0;
  color: #444;
  margin-bottom: 1rem;
}

.JUG-message__button {
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #d19a75;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.JUG-message__button:hover {
  background-color: #fff;
  color: #d19a75;
  border: 1px solid #d19a75;
}

/*===== ESPACEMENT AVANT LA SECTION FAQ ===== */
.FAQJG-container {
  width: 90%;
  max-width: 800px;
  margin: 6rem auto; /* Grand espace au-dessus */
  padding: 2rem;
  background: var(--faq-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* ===== ARRIÈRE-PLAN QUADRILLÉ ===== */
.FAQJG-container::before {
  content: "";
  position: absolute;
  pointer-events: none; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgb(0, 0, 0) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(0, 0, 0) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: -1;
}

/* ===== ACCORDÉON ===== */
.FAQJG-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.FAQJG-accordion-item {
  border-bottom: 1px solid var(--faq-lightgray);
}

/* ===== BOUTON DES QUESTIONS ===== */
.FAQJG-accordion-item button {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  text-align: left;
  font-weight: 500;
  background: none;
  border: none;
  outline: none;
  color: var(--faq-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.FAQJG-accordion-item button:hover {
  color: var(--faq-primary);
}

/* ===== ICÔNE + / - POUR L'OUVERTURE ===== */
.FAQJG-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  border: 1px solid var(--faq-primary);
  border-radius: 100%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0; /* Empêche l’icône de rétrécir sur mobile */
}

/* Barre horizontale du "+" et "-" */
.FAQJG-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--faq-primary);
  transform: translate(-50%, -50%);
}

/* Barre verticale du "+" (disparaît quand ouvert) */
.FAQJG-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--faq-primary);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

/* Lorsqu'on ouvre, l'icône "-" s'affiche correctement */
.FAQJG-accordion-item[aria-expanded="true"] .FAQJG-icon::after {
  opacity: 0;
}

/* ===== CONTENU DES RÉPONSES ===== */
.FAQJG-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  background: var(--faq-secondary);
  padding: 0 15px;
  color: var(--faq-gray);
  opacity: 0;
}

.FAQJG-accordion-item[aria-expanded="true"] .FAQJG-accordion-content {
  max-height: 1000px; /* Ajustement dynamique pour s'adapter au contenu */
  opacity: 1;
  padding: 15px;
}

/* ===== MEILLEUR RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
  .FAQJG-container {
    width: 90%;
    padding: 2rem;
    margin-top: 6rem;
  }

  .FAQJG-accordion-item button {
    font-size: 1.1rem;
    padding: 12px;
  }

  .FAQJG-accordion-content {
    font-size: 1rem;
    padding: 12px;
  }
}

@media screen and (max-width: 768px) {
  .FAQJG-container {
    width: 100%;
    padding: 1.5rem;
    margin-top: 7rem; /* Ajoute un bon espace avec la section du dessus */
  }

  .FAQJG-accordion-item button {
    font-size: 1rem;
    padding: 14px; /* Augmente légèrement le padding pour la lisibilité */
  }

  .FAQJG-accordion-content {
    font-size: 0.95rem;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .FAQJG-container {
    width: 100%;
    padding: 1.2rem;
    margin-top: 8rem; /* Ajoute plus d’espace pour éviter que ce soit trop collé */
  }

  .FAQJG-accordion-item button {
    font-size: 0.95rem;
    padding: 12px;
  }

  .FAQJG-accordion-content {
    font-size: 0.9rem;
    padding: 10px;
  }

  /* Assure que les icônes restent fixes sur mobile */
  .FAQJG-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .FAQJG-icon::before {
    width: 10px;
  }

  .FAQJG-icon::after {
    height: 10px;
  }

}/* ====== CONTAINER PRINCIPAL ====== */
.NEWJG-container {
  width: 90%;
  max-width: 1100px;
  margin: 9rem auto; /* Espacement ajusté pour éviter l’effet collé */
  padding: 3.5rem 2.5rem;
  background: var(--body-color);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}



/* ====== TITRE PRINCIPAL ====== */
.NEWJG-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.8rem;
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== DATE DE MISE À JOUR ====== */
.NEWJG-date {
  text-align: center;
  font-size: 1rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ====== ARTICLES - SECTIONS DE TEXTE ====== */
.NEWJG-article {
  margin-bottom: 2.2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--first-color);
  background: rgba(0, 0, 0, 0.02); /* Léger fond pour structurer */
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Effet au survol */
.NEWJG-article:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.05);
}

/* TITRES DES SECTIONS */
.NEWJG-article h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: var(--title-color);
}

/* CONTENU TEXTE */
.NEWJG-article p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  text-align: justify;
}

/* ====== RESPONSIVE ====== */
@media screen and (max-width: 1024px) {
  .NEWJG-container {
      width: 95%;
      margin: 8rem auto;
      padding: 3rem 2rem;
  }
  
  .NEWJG-title {
      font-size: 2.2rem;
  }
  
  .NEWJG-content {
      font-size: 1rem;
  }

  .NEWJG-article {
      padding: 1.3rem;
  }

  .NEWJG-article h2 {
      font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
  .NEWJG-container {
      width: 92%;
      margin: 7rem auto;
      padding: 2.5rem 1.8rem;
  }

  .NEWJG-title {
      font-size: 1.8rem;
  }

  .NEWJG-article {
      padding: 1.2rem;
  }

  .NEWJG-article h2 {
      font-size: 1.3rem;
  }

  .NEWJG-article p {
      font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .NEWJG-container {
      width: 95%;
      margin: 7rem auto;
      padding: 2rem 1.5rem;
  }

  .NEWJG-title {
      font-size: 1.6rem;
  }

  .NEWJG-date {
      font-size: 0.9rem;
  }

  .NEWJG-article {
      padding: 1rem;
  }

  .NEWJG-article h2 {
      font-size: 1.2rem;
  }

  .NEWJG-article p {
      font-size: 0.95rem;
  }
}
