/* ============================================================
   css-ppp.css – pieces-pour-pompes.com
   Inspiré de l'architecture css-v1.css de Techni-Flow
   Palette : bleu industriel #1a5c8a, accent orange #e05c1a
   ============================================================ */

/* ── Responsive breakpoints ─────────────────────────────── */

@media screen and (min-width: 800px) {
  h1 { font-size: 3em; }
  .espace-1  { width: 48%; margin-left: auto; margin-right: auto; }
  .espace-2  { width: 75%; margin-left: auto; margin-right: auto; }
  .contenue  { width: 80%; }
  .enveloppe { width: 85%; }
  /* photo bandeau : balise <img id="top-img"> dans le HTML */
  .logo { background-image: url("logo-pieces-pour-pompes.png"); background-size: contain; background-repeat: no-repeat; width: 220px; height: 60px; }
  .menu-haut-hm { display: none; }
}

@media screen and (min-width: 641px) and (max-width: 799px) {
  h1 { font-size: 2em; }
  .espace-1  { width: 100%; }
  .espace-2  { width: 100%; }
  .contenue  { width: 100%; }
  .enveloppe { width: 100%; }
  /* photo bandeau : balise <img id="top-img"> dans le HTML */
  .droite { padding: 5px; font-size: 0.9em; width: 100%; }
  .logo { background-image: url("logo-pieces-pour-pompes.png"); background-size: contain; background-repeat: no-repeat; width: 150px; height: 40px; }
  .menu-gauche { display: none; }
}

@media screen and (min-width: 200px) and (max-width: 640px) {
  h1 { font-size: 1.9em; }
  .menu-gauche { display: none; }
  .espace-1  { width: 100%; }
  .espace-2  { width: 100%; }
  .contenue  { width: 100%; }
  .enveloppe { width: 100%; }
  /* photo bandeau : balise <img id="top-img"> dans le HTML */
  .droite { padding: 5px; font-size: 0.9em; width: 100%; }
  .logo { background-image: url("logo-pieces-pour-pompes.png"); background-size: contain; background-repeat: no-repeat; width: 150px; height: 40px; }
}

/* ── Base ────────────────────────────────────────────────── */

body {
  background-color: #f5f5f4;
}

/* ── Bannière photo haut ─────────────────────────────────── */

/* #top supprimé – photo gérée par <img id="top-img"> dans le HTML */

#photo-top {
  width: 100%;
  background-color: #f5f5f4;
  margin-left: auto;
  margin-right: auto;
}

/* ── Bouton retour en haut ────────────────────────────────── */

#btn-top {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 22px;
  width: 44px;
  height: 44px;
  background-color: #1a5c8a;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background-color 0.3s;
}
#btn-top::before {
  content: '';
  display: block;
  margin: 14px auto 0;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
}
#btn-top:hover { background-color: #2a82be; }

/* ── Header ──────────────────────────────────────────────── */

.header {
  display: flex;
  flex-wrap: wrap;
  padding-left: 30px;
  padding-bottom: 20px;
  background-color: white;
  width: 100%;
}

.logo {
  margin: auto;
  background-repeat: no-repeat;
  background-position: center;
}

.centrale {
  padding-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  width: 50%;
}

.droite {
  padding-left: 20px;
  margin: auto;
  background-color: white;
}

/* ── Contact (tél / mail) ────────────────────────────────── */

