/* --- Responsive Design Magnifique --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
  min-height: 60vh;
  margin: 2em 0;
}
.hero-texte {
  max-width: 500px;
  text-align: left;
  flex: 1 1 320px;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 2px 16px #0001;
  padding: 2em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}
.hero-flex img {
  max-width: 520px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0002;
  flex: 1 1 320px;
  min-height: 340px;
  object-fit: contain;
  background: #fff;
}
.boutique-presentation, .fiche-header, .fiche-garanties, .product-grid {
  flex-wrap: wrap;
  gap: 2em;
}

main, section, .fiche-produit-ultra {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .navbar-logo {
    margin-left: 0;
    text-align: center;
  }
  .navbar ul {
    flex-direction: column;
    gap: 0.5em;
  }
  .hero-flex {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .hero-texte {
    max-width: 100%;
    text-align: center;
    padding: 1.2em 1em;
    min-height: unset;
  }
  .hero-flex img {
    max-width: 100%;
    min-height: unset;
    margin: 0 auto;
  }
  .boutique-presentation {
    flex-direction: column;
    align-items: stretch;
  }
  .boutique-texte {
    max-width: 100%;
    text-align: center;
    padding: 0 1em;
  }
  .fiche-header-info {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  h1, h2, h3 {
    font-size: 1.2em !important;
  }
  .navbar {
    flex-direction: column;
    padding: 0.5em 0.2em;
    border-radius: 0 0 20px 20px;
    align-items: stretch;
  }
  .navbar-logo img {
    height: 60px;
    margin: 0 auto;
  }
  .footer {
    border-radius: 20px 20px 0 0;
    font-size: 0.95em;
  }
  .fiche-produit-ultra {
    padding: 0.5em 0.1em;
    border-radius: 1em;
  }
  .fiche-header {
    gap: 1em;
  }
  .fiche-img {
    width: 100%;
    border-radius: 1em;
  }
  .fiche-header-info {
    gap: 0.7em;
  }
  .fiche-btn-panier {
    width: 100%;
    padding: 0.7em 0;
    font-size: 1em;
  }
  .product-card {
    width: 100%;
    min-width: 0;
    padding: 0.5em 0.2em;
  }
}

@media (max-width: 400px) {
  html {
    font-size: 13px;
  }
  .navbar-logo img {
    height: 40px;
  }
  .footer {
    font-size: 0.9em;
  }
}


/* Table Responsive */
table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
th, td {
  padding: 0.7em 0.5em;
  text-align: left;
}

