/* #region =/=/= Style général =/=/= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #254D25;
  color: #e8e6e6;
  transition: background 0.5s;
  display: flex;
  flex-direction: column; /* header + main + footer en colonne */
  min-height: 100vh;
}

html, body {
  height: 100%;   /* pour que le body prenne toute la hauteur de la fenêtre */
  margin: 0;
}

main {
  padding: 40px 20px 40px;
  max-width: 1200px;
  margin: auto;
   flex: 1;
}
/* #endregion */


/* #region =/=/= Page index =/=/= */
.produit {
  text-align: center;
}
/* === Section Services === */
.services {
  padding: 60px 20px;
  text-align: center;
}

.services h2, .produits h2 {
  display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: black;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card img {
  width: 60px;
  margin-bottom: 15px;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* Section Produits */
.produits {
  padding: 60px 20px;
  text-align: center;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.produit-card {
  max-width: 280px;
  margin: auto;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.produit-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform 0.3s;
}

.produit-card:hover img {
  transform: scale(1.05);
}

.produit-nom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.26);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

/* Section Avis */
.avis {
  position: relative;
  margin: 60px auto;
  padding: 20px;
  max-width: 800px;

  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.avis h2 {
  font-size: 26px;
  color: #eae8e8;
  margin-bottom: 20px;
  display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.avis-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.avis-bulle {
  flex: 1;
  max-width: 400px;
  background-color: white;
  color: black;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  transition: transform 1s ease, box-shadow 0.3s ease;
}

.avis-bulle p:first-child {
  font-weight: 600;
  margin-bottom: 8px;
}

.avis-bulle small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: black;
}

/* Flèches */
.avis-nav {
  font-size: 28px;
  background: #1b1b1b;
  border-radius: 20px;
  border: none;
  color: #fdfbfb;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.avis-nav:hover {
  color: #ffcc00;
  transform: scale(1.2);
}

/* Bouton + */
#ajouter-avis {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #ffcc00;
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 10;
}

#ajouter-avis:hover {
  transform: scale(1.1);
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.popup-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.popup-content input:focus,
.popup-content textarea:focus {
  border-color: #ffcc00;
}

.popup-content button {
  width: 100%;
  padding: 12px;
  background-color: #ffcc00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-content button:hover {
  background-color: #e6b800;
}

#fermer {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* === Section FAQ === */
.faq {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq h2 {
    font-size: 26px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.faq-container {
  text-align: left;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 6px #3a693a;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #f9f9f9;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #eee;
}

.faq-answer {
  display: none;
  padding: 15px;
  background: #244b24;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.faq-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ffcc00;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-btn:hover {
  background: #e6b800;
}




/* #endregion */

/* #region =/=/= Page Lampe 1 =/=/= */
.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-btn {
  width: 18px;
  height: 18px;
  margin: 5px;
  border: 4px solid #000;
  border-radius: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.2);
}

.color-name {
  font-size: 0.9rem;
  min-width: 60px;
}

.section-image-colors {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 40px;
}

.lamp-frame {
  width: 280px;
  height: 380px;
  border-radius: 100px 100px 50px 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lamp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.color-btn {
  width: 28px;
  height: 28px;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s;
}

.colors-horizontal {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  flex-direction: column;
}

.colors-horizontal .color-option {
  display: inline-flex;
  align-items: center;
}

.color-btn:hover {
  transform: scale(1.2);
  border: 2px solid #fff;
}

.section-image-colors .text-container {
  flex: 1;
  text-align: left;
  max-width: 400px;
}

.section-image-colors .text-container h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: bold;
}

.section-image-colors .text-container p {
  font-size: 1rem;
  line-height: 1.6;
}

/* === Sections === */
.section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.section.appear.visible {
  opacity: 1;
  transform: translateY(0);
}

.separation-section {
  background: #cccccc93;
  height: 1px;
  border-radius: 5px;
  box-shadow: 0 0px 5px #ccc;
  width: auto;
}

.section-texte {
  flex-direction: column;
  text-align: center;
  margin-top: auto;
}

.section-image-colors {
  flex-direction: row;
}

.section-image-colors .image-container {
  flex: 0;
  display: flex;
  gap: 20px;
  flex-direction: row;
  align-items: stretch;
}

.section-image-text:nth-of-type(odd) {
  flex-direction: row;
}

.section-image-text:nth-of-type(even) {
  flex-direction: row-reverse;
}

.section-image-text .image-container,
.section-image-text .text-container {
  flex: 1;
}

.section img {
  max-width: 100%;
  border-radius: 15px;
}

.section .text-container h2 {
  margin-bottom: 10px;
}

.section-image-text.image-left {
  flex-direction: row;
}

.lamp-container {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-around;
}

/* === Swipe button === */
.swipe-button {
  position: relative;
  width: 300px;
  height: 60px;
  background: #4a4a4a;
  border: 3px solid #1b1b1b;
  border-radius: 30px;
  overflow: hidden;
  user-select: none;
}

.swipe-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, rgb(118, 118, 118), rgb(209, 208, 208));
  border-radius: 30px;
  z-index: 0;
  transition: width 0.005s;
}

.swipe-text {
  position: absolute;
  width: 100%;
  padding-left: 70px;
  line-height: 60px;
  color: white;
  z-index: 1;
  pointer-events: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

.swipe-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: #fff;
  color: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.swipe-handle:active {
  cursor: grabbing;
  background: #ccc;
}

.swipe-handle::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
  animation: swipeArrow 1.5s infinite;
}

@keyframes swipeArrow {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(0) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(100px) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(110px) rotate(45deg);
  }
}

@media (max-width: 500px) {
  .section-image-colors {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section.appear.visible {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .section-image-colors .text-container {
    max-width: 100%;
    text-align: center;

  }

  .colors-row {
    gap: 10px;
    flex-wrap: wrap;
  }

  .section-image-colors .image-container {
    flex: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .section {
    flex-direction: column !important;
  }

  .lamp-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .colors-container {
    flex-direction: row;
    gap: 10px;
  }

    .colors-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }
}
/* #endregion */

/* #region =/=/= Page Header =/=/= */

/* #endregion */

/* #region =/=/= Footer =/=/=  */
.footer-site {
  background: #222;
  color: #f4f4f4;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-top {
  border-top: 3px solid #f4f4f4;
  width: 80%;
  margin: 0 auto 30px;
}

.footer-down {
  border-top: 3px solid #f4f4f4;
  width: 80%;
  margin: 30px auto 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-left {
  flex: 1;
  text-align: left;
  color: #ccc;
  font-size: 14px;
}

.footer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffcc00;
}

.footer-link .icon-circle {
  width: 40px;
  height: 40px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-link:hover .icon-circle {
  background: #ffcc00;
  color: #222;
}

.footer-link .icon-circle svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

@media (max-width: 500px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* #endregion */