.contact-tel, .contact-mail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: Tahoma, sans-serif;
  font-size: 1em;
  text-decoration: none;
  margin-bottom: 6px;
}
.contact-tel  { color: #1a5c8a; font-weight: bold; }
.contact-mail { color: #555; font-size: 0.9em; }
.contact-tel:hover  { color: #e05c1a; }
.contact-mail:hover { color: #1a5c8a; }
.contact-ico  { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }

/* ── Typographie ─────────────────────────────────────────── */

h1 {
  color: #1a5c8a;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0,0,0,0.14);
  text-align: center;
}

h2 { font-size: 1.45em; color: #2a2a2a; }
p  { color: #555; text-indent: 40px; }

/* ── Menu haut ───────────────────────────────────────────── */

.menu-haut {
  width: 95%;
  padding: 18px;
  background-color: #1a5c8a;
  text-align: center;
}

.menu-haut a {
  font-weight: normal;
  font-family: Tahoma, sans-serif;
  color: #cce0f0;
  font-size: 18px;
  text-decoration: none;
  transition-duration: 0.4s;
}
.menu-haut a:hover {
  color: #fff;
  font-size: 22px;
  letter-spacing: 1px;
  transition-duration: 1.2s;
}

/* ── Menu hamburger mobile ──────────────────────────────── */

.menu-haut-hm {
  width: 95%;
  padding: 20px;
  background-color: #333;
  text-align: center;
}

.ham {
  color: #e05c1a;
  position: fixed;
  top: auto;
  right: 5px;
  cursor: pointer;
}

.nav-hm {
  position: fixed;
  background-color: #1a1a1a;
  z-index: 99999;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.22);
}

.bar1, .bar2 {
  width: 23px; height: 3px;
  background-color: #e05c1a;
  margin: 4px 6px 0 auto;
  transition: 0.4s;
  border-radius: 0.4vmin;
}
.bar3 {
  width: 11.5px; height: 3px;
  background-color: #e05c1a;
  margin: 4px 6px 0 auto;
  transition: 0.4s;
  border-radius: 0.4vmin;
}

.menu {
  display: none;
  list-style-type: none;
  text-decoration: none;
  width: 100%;
  height: 320px;
  top: 40px;
  left: 0;
  line-height: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.show {
  display: block;
  position: fixed;
  padding: 6vmin;
  background-color: #1a1a1a;
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  width: 100%; max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  left: 0; right: 0;
  z-index: 99998;
}

.menu a {
  font-family: Tahoma, sans-serif;
  color: #b0c8dc;
  font-size: 15px;
  text-decoration: none;
  transition-duration: 0.4s;
  word-break: break-word;
  white-space: normal;
}
.menu a:hover { color: #e05c1a; letter-spacing: 4px; }
.menu span { color: #888; font-size: 11px; font-weight: bold; letter-spacing: 9px; }
.menu hr  { background-color: #e05c1a; color: #e05c1a; width: 100%; height: 1px; border: none; }

/* ── Menu gauche ─────────────────────────────────────────── */

.menu-gauche {
  padding: 12px;
  margin-right: 5px;
  background-color: #f5f5f4;
  width: 15%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.14);
  border-radius: 10px;
}

.menu-gauche a {
  font-family: Tahoma, sans-serif;
  color: #555;
  font-size: 16px;
  text-decoration: none;
  transition-duration: 0.4s;
  font-weight: normal;
}
.menu-gauche a:hover {
  color: #1a5c8a;
  font-size: 17px;
  letter-spacing: 1px;
  transition-duration: 1.2s;
  text-decoration: none;
}

/* ── Layout principal ─────────────────────────────────────── */

.titre {
  padding: 20px;
  margin: 30px auto;
  width: 100%;
  background-color: #f5f5f4;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 2px 5px rgba(0,0,0,0.10);
  border-radius: 10px;
}

.enveloppe {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  background-color: #f5f5f4;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 2px 5px rgba(0,0,0,0.10);
}

.contenue {
  display: flex;
  flex-wrap: wrap;
  background-color: #f5f5f4;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 2px 5px rgba(0,0,0,0.10);
}

.espace-1 {
  margin-bottom: 15px;
  background-color: #f5f5f4;
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  border-radius: 10px;
}

.espace-2 {
  margin-bottom: 15px;
  background-color: #f5f5f4;
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  border-radius: 10px;
}

.texte-photos-1 {
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f5f5f4;
}

/* ── Images produits ─────────────────────────────────────── */

.image-produits {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 140px;
  height: auto;
}
@media screen and (min-width: 641px) and (max-width: 799px) {
  .image-produits { width: 180px; }
}
@media screen and (min-width: 800px) {
  .image-produits { width: 165px; }
}

/* ── Bouton "Voir les pièces" ─────────────────────────────── */

.BtnPlus {
  border-radius: 8px;
  font-size: 1em;
  text-align: center;
  background-color: #1a5c8a;
  width: 200px;
  height: 38px;
  margin: auto 15px 15px auto;
  transition-duration: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.BtnPlus:hover { background-color: #e05c1a; }

.BtnPlus a {
  font-family: Tahoma, sans-serif;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition-duration: 0.4s;
  padding: 0 10px;
  line-height: 38px;
}
.BtnPlus a:hover { color: #fff; letter-spacing: 1px; }

/* ── Badges avantages ─────────────────────────────────────── */

.avantages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}
.avantage-item {
  background: #fff;
  border-left: 4px solid #e05c1a;
  border-radius: 8px;
  padding: 14px 18px;
  flex: 1 1 200px;
  max-width: 260px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.09);
}
.avantage-item strong {
  display: block;
  color: #1a5c8a;
  font-size: 1em;
  margin-bottom: 4px;
}
.avantage-item span { color: #555; font-size: 0.88em; }

/* ── Tableau gamme matériaux membranes ─────────────────────── */

.table-container { width: 100%; overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
th, td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
th { background-color: #1a5c8a; color: white; }
tr:nth-child(even) { background-color: #eef3f8; }

@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: 12px; border: 1px solid #ccc; padding: 8px; background: #fff; }
  td { position: relative; padding-left: 50%; text-align: right; }
  td::before { position: absolute; left: 12px; top: 10px; white-space: nowrap; font-weight: bold; content: attr(data-label); text-align: left; }
}

/* ── FAQ ──────────────────────────────────────────────────── */

.faq-section {
  max-width: 900px;
  margin: 48px auto 56px;
  padding: 0 16px;
}
.faq-titre {
  font-size: 1.35em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
  text-align: center;
}
.faq-sous-titre {
  font-size: 0.93em;
  color: #666;
  text-align: center;
  margin: 0 0 32px;
}
.faq-liste { border-top: 1px solid #ddd; }
.faq-item  { border-bottom: 1px solid #ddd; }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-btn span:first-child {
  font-size: 1em;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.faq-icone {
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: #1a5c8a;
  flex-shrink: 0;
  position: relative;
}
.faq-icone::before, .faq-icone::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.faq-icone::before { width: 10px; height: 2px; top: 10px; left: 6px; }
.faq-icone::after  { width: 2px; height: 10px; top: 6px; left: 10px; transition: transform 0.3s; }

.faq-btn[aria-expanded="true"] .faq-icone::after { transform: rotate(90deg); }

.faq-reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-reponse-inner {
  padding: 0 4px 20px;
  font-size: 0.95em;
  color: #444;
  line-height: 1.65;
}
.faq-tag {
  display: inline-block;
  background: #1a5c8a;
  color: #fff;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 0.78em;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.faq-tag--orange { background: #e05c1a; }
.faq-tag--vert   { background: #2a8a4a; }

/* ── Mention légale marques ───────────────────────────────── */

.mention-marques {
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 20px 24px;
  box-sizing: border-box;
  margin-top: 20px;
}
.mention-marques p {
  font-size: 0.75em;
  color: #888;
  text-indent: 0;
  line-height: 1.6;
  margin: 0;
}

/* ── Liens généraux ──────────────────────────────────────── */

a { color: #1a5c8a; }
a:hover { color: #e05c1a; }

ul { width: 100%; height: 100%; padding: 0; list-style-type: none; margin: 0; }
nav li { list-style-type: none; }
li { padding: 3vmin; color: #393644; cursor: grab; font-size: 2vmin; }