/* Formulaires et boutons */
input, select, textarea, button {
  font-size: 1em;
  max-width: 100%;
  box-sizing: border-box;
}
button, .cta, .fiche-btn-panier, .product-btn {
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

/* Scrollbar discrète */
::-webkit-scrollbar {
  width: 8px;
  background: #f2e3c3;
}
::-webkit-scrollbar-thumb {
  background: #ffd70099;
  border-radius: 8px;
}
.boutique-presentation {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 2em;
  margin: 2em 0;
}
.boutique-presentation img {
  max-width: 350px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 16px #0002;
  align-self: stretch;
}
.boutique-texte {
  max-width: 500px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}
/* Navbar styles */
/* Harmonisation premium navbar/footer */
.navbar {
  background: linear-gradient(90deg, #fffaf0 60%, #f2e3c3 100%);
  box-shadow: 0 2px 16px #ffd27d44;
  padding: 0.5em 0;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  z-index: 1000;
}
.navbar-logo {
  margin-left: 25em;
}
.navbar-logo img {
  vertical-align: middle;
  height: 100px;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}
.navbar li {
  margin: 0 1.5em;
}
.navbar a {
  color: #c8902e;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.2s;
}
.navbar a:hover {
  color: #ffd27d;
}
main {
  padding: 2em;
  text-align: center;
  padding-bottom: 2em;
  flex: 1;
}
h1 {
  color: #333;
}
.cta {
  display: inline-block;
  margin-top: 1em;
  padding: 0.7em 2em;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2em;
  transition: background 0.2s;
}
.cta:hover {
  background: #0056b3;
}
.footer {
  background: linear-gradient(90deg, #fffaf0 60%, #f2e3c3 100%);
  color: #c8902e;
  text-align: center;
  padding: 1em 0;
  width: 100%;
  font-size: 1em;
  margin-top: 50px;
  box-shadow: 0 -2px 16px #ffd27d44;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
.fiche-produit-ultra {
  max-width: 1100px;
  margin: 3em auto;
  background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
  border-radius: 2em;
  box-shadow:
    0 8px 40px #0002,
    0 1.5px 0 #fff8;
  padding: 2.5em 2em 2em 2em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fiche-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.fiche-badge {
  position: absolute;
  top: -1.2em;
  left: 0;
  background: linear-gradient(90deg, #ffd700, #fffbe6 80%, #ffe9c6);
  color: #b8860b;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.4em 1.2em;
  border-radius: 2em;
  box-shadow: 0 2px 8px #ffd70044;
  letter-spacing: 1px;
  z-index: 2;
}
.fiche-img {
  width: 340px;
  max-width: 100%;
  border-radius: 1.5em;
  box-shadow:
    0 8px 32px #0002,
    0 1.5px 0 #fff8;
  background: #fff;
}
.fiche-header-info {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  min-width: 320px;
}
.fiche-header-info h1 {
  font-size: 2.2em;
  font-weight: 800;
  margin: 0 0 0.2em 0;
  color: #1a237e;
  letter-spacing: 0.5px;
}
.fiche-highlight {
  color: #ffd700;
  font-weight: 900;
  letter-spacing: 1px;
}
.fiche-prix {
  display: flex;
  align-items: baseline;
  gap: 1.2em;
}
.prix-barre {
  font-size: 1.1em;
  color: #888;
  text-decoration: line-through;
}
.prix-promo {
  font-size: 2em;
  font-weight: 900;
  color: #d2691e;
  background: linear-gradient(90deg, #ffe9c6, #fffbe6 80%, #ffd700);
  padding: 0.2em 0.8em;
  border-radius: 1em;
  box-shadow: 0 1px 8px #ffd70033;
}
.fiche-economie {
  color: #388e3c;
  font-weight: 600;
  font-size: 1em;
  margin-left: 0.5em;
}
.fiche-stock {
  font-size: 1.1em;
  color: #388e3c;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.fiche-dot {
  width: 0.9em;
  height: 0.9em;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #4caf50aa;
}
.fiche-actions {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin: 1em 0 0.5em 0;
}
.fiche-qty {
  display: flex;
  align-items: center;
  gap: 0.2em;
}
.fiche-qty button {
  background: #e0e7ff;
  border: none;
  font-size: 1.2em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  cursor: pointer;
  color: #1a237e;
  font-weight: bold;
  transition: background 0.2s;
}
.fiche-qty button:hover {
  background: #ffd700;
  color: #fff;
}
.fiche-qty input {
  width: 2.5em;
  text-align: center;
  font-size: 1.1em;
  border: 1px solid #eee;
  border-radius: 0.5em;
  padding: 0.2em;
}
.fiche-btn-panier {
  background: linear-gradient(90deg, #ffd700, #fffbe6 80%, #ffe9c6);
  color: #1a237e;
  font-weight: 700;
  font-size: 1.2em;
  padding: 0.7em 2.5em;
  border: none;
  border-radius: 2em;
  box-shadow: 0 2px 16px #ffd70044;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}
.fiche-btn-panier:hover {
  background: linear-gradient(90deg, #ffe9c6, #ffd700 80%, #fffbe6);
  color: #d2691e;
  transform: scale(1.04);
  box-shadow: 0 4px 32px #ffd70066;
}
.fiche-paiement {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.7em;
  font-size: 1em;
  color: #555;
}
.fiche-paiement img {
  height: 1.5em;
  background: #fff;
  border-radius: 0.3em;
  box-shadow: 0 1px 4px #0001;
  padding: 0.1em 0.3em;
}
.fiche-inclus,
.fiche-non-inclus,
.fiche-why,
.fiche-desc {
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 1px 8px #ffd70022;
  padding: 1.5em 2em;
  margin-bottom: 1.5em;
}
.fiche-inclus h2,
.fiche-why h2,
.fiche-desc h2 {
  color: #b8860b;
  font-size: 1.3em;
  margin-bottom: 0.7em;
}
.fiche-inclus ul,
.fiche-non-inclus ul,
.fiche-why ul {
  margin: 0;
  padding-left: 1.2em;
  color: #333;
  font-size: 1.1em;
  line-height: 1.7;
}
.fiche-non-inclus {
  background: #fffbe6;
  border: 1.5px dashed #ffd700;
}
.fiche-non-inclus h3 {
  color: #d2691e;
  margin-bottom: 0.5em;
}
.fiche-garanties {
  margin-top: 2em;
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.1em;
  color: #388e3c;
  font-weight: 600;
}
.fiche-inclus ul,
.fiche-non-inclus ul,
.fiche-why ul {
  list-style: none;
  padding-left: 0;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin: 2em 0;
}

.product-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 20px;
  box-shadow: 0 2px 8px #0001;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6em 0.5em;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  user-select: none;
}

.product-card:hover {
  box-shadow: 0 8px 24px #ffd70055, 0 2px 8px #0002;
  border-color: #ffd70099;
  transform: translateY(-4px) scale(1.04);
}

.product-card img {
  max-width: 70px;
  max-height: 40px;
  margin-bottom: 0.3em;
  object-fit: contain;
}

.product-card .product-title {
  font-size: 0.95em;
  font-weight: 500;
  margin-bottom: 0.3em;
  text-align: center;
}

.product-card .product-btn {
  background: linear-gradient(90deg, #ffe9c6, #fffbe6 80%, #ffd700);
  color: #333;
  border: none;
  border-radius: 18px;
  padding: 0.3em 1em;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.3em;
  box-shadow: 0 1px 4px #ffd70044;
  transition: background 0.2s;
  outline: none;
}

.product-card .product-btn:hover {
  background: linear-gradient(90deg, #ffd700, #fffbe6 80%, #ffe9c6);
}


@media (max-width: 1100px) {
  .fiche-produit-ultra {
    padding: 1em 0.2em;
  }
  .fiche-header {
    flex-direction: column;
    align-items: stretch;
  }
  .fiche-img {
    width: 100%;
  }
}
/* =========================
   Responsive (Tablette + Mobile)
   À coller tout en bas du CSS
========================= */

/* 1) Fix navbar logo (le margin-left: 25em casse tout sur petit écran) */
.navbar-logo { margin-left: 0 !important; }

/* 2) TABLETTE (<= 1024px) */
@media (max-width: 1024px) {

  main { padding: 1.2em; }

  /* Navbar */
  .navbar {
    flex-direction: column;
    gap: 0.8em;
    padding: 0.8em 1em;
    align-items: center;
  }
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em 1.2em;
  }
  .navbar li { margin: 0; }

  /* HERO */
  .hero-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
    margin: 1.2em 0;
  }
  .hero-texte {
    max-width: 100%;
    min-height: unset;
    text-align: center;
    padding: 1.4em 1.2em;
  }
  .hero-flex img {
    max-width: 100%;
    min-height: unset;
    object-fit: cover;
  }

  /* Boutique */
  .boutique-presentation {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
  }
  .boutique-presentation img {
    max-width: 100%;
    height: auto;
  }
  .boutique-texte {
    max-width: 100%;
    text-align: center;
  }

  /* Fiche produit */
  .fiche-produit-ultra {
    margin: 1.5em auto;
    padding: 1.2em 1em;
    border-radius: 1.5em;
  }
  .fiche-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
  }
  .fiche-img {
    width: 100%;
    border-radius: 1.2em;
  }
  .fiche-header-info {
    min-width: 0; /* IMPORTANT anti débordement */
  }
  .fiche-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
  }

  /* Grid produits : plus “responsive” */
  .product-grid { gap: 1em; }
  .product-card { width: 170px; }
}

/* 3) TELEPHONE (<= 600px) */
@media (max-width: 600px) {

  html { font-size: 15px; }
  main { padding: 0.9em; }

  /* Navbar */
  .navbar {
    padding: 0.7em 0.6em;
    border-radius: 0 0 20px 20px;
  }
  .navbar-logo img {
    height: 60px;
    margin: 0 auto;
  }
  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
  }
  .navbar a { font-size: 1.05em; }

  /* Headings */
  h1, h2, h3 { font-size: 1.2em !important; }

  /* Sections fiche */
  .fiche-inclus,
  .fiche-non-inclus,
  .fiche-why,
  .fiche-desc {
    padding: 1em 1em;
    border-radius: 1em;
  }

  /* Prix + badge plus compacts */
  .fiche-header-info h1 { font-size: 1.6em; }
  .prix-promo { font-size: 1.6em; }

  /* Bouton panier full width */
  .fiche-btn-panier {
    width: 100%;
    padding: 0.8em 0;
    font-size: 1.05em;
  }

  /* Grid produits : 2 colonnes fluides */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8em;
  }
  .product-card {
    width: 100%;
    min-width: 0;
    padding: 0.8em 0.6em;
  }
  .product-card img {
    max-width: 80px;
    max-height: 50px;
  }

  /* Tables */
  table { display: block; overflow-x: auto; }
}

/* 4) Très petits téléphones (<= 400px) */
@media (max-width: 400px) {
  html { font-size: 13px; }
  .navbar-logo img { height: 45px; }
  .product-grid { grid-template-columns: 1fr; } /* 1 colonne si écran minuscule */
  .footer { font-size: 0.9em; }
}
