/* ==========================================================================
   TECHNOPURE MAROC — Design System « Enterprise v2 » (multi-pages)
   Standard visuel des grands groupes industriels :
   - Typographie  : Inter variable (400–800) · échelle fluide clamp()
   - Primaire     : #1878c0 (bleu Technopure) · Profond : #072a4a (marine)
   - Neutres      : gris froids disciplinés · hairlines · beaucoup d'air
   - Géométrie    : rayons sobres (0.55rem boutons · 0.8rem cartes)
   - Ombres       : multi-couches très douces, jamais saturées
   - Mouvement    : micro-interactions 180–250ms · courbes calmes
   - Accessibilité: focus visibles, reduced-motion, gating .js des révélations
   ========================================================================== */

/* 1. Fonte locale — Inter variable --------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Marque */
  --tp-blue: #1878c0;
  --tp-blue-dark: #0d5e9b;
  --tp-deep: #072a4a;
  --tp-navy: #0a3a66;
  --tp-sky: #4fa3dd;
  --tp-ice: #eff5fb;
  --tp-ice-2: #f6f9fc;
  /* Neutres */
  --tp-border: #e4ebf2;
  --tp-border-strong: #ccd8e3;
  --tp-text: #0f2238;
  --tp-muted: #5a6c82;
  --tp-white: #ffffff;
  /* Géométrie */
  --tp-radius-sm: 0.55rem;
  --tp-radius: 0.8rem;
  --tp-radius-lg: 1.1rem;
  /* Élévation */
  --tp-shadow-sm: 0 1px 2px rgba(7, 42, 74, 0.05), 0 1px 3px rgba(7, 42, 74, 0.06);
  --tp-shadow-md: 0 1px 2px rgba(7, 42, 74, 0.04), 0 8px 20px rgba(7, 42, 74, 0.07);
  --tp-shadow-lg: 0 2px 6px rgba(7, 42, 74, 0.05), 0 24px 56px rgba(7, 42, 74, 0.13);
  --tp-ring: 0 0 0 4px rgba(24, 120, 192, 0.14);
  /* Gradients de marque */
  --tp-gradient: linear-gradient(135deg, #1878c0 0%, #0d5e9b 58%, #0a3a66 100%);
  --tp-gradient-soft: linear-gradient(170deg, #f2f7fc 0%, #f8fbfd 55%, #ffffff 100%);
  /* Trames industrielles */
  --tp-trame-dots: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  --tp-trame-lines: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px);
  /* Typo */
  --tp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}

/* 3. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--tp-font);
  color: var(--tp-text);
  background: var(--tp-white);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tp-blue); text-decoration: none; }
a:hover { color: var(--tp-blue-dark); }
h1, h2, h3, h4, h5 {
  margin: 0; line-height: 1.16; font-weight: 780;
  color: var(--tp-text); letter-spacing: -0.024em;
  font-feature-settings: "ss01" on;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
strong { font-weight: 700; }
::selection { background: rgba(24, 120, 192, 0.16); color: var(--tp-deep); }
:focus-visible { outline: 2.5px solid rgba(24, 120, 192, 0.55); outline-offset: 2px; border-radius: 4px; }

/* Barres de défilement raffinées (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f2f6fa; }
::-webkit-scrollbar-thumb { background: #c5d3e0; border-radius: 999px; border: 2px solid #f2f6fa; }
::-webkit-scrollbar-thumb:hover { background: #9db7cc; }

/* 4. Layout --------------------------------------------------------------- */
.tp-container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .tp-container { padding-inline: 2rem; } }
.tp-section { padding-block: clamp(3.75rem, 7vw, 6rem); }
.tp-section-soft { background: var(--tp-gradient-soft); }
.tp-bg-deep { background: var(--tp-deep); }

/* 5. Barre supérieure ------------------------------------------------------ */
.tp-topbar { background: var(--tp-deep); color: rgba(255, 255, 255, 0.78); font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.tp-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; padding-block: 7px; flex-wrap: wrap;
}
.tp-topbar-links { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.tp-topbar a, .tp-topbar span.tp-topbar-item {
  display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.tp-topbar a:hover { color: #fff; }
.tp-topbar svg { width: 13px; height: 13px; flex: none; opacity: 0.8; }
.tp-topbar-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(24, 120, 192, 0.22); border: 1px solid rgba(79, 163, 221, 0.32);
  color: #d3e9fb; padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.02em;
}
.tp-topbar-badge svg { width: 13px; height: 13px; }
@media (max-width: 860px) { .tp-topbar-inner { justify-content: center; } .tp-topbar-badge { display: none; } }

/* 6. En-tête & navigation --------------------------------------------------- */
.tp-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.tp-header.is-scrolled { box-shadow: 0 1px 0 rgba(7, 42, 74, 0.06), 0 10px 28px rgba(7, 42, 74, 0.08); border-bottom-color: var(--tp-border); }
.tp-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 76px; transition: height 0.28s ease;
}
.tp-header.is-scrolled .tp-header-inner { height: 66px; }
.tp-logo { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.tp-logo img { height: 44px; width: auto; transition: height 0.28s ease; }
.tp-header.is-scrolled .tp-logo img { height: 39px; }
/* Nom de marque à côté du logo : « technopure » en un seul mot (« pure » en bleu, comme le logo), « MAROC » dessous */
.tp-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.tp-logo-text strong { font-size: 1.22rem; font-weight: 800; color: var(--tp-deep); letter-spacing: -0.03em; white-space: nowrap; }
.tp-logo-text strong .tp-pure { color: var(--tp-blue); font: inherit; letter-spacing: inherit; text-transform: none; }
.tp-logo-text > span { margin-top: 0.15rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.32em; color: rgba(24, 120, 192, 0.8); text-transform: uppercase; }
.tp-mobile-head .tp-logo-text { margin-inline: 0.6rem auto; }
.tp-mobile-head .tp-logo-text strong { font-size: 1.12rem; }

.tp-nav { display: flex; align-items: center; gap: 0.15rem; }
.tp-nav > li { position: relative; }
.tp-nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem; position: relative;
  padding: 0.55rem 0.8rem; border-radius: var(--tp-radius-sm);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.005em; color: #35485d;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.tp-nav-link:hover, .tp-nav > li:hover > .tp-nav-link { color: var(--tp-blue); background: var(--tp-ice); }
.tp-nav > li.is-active > .tp-nav-link { color: var(--tp-blue); }
.tp-nav > li.is-active > .tp-nav-link::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 1px;
  height: 2.5px; border-radius: 999px; background: var(--tp-gradient);
}
.tp-nav-link .caret { width: 14px; height: 14px; transition: transform 0.22s ease; opacity: 0.7; }
.tp-nav > li:hover .caret { transform: rotate(180deg); }

/* Menus déroulants (mega-menu) */
.tp-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 70;
  min-width: 264px; background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-lg);
  padding: 0.75rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.tp-dropdown::before { content: ""; position: absolute; top: -7px; left: 24px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--tp-border); border-top: 1px solid var(--tp-border); transform: rotate(45deg); border-radius: 2px; }
.tp-nav > li:hover > .tp-dropdown, .tp-nav > li:focus-within > .tp-dropdown,
.tp-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-dropdown-label {
  padding: 0.5rem 0.75rem 0.35rem; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(24, 120, 192, 0.85);
}
.tp-dropdown a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem;
  border-radius: 0.55rem; font-size: 13.5px; font-weight: 500; color: #35485d;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.tp-dropdown a:hover { background: var(--tp-ice); color: var(--tp-blue); padding-left: 0.95rem; }
.tp-dropdown a.is-active { background: var(--tp-ice); color: var(--tp-blue); font-weight: 600; }
.tp-dropdown a svg { width: 14px; height: 14px; flex: none; color: var(--tp-sky); }
.tp-dropdown-wide { display: grid; grid-template-columns: repeat(2, minmax(232px, 1fr)); gap: 0 1.1rem; min-width: 560px; }
.tp-dropdown-footer { margin-top: 0.5rem; padding: 0.5rem 0.75rem 0.25rem; border-top: 1px solid var(--tp-border); }

/* Bouton devis + burger */
.tp-header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Sélecteur de langue (FR / EN / ع) */
.tp-lang { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(24, 120, 192, 0.22); border-radius: 999px; background: #fff; box-shadow: var(--tp-shadow-sm); }
.tp-lang button { height: 32px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 800; font-family: inherit; color: var(--tp-muted); cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.tp-lang button:hover { color: var(--tp-blue); }
.tp-lang button.is-active { background: var(--tp-gradient); color: #fff; }
@media (max-width: 1199px) { .tp-lang { display: none; } }

/* Bouton « Demander un devis » de l'en-tête */
.tp-header-actions .tp-btn-primary { background: var(--tp-gradient); border-radius: 999px; padding: 0.55rem 1.2rem; box-shadow: 0 8px 20px rgba(24, 120, 192, 0.28); }
.tp-header-actions .tp-btn-primary:hover { box-shadow: 0 12px 26px rgba(24, 120, 192, 0.4); }
.tp-header-actions .tp-btn-primary svg { width: 15px; height: 15px; margin-right: 0.45rem; }
.tp-burger {
  display: none; width: 44px; height: 44px; border-radius: var(--tp-radius-sm);
  border: 1px solid var(--tp-border-strong); align-items: center; justify-content: center; color: var(--tp-blue);
  transition: background 0.2s ease;
}
.tp-burger:hover { background: var(--tp-ice); }
.tp-burger svg { width: 22px; height: 22px; }

/* Navigation responsive : burger sous 1024px */
@media (max-width: 1199px) {
  .tp-nav { display: none; }
  .tp-burger { display: flex; }
}
/* v28 — en-tête compact entre 1200 et 1439 px (évite le débordement horizontal) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .tp-header-inner { gap: 0.6rem; }
  .tp-nav { gap: 0; }
  .tp-nav-link { padding: 0.5rem 0.55rem; font-size: 13px; gap: 0.25rem; }
  .tp-header-actions { gap: 0.5rem; }
  .tp-header-actions .tp-btn-primary { padding: 0.5rem 0.95rem; }
  .tp-header-actions .tp-btn-primary svg { display: none; }
  .tp-logo .tp-logo-text strong { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .tp-header-inner { height: 62px; }
  .tp-header.is-scrolled .tp-header-inner { height: 56px; }
  .tp-logo img, .tp-header.is-scrolled .tp-logo img { height: 36px; }
  .tp-header-actions .tp-btn { display: none; }
  .tp-burger { width: 40px; height: 40px; }
}

/* Menu mobile */
.tp-mobile {
  position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none;
}
.tp-mobile.is-open { visibility: visible; pointer-events: auto; }
.tp-mobile-overlay { position: absolute; inset: 0; background: rgba(4, 22, 40, 0.6); opacity: 0; transition: opacity 0.25s ease; backdrop-filter: blur(2px); }
.tp-mobile.is-open .tp-mobile-overlay { opacity: 1; }
.tp-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(370px, 88vw);
  background: #fff; box-shadow: var(--tp-shadow-lg); padding: 1.25rem;
  overflow-y: auto; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.tp-mobile.is-open .tp-mobile-panel { transform: translateX(0); }
.tp-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.tp-mobile-close { width: 40px; height: 40px; border-radius: var(--tp-radius-sm); border: 1px solid var(--tp-border-strong); display: flex; align-items: center; justify-content: center; color: var(--tp-muted); }
.tp-mobile-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.75rem 0.85rem; border-radius: 0.6rem; font-size: 15px; font-weight: 600; color: var(--tp-text);
  transition: background 0.15s ease, color 0.15s ease;
}
.tp-mobile-link:hover { background: var(--tp-ice); color: var(--tp-blue); }
.tp-mobile-link.is-active { background: var(--tp-ice); color: var(--tp-blue); }
.tp-mobile-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.tp-mobile-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.tp-mobile-sub { display: none; padding: 0.25rem 0 0.25rem 1rem; border-left: 2px solid var(--tp-border); margin-left: 0.85rem; }
.tp-mobile-sub.is-open { display: block; }
.tp-mobile-sub-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(24, 120, 192, 0.85); padding: 0.5rem 0.75rem 0.2rem; }
.tp-mobile-sub a { display: block; padding: 0.5rem 0.75rem; font-size: 14px; font-weight: 500; color: #35485d; border-radius: 0.5rem; }
.tp-mobile-sub a:hover { background: var(--tp-ice); color: var(--tp-blue); }
.tp-mobile-cta { margin-top: 0.75rem; }

/* 7. Boutons ---------------------------------------------------------------- */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.4rem; border-radius: var(--tp-radius-sm); font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em; line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.tp-btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.tp-btn:hover { transform: translateY(-1.5px); }
.tp-btn:hover svg { transform: translateX(2px); }
.tp-btn-primary { background: var(--tp-gradient); color: #fff; box-shadow: 0 6px 16px rgba(24, 120, 192, 0.32); }
.tp-btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(24, 120, 192, 0.42); }
.tp-btn-white { background: #fff; color: var(--tp-deep); box-shadow: 0 6px 18px rgba(4, 22, 40, 0.22); }
.tp-btn-white:hover { color: var(--tp-blue); }
.tp-btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.tp-btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tp-btn-ghost { background: var(--tp-ice); color: var(--tp-blue); }
.tp-btn-ghost:hover { background: #d9e9f7; color: var(--tp-blue-dark); }
.tp-btn-outline-blue { background: transparent; color: var(--tp-blue); box-shadow: inset 0 0 0 1.5px rgba(24, 120, 192, 0.38); }
.tp-btn-outline-blue:hover { background: var(--tp-ice); }
.tp-btn-sm { padding: 0.5rem 1rem; font-size: 13px; }
.tp-btn-lg { padding: 0.9rem 1.8rem; font-size: 15px; }

/* 8. Pastilles / badges ------------------------------------------------------ */
.tp-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(24, 120, 192, 0.09); color: var(--tp-blue);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.42rem 1rem; border-radius: 999px;
}
.tp-pill svg { width: 14px; height: 14px; }
.tp-pill-light { background: rgba(255, 255, 255, 0.1); color: #d3e9fb; border: 1px solid rgba(79, 163, 221, 0.35); }
.tp-pill-white { background: #fff; color: var(--tp-blue); box-shadow: var(--tp-shadow-sm); }

/* 9. Titres de section -------------------------------------------------------- */
.tp-section-head { max-width: 47rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.tp-section-head--center { margin-inline: auto; text-align: center; }
.tp-section-head .tp-pill { background: transparent; padding: 0; border-radius: 0; font-size: 12px; letter-spacing: 0.22em; color: var(--tp-blue); font-weight: 800; }
.tp-section-head .tp-pill::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tp-blue), rgba(24, 120, 192, 0.25)); }
.tp-section-head--center .tp-pill::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(270deg, var(--tp-blue), rgba(24, 120, 192, 0.25)); }
.tp-section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; margin-top: 1rem; font-weight: 780; }
.tp-section-head p { margin-top: 1rem; color: var(--tp-muted); font-size: 16.5px; line-height: 1.7; }
.tp-section-head--light h2, .tp-section-head--light p { color: #fff; }
.tp-section-head--light p { color: rgba(255, 255, 255, 0.72); }
.tp-section-head--light .tp-pill { color: var(--tp-sky); }
.tp-section-head--light .tp-pill::before { background: linear-gradient(90deg, var(--tp-sky), rgba(79, 163, 221, 0.25)); }
.tp-section-head--light .tp-pill::after { background: linear-gradient(270deg, var(--tp-sky), rgba(79, 163, 221, 0.25)); }

/* 10. Héros — plein écran, slider 3 photos ------------------------------------ */
.tp-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--tp-deep); color: #fff; }
@media (min-width: 1024px) { .tp-hero { min-height: 740px; } }
.tp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.tp-slide.is-active { opacity: 1; }
.tp-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.tp-slide.is-active img { animation: tp-kenburns 8.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes tp-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.tp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(4, 24, 44, 0.95) 0%, rgba(7, 42, 74, 0.84) 34%, rgba(10, 58, 102, 0.52) 66%, rgba(24, 120, 192, 0.22) 100%);
}
.tp-hero-overlay::after {
  content: ""; position: absolute; inset: 0; background: var(--tp-trame-lines);
  opacity: 0.5; mix-blend-mode: overlay;
}
.tp-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 5.5rem 7.5rem; }
.tp-hero-content { max-width: 43rem; }
.tp-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.55rem); letter-spacing: -0.035em; margin-top: 1.4rem; line-height: 1.06; font-weight: 800; }
.tp-hero p.tp-hero-lead { margin-top: 1.35rem; font-size: 17.5px; line-height: 1.72; color: rgba(255, 255, 255, 0.86); max-width: 38rem; }
.tp-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.tp-hero-actions .tp-btn { border-radius: var(--tp-radius-sm); padding: 1rem 1.7rem; font-size: 15px; font-weight: 700; }
.tp-btn-hero-ghost { display: inline-flex; align-items: center; gap: 0.5rem; height: 52px; padding: 0 1.7rem; border: 0; border-radius: var(--tp-radius-sm); background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease; }
.tp-btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65); color: #fff; }
.tp-btn-hero-ghost svg { width: 16px; height: 16px; }
.tp-hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 1.1rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.tp-hero-badge svg { width: 14px; height: 14px; color: var(--tp-sky); flex: none; }
.tp-hero-dots { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.6rem; z-index: 3; }
.tp-hero-dot { width: 18px; height: 5px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.45s ease, background 0.45s ease; }
.tp-hero-dot:hover { background: rgba(255, 255, 255, 0.6); }
.tp-hero-dot.is-active { width: 44px; background: #fff; }
.tp-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.tp-hero-arrow:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); }
.tp-hero-arrow svg { width: 20px; height: 20px; }
.tp-hero-arrow--prev { left: 1.25rem; }
.tp-hero-arrow--next { right: 1.25rem; }
@media (max-width: 767px) { .tp-hero-arrow { display: none; } .tp-hero-inner { padding-block: 4rem 5.5rem; } .tp-hero-dot { width: 14px; } .tp-hero-dot.is-active { width: 34px; } }

/* Statistiques — bandeau marine à trame industrielle */
.tp-stats-band {
  background-color: var(--tp-navy);
  background-image: var(--tp-trame-dots);
  background-size: 26px 26px;
  color: #fff; overflow: hidden; position: relative;
}
.tp-stats-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--tp-blue), var(--tp-sky) 55%, rgba(79, 163, 221, 0.15)); }
.tp-stats { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tp-stat { padding: 2.6rem 1rem; text-align: center; position: relative; }
.tp-stat + .tp-stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255, 255, 255, 0.12); }
.tp-stat strong { display: block; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tp-stat strong::after { content: "+"; color: var(--tp-sky); }
.tp-stat.no-plus strong::after { content: ""; }
.tp-stat span { display: block; margin-top: 0.45rem; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 720px) {
  .tp-stats { grid-template-columns: repeat(2, 1fr); }
  .tp-stat { padding: 1.8rem 0.75rem; }
  .tp-stat:nth-child(3)::before { display: none; }
}

/* 11. Héros de page intérieure + fil d'ariane ---------------------------------- */
.tp-page-hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--tp-deep);
  background-image: linear-gradient(94deg, rgba(4, 24, 44, 0.95) 0%, rgba(7, 42, 74, 0.86) 40%, rgba(10, 58, 102, 0.6) 72%, rgba(24, 120, 192, 0.3) 100%);
}
.tp-page-hero[style*="--tp-hero-img"] {
  background-image: linear-gradient(94deg, rgba(4, 24, 44, 0.94) 0%, rgba(7, 42, 74, 0.78) 42%, rgba(10, 58, 102, 0.45) 74%, rgba(24, 120, 192, 0.18) 100%), var(--tp-hero-img);
  background-size: cover; background-position: center;
}
.tp-page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -150px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 163, 221, 0.16) 0%, transparent 62%);
}
.tp-page-hero::after { content: ""; position: absolute; inset: 0; background: var(--tp-trame-lines); opacity: 0.35; pointer-events: none; }
.tp-page-hero-inner { position: relative; z-index: 2; padding-block: 3.75rem 3.5rem; }
.tp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 12.5px; color: rgba(255, 255, 255, 0.68); letter-spacing: 0.01em; }
.tp-breadcrumb a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 0.4rem; }
.tp-breadcrumb a:hover { color: #fff; }
.tp-breadcrumb svg { width: 13px; height: 13px; opacity: 0.7; }
.tp-breadcrumb .sep { opacity: 0.45; }
.tp-breadcrumb .current { color: #fff; font-weight: 600; }
.tp-page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; margin-top: 1.1rem; font-weight: 800; }
.tp-page-hero .tp-page-hero-lead { margin-top: 1.05rem; color: rgba(255, 255, 255, 0.76); max-width: 44rem; font-size: 16.5px; line-height: 1.7; }

/* 12. Cartes -------------------------------------------------------------------- */
.tp-card {
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  overflow: hidden; box-shadow: var(--tp-shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.tp-card:hover { transform: translateY(-5px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24, 120, 192, 0.38); }
.tp-card-media { position: relative; height: 190px; overflow: hidden; background: var(--tp-ice); }
.tp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.tp-card:hover .tp-card-media img { transform: scale(1.08); }
.tp-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 24, 44, 0.68), transparent 55%); pointer-events: none; }
.tp-card-media .tp-card-tag {
  position: absolute; bottom: 0.8rem; left: 1.1rem; z-index: 2;
  display: flex; align-items: center; gap: 0.55rem; color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
}
.tp-card-tag .tp-tag-ico { width: 36px; height: 36px; border-radius: 0.7rem; background: rgba(24, 120, 192, 0.9); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 12px rgba(4, 24, 44, 0.4); }
.tp-card-tag .tp-tag-ico svg { width: 17px; height: 17px; }
.tp-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tp-card-body h3 { font-size: 1.07rem; letter-spacing: -0.015em; font-weight: 700; }
.tp-card-body h3 a { color: inherit; }
.tp-card-body h3 a:hover { color: var(--tp-blue); }
.tp-card-body p { color: var(--tp-muted); font-size: 14px; line-height: 1.65; flex: 1; }
.tp-card-link {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem;
  font-size: 13.5px; font-weight: 700; color: var(--tp-blue);
}
.tp-card-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.tp-card-link:hover svg { transform: translateX(4px); }
.tp-card-footer { padding: 0 1.4rem 1.4rem; }

/* Grilles */
.tp-grid { display: grid; gap: 1.5rem; }
.tp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tp-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .tp-grid-3, .tp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tp-grid-2, .tp-grid-3, .tp-grid-4 { grid-template-columns: 1fr; } }

/* Carte « feature » avec icône */
.tp-feature {
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.tp-feature:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow-md); border-color: rgba(24, 120, 192, 0.3); }
.tp-feature-icon {
  flex: none; width: 50px; height: 50px; border-radius: 0.8rem;
  background: var(--tp-ice); color: var(--tp-blue);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.tp-feature:hover .tp-feature-icon { background: var(--tp-gradient); color: #fff; }
.tp-feature-icon svg { width: 24px; height: 24px; }
.tp-feature h3 { font-size: 1.02rem; margin-bottom: 0.4rem; font-weight: 700; }
.tp-feature p { color: var(--tp-muted); font-size: 14px; line-height: 1.62; }

/* 13. Sections enrichies --------------------------------------------------------- */
.tp-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .tp-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tp-split-media { position: relative; }
.tp-split-media img { width: 100%; border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-lg); object-fit: cover; aspect-ratio: 4 / 3; }
.tp-split-badge {
  position: absolute; right: -1rem; bottom: -1.25rem;
  background: var(--tp-gradient); color: #fff; border-radius: 1.1rem;
  padding: 1.1rem 1.5rem; text-align: center; box-shadow: var(--tp-shadow-lg);
  animation: tp-float 6s ease-in-out infinite;
}
.tp-split-badge strong { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.tp-split-badge span { font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.tp-list-check { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.tp-list-check li { display: flex; gap: 0.75rem; align-items: flex-start; color: #35485d; font-size: 15px; line-height: 1.6; }
.tp-list-check .chk {
  flex: none; width: 24px; height: 24px; border-radius: 999px; margin-top: 1px;
  background: var(--tp-ice); color: var(--tp-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.tp-list-check .chk svg { width: 13px; height: 13px; }
.tp-list-check strong { color: var(--tp-text); }

/* 14. Galerie ---------------------------------------------------------------------- */
.tp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .tp-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tp-gallery { grid-template-columns: 1fr; } }
.tp-gallery-item {
  position: relative; border-radius: var(--tp-radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--tp-ice);
  border: 1px solid var(--tp-border); cursor: pointer;
}
.tp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.tp-gallery-item:hover img { transform: scale(1.06); }
.tp-gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(4, 24, 44, 0.88));
  color: #fff; font-size: 13px; font-weight: 600;
}
.tp-lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; background: rgba(3, 15, 28, 0.9);
  padding: 2rem; backdrop-filter: blur(8px);
}
.tp-lightbox.is-open { display: flex; }
.tp-lightbox img { max-width: min(920px, 92vw); max-height: 84vh; border-radius: var(--tp-radius); box-shadow: var(--tp-shadow-lg); }
.tp-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 46px; height: 46px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  transition: background 0.2s ease;
}
.tp-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* 15. Certification / organismes ---------------------------------------------------- */
.tp-org-row {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.5rem;
}
.tp-org-pill {
  background: #fff; border: 1px solid var(--tp-border); border-radius: 999px;
  padding: 0.62rem 1.4rem; font-size: 13px; font-weight: 700; color: #35485d;
  box-shadow: var(--tp-shadow-sm); display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tp-org-pill:hover { border-color: rgba(24, 120, 192, 0.4); box-shadow: var(--tp-shadow-md); transform: translateY(-2px); }
.tp-org-pill svg { width: 15px; height: 15px; color: var(--tp-blue); }

/* Mur de logos — organismes & clients ------------------------------------------------ */
.tp-logo-wall {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: stretch;
}
.tp-logo-card {
  flex: 0 0 clamp(120px, 15vw, 170px);
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  aspect-ratio: 10 / 7; display: flex; align-items: center; justify-content: center;
  padding: 0.9rem; box-shadow: var(--tp-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tp-logo-card:hover { border-color: rgba(24, 120, 192, 0.4); box-shadow: var(--tp-shadow-md); transform: translateY(-3px); }
.tp-logo-card img { width: 100%; height: 100%; object-fit: contain; }

/* 16. Blocs de documentation --------------------------------------------------------- */
.tp-doc-item {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  padding: 1.15rem 1.35rem; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tp-doc-item:hover { box-shadow: var(--tp-shadow-md); border-color: rgba(24, 120, 192, 0.35); transform: translateY(-2px); }
.tp-doc-icon {
  flex: none; width: 46px; height: 46px; border-radius: 0.7rem;
  background: rgba(196, 18, 32, 0.07); color: #c0182b;
  display: flex; align-items: center; justify-content: center;
}
.tp-doc-icon svg { width: 22px; height: 22px; }
.tp-doc-info { flex: 1; min-width: 220px; }
.tp-doc-info strong { display: block; font-size: 14.5px; color: var(--tp-text); }
.tp-doc-info span { font-size: 12.5px; color: var(--tp-muted); }
.tp-doc-list { display: grid; gap: 0.9rem; }
@media (min-width: 900px) { .tp-doc-list--2col { grid-template-columns: 1fr 1fr; } }
.tp-doc-group { margin-top: 2.2rem; }
.tp-doc-group:first-child { margin-top: 0; }
.tp-doc-group-title {
  font-size: 1.05rem; font-weight: 800; color: var(--tp-blue);
  letter-spacing: -0.01em; margin-bottom: 1.1rem;
  padding-left: 0.9rem; border-left: 3px solid var(--tp-blue);
}
.tp-doc-group + .tp-doc-group { margin-top: 2.4rem; }

/* 17. Produits (fiches détaillées) ---------------------------------------------------- */
.tp-product {
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  overflow: hidden; box-shadow: var(--tp-shadow-sm); scroll-margin-top: 110px;
  transition: box-shadow 0.25s ease;
}
.tp-product:hover { box-shadow: var(--tp-shadow-md); }
.tp-product-head {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 1.6rem; background: var(--tp-gradient-soft);
  border-bottom: 1px solid var(--tp-border);
}
@media (min-width: 768px) { .tp-product-head { grid-template-columns: 240px 1fr; } }
.tp-product-head img {
  width: 100%; border-radius: 0.85rem; border: 1px solid var(--tp-border);
  background: #fff; aspect-ratio: 4 / 3; object-fit: cover;
}
.tp-product-head h2 { font-size: 1.4rem; color: var(--tp-deep); letter-spacing: -0.02em; }
.tp-product-head .tp-product-sub { margin-top: 0.45rem; font-size: 12px; font-weight: 700; color: var(--tp-blue); text-transform: uppercase; letter-spacing: 0.12em; }
.tp-product-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.15rem; }
.tp-product-body { padding: 1.6rem; }
.tp-product-body h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--tp-blue); margin-bottom: 0.6rem; font-weight: 800; }
.tp-product-body p { color: #35485d; font-size: 14.5px; line-height: 1.7; }
.tp-product-body .tp-product-block + .tp-product-block { margin-top: 1.3rem; }

/* 18. Encadrés / prose ----------------------------------------------------------------- */
.tp-prose { max-width: 48rem; }
.tp-prose p + p { margin-top: 1rem; }
.tp-prose p { color: #2c3e52; line-height: 1.72; }
.tp-prose h2 { font-size: 1.5rem; margin: 2.1rem 0 0.85rem; }
.tp-prose h3 { font-size: 1.15rem; margin: 1.7rem 0 0.6rem; }
.tp-prose ul.tp-prose-list { display: grid; gap: 0.6rem; margin: 1rem 0; }
.tp-prose ul.tp-prose-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: #35485d; }
.tp-prose ul.tp-prose-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--tp-blue); margin-top: 9px; }

/* Citation du président */
.tp-quote {
  background: #fff; border: 1px solid var(--tp-border); border-left: 4px solid var(--tp-blue);
  border-radius: var(--tp-radius); padding: 1.7rem 1.9rem; box-shadow: var(--tp-shadow-sm);
}
.tp-quote p { font-size: 16.5px; color: #2c3e52; font-style: italic; line-height: 1.75; }
.tp-quote footer { margin-top: 1rem; font-size: 13.5px; color: var(--tp-muted); }
.tp-quote footer strong { color: var(--tp-deep); }

/* 19. Timeline / chiffres clés ---------------------------------------------------------- */
.tp-metrics { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .tp-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tp-metrics { grid-template-columns: 1fr; } }
.tp-metric {
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  padding: 1.6rem 1.25rem; text-align: center; box-shadow: var(--tp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tp-metric:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow-md); }
.tp-metric strong { display: block; font-size: 2rem; font-weight: 800; color: var(--tp-blue); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tp-metric span { display: block; margin-top: 0.4rem; font-size: 12.5px; color: var(--tp-muted); }

/* Chronologie (dates clés) */
.tp-timeline { position: relative; max-width: 46rem; margin-inline: auto; padding-left: 2rem; }
.tp-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--tp-blue), rgba(24, 120, 192, 0.12)); border-radius: 2px; }
.tp-timeline-item { position: relative; padding: 0 0 2rem 1.75rem; }
.tp-timeline-item:last-child { padding-bottom: 0; }
.tp-timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 999px;
  background: #fff; border: 3px solid var(--tp-blue); box-shadow: 0 0 0 4px rgba(24, 120, 192, 0.12);
}
.tp-timeline-year { display: inline-block; background: var(--tp-ice); color: var(--tp-blue); font-weight: 800; font-size: 15px; padding: 0.22rem 0.9rem; border-radius: 999px; letter-spacing: 0.02em; }
.tp-timeline-item h3 { margin-top: 0.65rem; font-size: 1.05rem; }
.tp-timeline-item p { margin-top: 0.35rem; color: var(--tp-muted); font-size: 14.5px; line-height: 1.65; }

/* 20. Contact ---------------------------------------------------------------------------- */
.tp-contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .tp-contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.tp-form-card {
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  padding: 2rem; box-shadow: var(--tp-shadow-md);
}
.tp-form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.tp-form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.tp-form-field--full { grid-column: 1 / -1; }
.tp-form-field label { font-size: 13px; font-weight: 600; color: #35485d; letter-spacing: 0.01em; }
.tp-form-field input, .tp-form-field textarea, .tp-form-field select {
  font-family: inherit; font-size: 14.5px; color: var(--tp-text);
  border: 1px solid var(--tp-border-strong); border-radius: var(--tp-radius-sm);
  padding: 0.72rem 0.95rem; background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.tp-form-field input::placeholder, .tp-form-field textarea::placeholder { color: #9aa9ba; }
.tp-form-field textarea { min-height: 140px; resize: vertical; }
.tp-form-field input:focus, .tp-form-field textarea:focus, .tp-form-field select:focus {
  outline: none; border-color: var(--tp-blue); box-shadow: var(--tp-ring);
}
.tp-form-field .tp-field-error { display: none; font-size: 12.5px; color: #c0182b; font-weight: 500; }
.tp-form-field.has-error input, .tp-form-field.has-error textarea { border-color: #c0182b; }
.tp-form-field.has-error .tp-field-error { display: block; }
.tp-form-success {
  display: none; margin-top: 1rem; padding: 0.95rem 1.15rem; border-radius: var(--tp-radius-sm);
  background: #e9f8ef; border: 1px solid #b3e4c6; color: #14683c; font-size: 14px; font-weight: 500;
  gap: 0.6rem; align-items: center;
}
.tp-form-success.is-visible { display: flex; }
@media (max-width: 640px) { .tp-form-grid { grid-template-columns: 1fr; } }

.tp-contact-card {
  background: var(--tp-gradient); color: #fff; border-radius: var(--tp-radius);
  padding: 2rem; box-shadow: var(--tp-shadow-lg); position: relative; overflow: hidden;
}
.tp-contact-card::before { content: ""; position: absolute; inset: 0; background: var(--tp-trame-dots); background-size: 22px 22px; opacity: 0.5; pointer-events: none; }
.tp-contact-card > * { position: relative; }
.tp-contact-card h3 { color: #fff; font-size: 1.2rem; }
.tp-contact-card ul { display: grid; gap: 1.05rem; margin-top: 1.3rem; }
.tp-contact-card li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, 0.86); line-height: 1.55; }
.tp-contact-card li a { color: #fff; }
.tp-contact-card .tp-contact-ic {
  flex: none; width: 42px; height: 42px; border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center; color: #d3e9fb;
}
.tp-contact-card .tp-contact-ic svg { width: 20px; height: 20px; }
.tp-contact-hours { margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.25rem; }
.tp-contact-hours h4 { color: var(--tp-sky); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; }
.tp-contact-hours ul { margin-top: 0.75rem; gap: 0.4rem; }
.tp-contact-hours li { justify-content: space-between; font-size: 13.5px; }

/* 21. Bannières CTA ------------------------------------------------------------------------ */
.tp-cta {
  position: relative; background-color: var(--tp-navy);
  background-image: linear-gradient(115deg, #1878c0 0%, #0d5e9b 48%, #0a3a66 100%);
  color: #fff; border-radius: var(--tp-radius-lg); overflow: hidden; padding: 3.2rem 2.8rem;
  box-shadow: var(--tp-shadow-lg);
}
.tp-cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -130px; top: -170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 64%);
}
.tp-cta::after { content: ""; position: absolute; inset: 0; background: var(--tp-trame-dots); background-size: 22px 22px; opacity: 0.4; }
.tp-cta-inner { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tp-cta-inner { grid-template-columns: 1.4fr 0.6fr; } }
.tp-cta h2 { color: #fff; font-size: clamp(1.55rem, 3.1vw, 2.15rem); letter-spacing: -0.025em; }
.tp-cta p { margin-top: 0.85rem; color: rgba(255, 255, 255, 0.8); font-size: 15.5px; max-width: 42rem; line-height: 1.7; }
.tp-cta-actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: stretch; }
@media (max-width: 899px) { .tp-cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* 22. Pied de page --------------------------------------------------------------------------- */
.tp-footer { background: var(--tp-deep); color: #fff; margin-top: auto; position: relative; }
.tp-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--tp-blue), var(--tp-sky) 55%, transparent 95%); }
.tp-footer-top {
  display: grid; gap: 2.75rem; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  padding-block: 3.75rem 3rem;
}
@media (max-width: 1100px) { .tp-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tp-footer-top { grid-template-columns: 1fr; } }
.tp-footer-brand .tp-footer-logo {
  display: inline-flex; align-items: center; background: #fff; border-radius: 0.8rem;
  padding: 0.6rem 1rem; box-shadow: var(--tp-shadow-md);
}
.tp-footer-brand .tp-footer-logo img { height: 44px; width: auto; }
.tp-footer-brand p { margin-top: 1.15rem; color: rgba(255, 255, 255, 0.62); font-size: 14px; max-width: 30rem; line-height: 1.7; }
.tp-footer h3 {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tp-sky); margin-bottom: 1.15rem;
}
.tp-footer ul { display: grid; gap: 0.55rem; }
.tp-footer ul a, .tp-footer ul li.tp-footer-plain {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: rgba(255, 255, 255, 0.62); font-size: 14px; transition: color 0.2s ease, transform 0.2s ease;
}
.tp-footer ul a:hover { color: #fff; transform: translateX(3px); }
.tp-footer ul a svg { width: 13px; height: 13px; flex: none; opacity: 0.7; }
.tp-footer-contact li { align-items: flex-start; line-height: 1.6; }
.tp-footer-contact svg { width: 15px; height: 15px; margin-top: 3px; flex: none; color: var(--tp-sky); }
.tp-footer-hours { margin-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1rem; display: grid; gap: 0.4rem; }
.tp-footer-hours li { justify-content: space-between; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.tp-footer-hours li span:last-child { color: #fff; font-weight: 600; }
.tp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding-block: 1.5rem; }
.tp-footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
}
.tp-footer-bottom strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

/* 23. Assistant IA « TP Assistant » ------------------------------------------------------------- */
.tp-tr2-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 100;
  width: 60px; height: 60px; border-radius: 999px;
  background: var(--tp-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(24, 120, 192, 0.42);
  transition: transform 0.2s ease;
}
.tp-tr2-fab:hover { transform: scale(1.06); }
.tp-tr2-fab svg { width: 26px; height: 26px; }
.tp-tr2-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(24, 120, 192, 0.4); animation: tp-pulse-ring 2.2s ease-out infinite;
}
@keyframes tp-pulse-ring {
  0% { transform: scale(0.85); opacity: 1; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}
.tp-tr2-panel {
  position: fixed; right: 1.5rem; bottom: 5.5rem; z-index: 101;
  width: min(400px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 8rem));
  background: #fff; border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-lg);
  border: 1px solid var(--tp-border); display: flex; flex-direction: column;
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.tp-tr2-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.tp-tr2-head {
  background: linear-gradient(120deg, #072a4a 0%, #0d5e9b 74%, #1878c0 100%); color: #fff; padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.tp-tr2-avatar {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em; flex: none;
}
.tp-tr2-avatar svg { width: 22px; height: 22px; }
.tp-tr2-head-info { flex: 1; min-width: 0; }
.tp-tr2-head-info strong { display: block; font-size: 14.5px; }
.tp-tr2-head-info span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.tp-tr2-dot { width: 7px; height: 7px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); flex: none; }
.tp-tr2-close { width: 34px; height: 34px; border-radius: 0.6rem; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.tp-tr2-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tp-tr2-close svg { width: 18px; height: 18px; }
.tp-tr2-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; background: #f5f8fb; }
.tp-tr2-msg { max-width: 88%; padding: 0.7rem 1rem; border-radius: 1rem; font-size: 14px; line-height: 1.58; animation: tp-fade-up 0.25s ease both; }
.tp-tr2-msg--bot { background: #fff; border: 1px solid var(--tp-border); color: #35485d; border-bottom-left-radius: 0.3rem; align-self: flex-start; }
.tp-tr2-msg--user { background: var(--tp-gradient); color: #fff; border-bottom-right-radius: 0.3rem; align-self: flex-end; }
.tp-tr2-msg strong { color: var(--tp-deep); }
.tp-tr2-msg a { color: var(--tp-blue); text-decoration: underline; }
.tp-tr2-msg ul { margin: 0.45rem 0 0.1rem; display: grid; gap: 0.3rem; padding-left: 1.1rem; list-style: disc; }
.tp-tr2-msg li::marker { color: var(--tp-blue); }
.tp-tr2-msg--user strong { color: #fff; }
.tp-tr2-msg--user a { color: #fff; }
.tp-tr2-msg img.tp-tr2-src { display: none; }
.tp-tr2-typing { display: inline-flex; gap: 5px; padding: 0.85rem 1.05rem; }
.tp-tr2-typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--tp-sky); animation: tp-typing 1.2s ease-in-out infinite; }
.tp-tr2-typing i:nth-child(2) { animation-delay: 0.15s; }
.tp-tr2-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tp-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Documents fournis par l'assistant (cartes de téléchargement) */
.tp-tr2-attach { display: grid; gap: 0.55rem; margin-top: 0.7rem; max-width: 88%; }
.tp-tr2-doc {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.8rem;
  background: #fff; border: 1px solid var(--tp-border); border-radius: 0.8rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tp-tr2-doc:hover { border-color: rgba(24, 120, 192, 0.45); box-shadow: var(--tp-shadow-md); transform: translateY(-1px); }
.tp-tr2-doc-ico {
  flex: none; width: 38px; height: 38px; border-radius: 0.6rem;
  background: rgba(196, 18, 32, 0.08); color: #c0182b;
  display: flex; align-items: center; justify-content: center;
}
.tp-tr2-doc-ico svg { width: 19px; height: 19px; }
.tp-tr2-doc-info { flex: 1; min-width: 0; }
.tp-tr2-doc-info strong { display: block; font-size: 12.5px; color: var(--tp-text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-tr2-doc-info span { font-size: 11px; color: var(--tp-muted); }
.tp-tr2-doc-cta {
  flex: none; display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 11.5px; font-weight: 700; color: var(--tp-blue);
  background: var(--tp-ice); padding: 0.4rem 0.7rem; border-radius: 999px;
}
.tp-tr2-doc-cta svg { width: 13px; height: 13px; }

/* Carte « Lancer le simulateur » (chat) */
.tp-tr2-sim {
  display: flex; align-items: center; gap: 0.7rem; max-width: 88%; margin-top: 0.7rem; padding: 0.7rem 0.8rem;
  background: linear-gradient(135deg, rgba(24, 120, 192, 0.07), rgba(10, 58, 102, 0.05));
  border: 1px solid rgba(24, 120, 192, 0.35); border-radius: 0.8rem; text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tp-tr2-sim:hover { border-color: var(--tp-blue); box-shadow: var(--tp-shadow-md); transform: translateY(-1px); }
.tp-tr2-sim-ico {
  flex: none; width: 38px; height: 38px; border-radius: 0.6rem;
  background: var(--tp-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tp-tr2-sim-ico svg { width: 19px; height: 19px; }
.tp-tr2-sim-info { flex: 1; min-width: 0; }
.tp-tr2-sim-info strong { display: block; font-size: 12.5px; color: var(--tp-text); line-height: 1.35; }
.tp-tr2-sim-info span { display: block; font-size: 11px; color: var(--tp-muted); line-height: 1.4; }
.tp-tr2-sim-cta {
  flex: none; display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--tp-gradient); padding: 0.4rem 0.75rem; border-radius: 999px;
}
.tp-tr2-sim-cta svg { width: 13px; height: 13px; }

/* Sources citées */
.tp-tr2-sources { font-size: 11px; color: var(--tp-muted); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--tp-border); }
.tp-tr2-sources strong { color: var(--tp-blue); font-weight: 700; }

/* Suggestions (chips) */
.tp-tr2-suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.1rem 0.6rem; background: #f5f8fb; }
.tp-tr2-suggest button {
  font-size: 12.5px; font-weight: 500; color: var(--tp-blue);
  background: #fff; border: 1px solid rgba(24, 120, 192, 0.32);
  padding: 0.4rem 0.85rem; border-radius: 999px; transition: background 0.15s ease, border-color 0.15s ease;
}
.tp-tr2-suggest button:hover { background: var(--tp-ice); border-color: rgba(24, 120, 192, 0.55); }
.tp-tr2-foot { border-top: 1px solid var(--tp-border); padding: 0.8rem; display: flex; gap: 0.6rem; background: #fff; }
.tp-tr2-foot input {
  flex: 1; min-width: 0; border: 1px solid var(--tp-border-strong); border-radius: var(--tp-radius-sm);
  padding: 0.6rem 0.95rem; font-size: 14px; font-family: inherit; color: var(--tp-text);
}
.tp-tr2-foot input:focus { outline: none; border-color: var(--tp-blue); box-shadow: var(--tp-ring); }
.tp-tr2-send {
  flex: none; width: 42px; height: 42px; border-radius: var(--tp-radius-sm);
  background: var(--tp-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.tp-tr2-send:hover { transform: scale(1.05); }
.tp-tr2-send[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.tp-tr2-send svg { width: 18px; height: 18px; }
.tp-tr2-note { background: #fff; padding: 0.5rem 1.1rem 0.7rem; font-size: 10.5px; color: var(--tp-muted); border-top: 1px solid var(--tp-border); line-height: 1.5; }

/* Pastille de notification + info-bulle d'accueil */
.tp-tr2-fab .tp-tr2-badge {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px;
  border-radius: 999px; background: #22c55e; color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.tp-tr2-tip {
  position: fixed; right: calc(1.5rem + 72px); bottom: 2.2rem; z-index: 100;
  max-width: 270px; background: #fff; border: 1px solid var(--tp-border);
  border-radius: 14px; box-shadow: var(--tp-shadow-lg);
  padding: 0.7rem 2rem 0.7rem 0.95rem; font-size: 12.5px; line-height: 1.55; color: var(--tp-text);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tp-tr2-tip.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tp-tr2-tip strong { color: var(--tp-blue); font-weight: 800; }
.tp-tr2-tip-close { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border: 0; border-radius: 999px; background: transparent; color: var(--tp-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.tp-tr2-tip-close:hover { color: var(--tp-text); }
@media (max-width: 640px) { .tp-tr2-tip { right: 1rem; bottom: calc(1.5rem + 74px); max-width: 220px; } }

/* 24. Toast ---------------------------------------------------------------------------------------- */
.tp-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  z-index: 130; background: var(--tp-deep); color: #fff; font-size: 14px; font-weight: 500;
  padding: 0.78rem 1.35rem; border-radius: 999px; box-shadow: var(--tp-shadow-lg);
  border: 1px solid rgba(79, 163, 221, 0.3);
  opacity: 0; visibility: hidden; transition: all 0.25s ease; max-width: calc(100vw - 2rem); text-align: center;
}
.tp-toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 25. Révélation au défilement (gâtée par html.js — visible sans JavaScript) ------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.js [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
.js [data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
@keyframes tp-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tp-slide.is-active img, .tp-split-badge, .tp-tr2-fab::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 26. Divers ------------------------------------------------------------------------------------------ */
.tp-icon-lg { width: 26px; height: 26px; }
.tp-mt-1 { margin-top: 0.5rem; } .tp-mt-2 { margin-top: 1rem; } .tp-mt-3 { margin-top: 1.5rem; } .tp-mt-4 { margin-top: 2rem; }
.tp-mb-2 { margin-bottom: 1rem; } .tp-mb-3 { margin-bottom: 1.5rem; }
.tp-text-center { text-align: center; }
.tp-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tp-skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--tp-blue); color: #fff; padding: 0.6rem 1.2rem; border-radius: var(--tp-radius-sm);
  transition: top 0.2s ease;
}
.tp-skip-link:focus { top: 1rem; color: #fff; }
.tp-back-top {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 99;
  width: 46px; height: 46px; border-radius: 999px;
  background: #fff; color: var(--tp-blue); border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow-md); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.tp-back-top.is-visible { opacity: 1; visibility: visible; }
.tp-back-top:hover { background: var(--tp-ice); transform: translateY(-2px); }
.tp-back-top svg { width: 20px; height: 20px; }

/* 27. Fiche technique produit — disponible / indisponible ------------------------------------------ */
.tp-doc-unavailable {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 13px; font-weight: 600; color: var(--tp-muted);
  background: var(--tp-ice); border: 1px dashed var(--tp-border-strong);
  padding: 0.55rem 1.05rem; border-radius: 999px;
}
.tp-doc-unavailable svg { width: 15px; height: 15px; flex: none; }
.tp-doc-note { display: inline-flex; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--tp-muted); }
.tp-doc-note a { color: var(--tp-blue); font-weight: 600; text-decoration: underline; }

/* 28. Utilitaires de mise en page (ex-styles inline, priorité conservée) ---------------------------- */
.tp-h2-lg { font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important; letter-spacing: -0.02em !important; margin-top: 1rem !important; }
.tp-h2-md { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; letter-spacing: -0.02em !important; }
.tp-p-lead { margin-top: 1.2rem !important; color: var(--tp-muted) !important; }
.tp-p-muted { margin-top: 1rem !important; color: var(--tp-muted) !important; }
.tp-p-muted-08 { margin-top: 0.8rem !important; color: var(--tp-muted) !important; }
.tp-p-muted-15 { margin-top: 0.6rem !important; color: var(--tp-muted) !important; font-size: 15px !important; }
.tp-section-tight { padding-block: 3.5rem !important; }
.tp-span-all { grid-column: 1 / -1 !important; }
.tp-mt-06 { margin-top: 0.6rem !important; }
.tp-mt-12 { margin-top: 1.2rem !important; }
.tp-mt-14 { margin-top: 1.4rem !important; }
.tp-fs-12 { font-size: 1.2rem !important; }
.tp-fs-13 { font-size: 1.3rem !important; }
.tp-fs-14 { font-size: 1.4rem !important; letter-spacing: -0.01em !important; }
.tp-stack { display: grid !important; gap: 1.75rem !important; }
.tp-stack-lg { display: grid !important; gap: 2rem !important; }
.tp-actions-center { display: flex !important; gap: 0.9rem !important; justify-content: center !important; flex-wrap: wrap !important; }
.tp-caption-muted { margin: 0 !important; font-size: 13px !important; color: rgba(255, 255, 255, 0.6) !important; display: flex !important; align-items: center !important; gap: 0.5rem !important; }
.tp-pt-0 { padding-top: 0 !important; }
/* Panneau assistant : garde le corps du chat lisible sur petits écrans */
@media (max-height: 700px) {
  .tp-tr2-panel { height: min(560px, calc(100vh - 4.5rem)); bottom: 4.5rem; }
  .tp-tr2-suggest { max-height: 4.9rem; overflow-y: auto; }
  .tp-tr2-body { min-height: 8rem; }
}

/* 29. Simulateur de solutions d'étanchéité (simulateur.html) ----------------------------------------- */
.tp-narrow { max-width: 780px !important; margin-inline: auto; }
.tp-page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.7rem; }
.tp-btn-outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.tp-btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tp-btn-ghost { background: transparent; color: var(--tp-muted); }
.tp-btn-ghost:hover { background: var(--tp-ice); color: var(--tp-blue-dark); }

/* Onglet « Simulateur » de premier niveau mis en avant */
.tp-nav-sim { color: var(--tp-blue) !important; font-weight: 700 !important; }
.tp-nav-sim svg { width: 15px; height: 15px; flex: none; }
.tp-nav-sim:hover, .tp-nav > li:hover > .tp-nav-sim { color: var(--tp-blue-dark) !important; }
.tp-mobile-sim { color: var(--tp-blue) !important; font-weight: 700; }

/* 29. Simulateur d'étanchéité — arbre de décision v2 (simulateur.html) ---- */
/* App : rail des choix + panneau interactif */
.sim-app { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.sim-rail {
  position: sticky; top: 6.2rem;
  background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm); padding: 1.15rem 1.2rem 1.25rem;
}
.sim-rail-title { margin: 0 0 0.75rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--tp-muted); }
.sim-trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sim-trail li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm);
  padding: 0.5rem 0.75rem; font-size: 13.5px; min-height: 2.35rem;
}
.sim-trail li.is-pending { border-style: dashed; color: var(--tp-muted); background: transparent; font-size: 12.5px; }
.sim-trail-label { color: var(--tp-muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; flex: none; }
.sim-trail-value { color: var(--tp-text); font-weight: 700; text-align: right; }
.sim-trail-empty { color: var(--tp-muted); font-size: 13px; border-style: dashed; background: transparent; }
.sim-rail-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.sim-rail-actions .tp-btn { flex: 1; justify-content: center; }
.sim-rail-help { margin-top: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--tp-border); font-size: 13px; color: var(--tp-muted); }
.sim-rail-help p { margin: 0 0 0.25rem; }
.sim-rail-help strong { color: var(--tp-deep); font-size: 13.5px; }
.sim-rail-help a { font-weight: 800; color: var(--tp-blue); font-size: 15px; white-space: nowrap; }
.sim-rail-help a:hover { color: var(--tp-blue-dark); }
.sim-panel {
  background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-md); padding: clamp(1.15rem, 2.6vw, 1.9rem); min-width: 0;
}
/* Garde [hidden] : l'attribut doit toujours l'emporter sur les display des composants */
.sim-panel [hidden], .sim-rail [hidden], .sim-progress[hidden], .sim-table tr[hidden] { display: none !important; }
/* Contre la garde anti-FOUC du critical CSS (.sim-step-view,.sim-result{display:none}) */
.sim-step-view, .sim-result { display: block; }

/* Fil d'étapes */
.sim-progress { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--tp-border); }
.sim-progress-step {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--tp-muted); background: var(--tp-ice-2); border: 1px solid var(--tp-border);
  border-radius: 999px; padding: 0.3rem 0.75rem; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.sim-progress-step.is-done { background: var(--tp-ice); border-color: rgba(24, 120, 192, 0.35); color: var(--tp-blue-dark); }
.sim-progress-step.is-current { background: var(--tp-gradient); border-color: transparent; color: #fff; box-shadow: var(--tp-shadow-sm); }

/* En-tête d'étape */
.sim-step-head { margin: 0 0 1.15rem; }
.sim-step-kicker {
  display: inline-flex; align-items: center; background: var(--tp-ice); color: var(--tp-blue-dark);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
  border-radius: 999px; padding: 0.28rem 0.8rem;
}
.sim-step-head h3 { margin: 0.65rem 0 0.3rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; color: var(--tp-deep); }
.sim-step-count { display: block; font-size: 13px; color: var(--tp-muted); }

/* Note d'information & notes imposées */
.sim-reason {
  display: flex; gap: 0.65rem; align-items: flex-start;
  background: var(--tp-ice); border-left: 3px solid var(--tp-blue); border-radius: var(--tp-radius-sm);
  padding: 0.75rem 0.95rem; margin: 0 0 1.05rem; font-size: 13.5px;
}
.sim-reason svg { width: 17px; height: 17px; flex: none; color: var(--tp-blue); margin-top: 0.1rem; }
.sim-reason strong { color: var(--tp-deep); }
.sim-reason ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--tp-muted); }
.sim-reason li { margin: 0.15rem 0; line-height: 1.5; }
.sim-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm);
  padding: 0.7rem 0.9rem; margin: 0.9rem 0 0; font-size: 13.5px; color: var(--tp-muted); line-height: 1.5;
}
.sim-note svg { width: 16px; height: 16px; flex: none; color: var(--tp-blue); margin-top: 0.12rem; }
.sim-noscript {
  background: #fff6e6; border: 1px solid #ecc98a; border-radius: var(--tp-radius);
  padding: 1rem 1.2rem; color: #7a5200; font-size: 14.5px; line-height: 1.6;
}
.sim-noscript a { color: #7a5200; font-weight: 700; }

/* Grille de choix */
.sim-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 0.8rem; }
.sim-choice {
  position: relative; display: flex; align-items: center; gap: 0.8rem; text-align: left;
  background: var(--tp-ice-2); border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius);
  padding: 0.9rem 1rem; cursor: pointer; font: inherit; color: inherit; min-width: 0;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sim-choice:hover { border-color: var(--tp-blue); background: var(--tp-ice); box-shadow: var(--tp-shadow-sm); transform: translateY(-2px); }
.sim-choice:focus-visible { outline: none; box-shadow: var(--tp-ring); border-color: var(--tp-blue); }
.sim-choice-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; background: var(--tp-white);
  border: 1px solid var(--tp-border); color: var(--tp-blue); transition: color 0.18s ease, border-color 0.18s ease;
}
.sim-choice-ic svg { width: 20px; height: 20px; }
.sim-choice:hover .sim-choice-ic { color: var(--tp-blue-dark); border-color: rgba(24, 120, 192, 0.4); }
.sim-choice-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sim-choice-label { font-size: 15px; font-weight: 700; color: var(--tp-deep); }
.sim-choice-help { font-size: 12.5px; color: var(--tp-muted); line-height: 1.45; }
.sim-choice-cat { padding: 1rem 1.1rem; }
.sim-choice-cat .sim-choice-ic { width: 48px; height: 48px; background: var(--tp-ice); border-color: rgba(24, 120, 192, 0.25); }
.sim-choice-cat .sim-choice-ic svg { width: 23px; height: 23px; }
.sim-choice-cat .sim-choice-label { font-size: 16px; }
.sim-choice.is-disabled { opacity: 0.55; cursor: not-allowed; }
.sim-choice.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--tp-border); background: var(--tp-ice-2); }
.sim-choice-lock {
  position: absolute; top: 0.55rem; right: 0.6rem;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--tp-muted); background: var(--tp-white); border: 1px solid var(--tp-border-strong);
  border-radius: 999px; padding: 0.18rem 0.55rem;
}

/* Résultat */
.sim-result-head { margin: 0 0 1.1rem; }
.sim-result-id { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 0.6rem; }
.sim-result-head h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; color: var(--tp-deep); }
.sim-result-note {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.9rem 0 0;
  background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-left: 3px solid var(--tp-sky);
  border-radius: var(--tp-radius-sm); padding: 0.7rem 0.9rem; font-size: 13.5px; color: var(--tp-muted); line-height: 1.5;
}
.sim-result-note svg { width: 16px; height: 16px; flex: none; color: var(--tp-blue); margin-top: 0.12rem; }
.sim-code {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--tp-font); font-variant-numeric: tabular-nums;
  background: var(--tp-gradient); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: 0.05em;
  border-radius: var(--tp-radius-sm); padding: 0.32rem 0.65rem; box-shadow: var(--tp-shadow-sm);
}
.sim-code-lg { font-size: clamp(1rem, 2vw, 1.2rem); padding: 0.55rem 0.95rem; border-radius: var(--tp-radius); }
.sim-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 12px; font-weight: 800; border-radius: 999px; padding: 0.28rem 0.7rem; white-space: nowrap;
}
.sim-chip svg { width: 13px; height: 13px; flex: none; }
.sim-chip-ok { background: #e7f5ec; color: #177245; border: 1px solid rgba(23, 114, 69, 0.22); }
.sim-chip-warn { background: #fff6e6; color: #8a5a00; border: 1px solid rgba(138, 90, 0, 0.22); }
.sim-chip-mute { background: var(--tp-ice-2); color: var(--tp-muted); border: 1px solid var(--tp-border-strong); }

/* Résumé du parcours */
.sim-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem;
  margin: 1.15rem 0 0;
}
.sim-meta div { background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm); padding: 0.6rem 0.8rem; }
.sim-meta dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-muted); }
.sim-meta dd { margin: 0.2rem 0 0; font-size: 14px; font-weight: 700; color: var(--tp-deep); }

/* Schéma 3D */
.sim-schema3d { margin: 1.25rem 0 0; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-white); }
.sim-schema3d img { display: block; width: 100%; height: auto; }
.sim-schema3d figcaption { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; background: var(--tp-ice-2); border-top: 1px solid var(--tp-border); padding: 0.6rem 0.9rem; font-size: 13px; color: var(--tp-muted); }
.sim-schema3d-tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-blue); }
.sim-schema3d-tag svg { width: 14px; height: 14px; }
.sim-detail-fallback {
  display: flex; gap: 0.65rem; align-items: flex-start;
  border: 1.5px dashed var(--tp-border-strong); border-radius: var(--tp-radius);
  background: var(--tp-ice-2); padding: 0.9rem 1rem; margin: 1.25rem 0 0;
}
.sim-detail-fallback svg { width: 20px; height: 20px; flex: none; color: var(--tp-blue); margin-top: 0.1rem; }
.sim-detail-fallback p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sim-detail-fallback strong { color: var(--tp-deep); }
.sim-detail-fallback span { display: block; color: var(--tp-muted); margin-top: 0.15rem; }

/* Compositions APP / SBS */
.sim-comps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1.25rem 0 0; }
.sim-comp { background: var(--tp-white); border: 1.5px solid var(--tp-border); border-radius: var(--tp-radius); padding: 1rem 1.05rem; box-shadow: var(--tp-shadow-sm); }
.sim-comp-head { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin: 0 0 0.75rem; font-size: 12.5px; font-weight: 700; color: var(--tp-muted); }
.sim-comp-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; color: #fff;
  border-radius: var(--tp-radius-sm); padding: 0.24rem 0.6rem;
}
.sim-comp-badge-app { background: var(--tp-gradient); }
.sim-comp-badge-sbs { background: var(--tp-deep); }
.sim-comp-na { background: var(--tp-ice-2); border-style: dashed; box-shadow: none; }
.sim-comp-na-note { margin: 0; font-size: 13.5px; color: var(--tp-muted); line-height: 1.55; }
.sim-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sim-layers > li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.7rem;
  background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm);
  padding: 0.75rem 0.85rem; font-size: 13.5px; line-height: 1.5;
}
.sim-layer-n {
  flex: none; display: inline-flex; align-items: center; justify-content: center; align-self: center;
  width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--tp-blue); color: #fff;
  font-size: 11.5px; font-weight: 800;
}
.sim-layer-n { align-self: start !important; margin-top: 0.05rem; }
.sim-layer-body { min-width: 0; }
.sim-layer-role { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tp-blue-dark); line-height: 1.4; margin: 0.15rem 0 0.45rem; }
html[dir="rtl"] .sim-layer-role { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* Relevés */
.sim-rels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1.25rem 0 0; }
.sim-rel { background: var(--tp-ice-2); border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 0.8rem 0.95rem; }
.sim-rel p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--tp-text); }
.sim-rel-head { display: flex; align-items: center; gap: 0.5rem; font-size: 11.5px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-muted) !important; margin-bottom: 0.6rem !important; }
.sim-rel { background: var(--tp-white); box-shadow: var(--tp-shadow-sm); }
.sim-rel .sim-prods li { background: var(--tp-ice-2); }

/* v28 — liste des produits d'une couche (une ligne par produit, dans l'ordre de pose) */
.sim-prods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.sim-prods li {
  display: flex; align-items: center; gap: 0.45rem; min-width: 0;
  background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: 0.45rem;
  padding: 0.38rem 0.6rem; font-size: 13.5px; line-height: 1.4;
}
.sim-prod { min-width: 0; font-weight: 700; color: var(--tp-deep); overflow-wrap: anywhere; }
.sim-prod-plus { flex: none; width: 1.1rem; text-align: center; font-weight: 800; color: var(--tp-sky); }
.sim-prods li:first-child { padding-inline-start: calc(0.6rem + 1.1rem + 0.45rem); }
.sim-prod-note { margin: 0.45rem 0 0; font-size: 12.5px; color: var(--tp-muted); font-style: italic; }

/* v28 — sections du résultat */
.sim-sec { margin: 1.6rem 0 0; }
.sim-sec-title {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.8rem;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-blue-dark);
}
.sim-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--tp-border); }
html[dir="rtl"] .sim-sec-title { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sim-sec .sim-comps, .sim-sec .sim-rels, .sim-sec .sim-detail { margin-top: 0; }
.sim-sec .sim-schema3d { margin: 0; }

/* Protection + détail 2D */
.sim-detail { margin: 1.25rem 0 0; }
.sim-detail-protection { margin: 0 0 0.8rem; font-size: 14px; line-height: 1.55; color: var(--tp-text); }
.sim-detail-protection strong { color: var(--tp-deep); }
.sim-detail-fig { margin: 0; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-white); }
.sim-detail-fig img { display: block; width: 100%; height: auto; }
.sim-detail-fig figcaption { background: var(--tp-ice-2); border-top: 1px solid var(--tp-border); padding: 0.6rem 0.9rem; font-size: 13px; color: var(--tp-muted); }
.sim-detail-empty {
  display: flex; gap: 0.65rem; align-items: center;
  border: 1.5px dashed var(--tp-border-strong); border-radius: var(--tp-radius); background: var(--tp-ice-2); padding: 1rem 1.1rem;
}
.sim-detail-empty svg { width: 22px; height: 22px; flex: none; color: var(--tp-blue); }
.sim-detail-empty p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sim-detail-empty strong { color: var(--tp-deep); }
.sim-detail-empty span { display: block; color: var(--tp-muted); margin-top: 0.15rem; }
.sim-result-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--tp-border); }
.sim-result-actions .tp-btn svg { width: 15px; height: 15px; }
.sim-result-disclaimer { margin: 1.05rem 0 0; font-size: 12.5px; color: var(--tp-muted); line-height: 1.6; }

/* Statistiques héros */
.tp-hero-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.tp-hero-stats span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.88);
}
.tp-hero-stats strong { font-size: 15px; font-weight: 800; color: #fff; }

/* « Comment ça marche » */
.sim-how-grid { margin-top: 1.6rem; }
.sim-how-card { position: relative; padding: 1.35rem 1.4rem; }
.sim-how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 999px; background: var(--tp-gradient); color: #fff;
  font-size: 15px; font-weight: 800; margin-bottom: 0.85rem; box-shadow: var(--tp-shadow-sm);
}
.sim-how-card h3 { margin: 0 0 0.4rem; font-size: 16.5px; letter-spacing: -0.01em; color: var(--tp-deep); }
.sim-how-card p { margin: 0; font-size: 14px; color: var(--tp-muted); line-height: 1.6; }

/* Catalogue : filtres + recherche */
.sim-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.4rem 0 1.1rem; }
.sim-search { position: relative; flex: 1 1 260px; min-width: 220px; }
.sim-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--tp-muted); pointer-events: none; }
.sim-search input {
  width: 100%; font: inherit; font-size: 14px; color: var(--tp-text);
  background: var(--tp-white); border: 1px solid var(--tp-border-strong); border-radius: var(--tp-radius-sm);
  padding: 0.68rem 0.9rem 0.68rem 2.4rem; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sim-search input::placeholder { color: var(--tp-muted); }
.sim-search input:focus { outline: none; border-color: var(--tp-blue); box-shadow: var(--tp-ring); }
.sim-filters select {
  font: inherit; font-size: 14px; color: var(--tp-text); cursor: pointer;
  background: var(--tp-white); border: 1px solid var(--tp-border-strong); border-radius: var(--tp-radius-sm);
  padding: 0.68rem 0.9rem; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sim-filters select:focus { outline: none; border-color: var(--tp-blue); box-shadow: var(--tp-ring); }

/* Catalogue : tableau */
.sim-table-wrap {
  position: relative; /* v28 : contient les éléments masqués (évite un débordement sur mobile) */
  background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm); overflow-x: auto;
}
.sim-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.sim-table thead th {
  background: var(--tp-ice); color: var(--tp-blue-dark);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--tp-border-strong); white-space: nowrap;
}
.sim-table tbody th { font-weight: 600; color: var(--tp-text); text-align: left; }
.sim-table tbody tr { border-top: 1px solid var(--tp-border); transition: background 0.15s ease; }
.sim-table tbody tr:first-child { border-top: 0; }
.sim-table tbody tr:hover { background: var(--tp-ice-2); }
.sim-table td, .sim-table tbody th { padding: 0.65rem 0.9rem; vertical-align: middle; }
.sim-table tbody td { color: var(--tp-muted); font-size: 13.5px; white-space: nowrap; }
.sim-row-cta { text-align: right; }
.sim-row-cta .tp-btn { white-space: nowrap; }
.sim-2d {
  display: inline-flex; align-items: center; font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0.22rem 0.6rem; white-space: nowrap;
}
.sim-2d-ok { background: var(--tp-ice); color: var(--tp-blue-dark); border: 1px solid rgba(24, 120, 192, 0.3); }
.sim-2d-todo { background: var(--tp-ice-2); color: var(--tp-muted); border: 1px dashed var(--tp-border-strong); font-weight: 600; }
.sim-3d-badge {
  display: inline-flex; align-items: center; margin-left: 0.4rem;
  background: var(--tp-gradient); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em;
  border-radius: 4px; padding: 0.14rem 0.32rem; vertical-align: middle;
}
.sim-table-note { margin: 0.9rem 0 0; font-size: 13px; color: var(--tp-muted); }

/* FAQ du simulateur */
.sim-faq { display: grid; gap: 0.7rem; max-width: 840px; margin-inline: auto; }
.sim-faq details { background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow-sm); overflow: hidden; }
.sim-faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; color: var(--tp-deep);
  padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.18s ease;
}
.sim-faq summary::-webkit-details-marker { display: none; }
.sim-faq summary::after { content: "+"; flex: none; font-weight: 800; font-size: 18px; color: var(--tp-blue); transition: transform 0.18s ease; }
.sim-faq details[open] summary::after { transform: rotate(45deg); }
.sim-faq summary:hover { color: var(--tp-blue-dark); }
.sim-faq-a p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--tp-muted); font-size: 14.5px; line-height: 1.65; }
.sim-faq-a a { color: var(--tp-blue-dark); font-weight: 700; }

/* Bande CTA finale */
.sim-cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem;
  background: var(--tp-gradient), var(--tp-trame-dots);
  background-image: var(--tp-trame-dots), var(--tp-gradient);
  border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-lg);
  padding: clamp(1.5rem, 3.4vw, 2.3rem) clamp(1.4rem, 3.2vw, 2.4rem); color: #fff;
}
.sim-cta-band h2 { margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2.8vw, 1.85rem); letter-spacing: -0.02em; color: #fff; }
.sim-cta-band p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.sim-cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Responsive simulateur */
@media (max-width: 1024px) { .sim-app { grid-template-columns: 280px minmax(0, 1fr); } }
@media (max-width: 899px) {
  .sim-app { grid-template-columns: 1fr; }
  .sim-rail { position: static; }
  .sim-rail-help { display: none; }
}
@media (max-width: 640px) {
  .sim-comps, .sim-rels { grid-template-columns: 1fr; }
  .sim-choice { padding: 0.8rem 0.85rem; }
  .sim-progress-step { font-size: 11px; padding: 0.26rem 0.6rem; }
  .sim-row-cta .tp-btn { padding-inline: 0.7rem; }
  .tp-hero-stats span { width: 100%; justify-content: flex-start; }
}

/* Impression : seul le résultat du simulateur sort */
@media print {
  body * { visibility: hidden !important; }
  .sim-result, .sim-result * { visibility: visible !important; }
  .sim-result { position: absolute; top: 0; left: 0; width: 100%; padding: 1rem; }
  .sim-result-actions, .sim-result-disclaimer { display: none !important; }
}

/* Accessibilité mouvement */
@media (prefers-reduced-motion: reduce) {
  .sim-choice, .sim-choice-ic, .sim-progress-step, .sim-faq summary::after, .sim-table tbody tr { transition: none !important; }
  .sim-choice:hover { transform: none; }
}

/* ==========================================================================
   30. Catalogue produits & fiches produits — design moderne (v8)
   ========================================================================== */
.tp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tp-dropdown-wide > .tp-dropdown-all {
  grid-column: 1 / -1; margin-bottom: 0.4rem; font-weight: 700; color: var(--tp-blue);
  background: var(--tp-ice); border-radius: 0.55rem;
}

/* Héros catalogue */
.tp-cat-hero-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.tp-cat-hero-stats span {
  display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.5rem 0.95rem;
  border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85); font-size: 13.5px; backdrop-filter: blur(6px);
}
.tp-cat-hero-stats strong { color: #fff; font-size: 15px; }

/* Barre d'outils (onglets + recherche) */
.tp-cat-section { padding-top: 2.2rem; }
.tp-cat-toolbar {
  position: sticky; top: 76px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.7rem; margin-bottom: 1rem;
  background: rgba(255,255,255,0.86); backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--tp-border); border-radius: 1rem; box-shadow: var(--tp-shadow-md);
}
.tp-cat-tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tp-cat-tabs::-webkit-scrollbar { display: none; }
.tp-cat-tab, .tp-chip-filter {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: 0.7rem; border: 0; cursor: pointer;
  background: transparent; color: var(--tp-muted); font: 600 13.5px/1.2 var(--tp-font);
  transition: background .2s ease, color .2s ease;
}
.tp-cat-tab span, .tp-chip-filter span {
  min-width: 1.5rem; padding: 0.1rem 0.45rem; border-radius: 999px; text-align: center;
  background: var(--tp-ice); color: var(--tp-blue); font-size: 11.5px; font-weight: 700;
}
.tp-cat-tab:hover, .tp-chip-filter:hover { background: var(--tp-ice-2); color: var(--tp-text); }
.tp-cat-tab.is-active, .tp-chip-filter.is-active { background: var(--tp-deep); color: #fff; }
.tp-cat-tab.is-active span, .tp-chip-filter.is-active span { background: rgba(255,255,255,0.16); color: #fff; }
.tp-cat-search {
  display: flex; align-items: center; gap: 0.5rem; flex: 1 1 220px; max-width: 320px;
  padding: 0 0.85rem; height: 42px; border-radius: 0.7rem;
  background: var(--tp-ice-2); border: 1px solid var(--tp-border); color: var(--tp-muted);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tp-cat-search:focus-within { border-color: var(--tp-blue); box-shadow: var(--tp-ring); background: #fff; }
.tp-cat-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 14px var(--tp-font); color: var(--tp-text); }
.tp-cat-count { font-size: 13px; color: var(--tp-muted); margin: 0 0 1.2rem 0.2rem; }
.tp-cat-empty { text-align: center; padding: 3rem 1rem; color: var(--tp-muted); border: 1px dashed var(--tp-border-strong); border-radius: 1rem; }
@media (max-width: 899px) { .tp-cat-toolbar { top: 64px; } .tp-cat-search { max-width: none; } }

/* Grille de cartes */
.tp-pgrid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.tp-pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--tp-border); border-radius: 1.1rem;
  box-shadow: var(--tp-shadow-sm);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.tp-pcard:hover { transform: translateY(-5px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24,120,192,0.3); }
.tp-pcard[hidden] { display: none; }
.tp-pcard-media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #eef4fa 60%, #e1ebf5 100%);
}
.tp-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tp-pcard:hover .tp-pcard-media img { transform: scale(1.06); }
.tp-pcard-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(7,42,74,0.28), transparent); pointer-events: none; }
.tp-pcard-cat {
  position: absolute; z-index: 2; top: 0.85rem; left: 0.85rem;
  padding: 0.32rem 0.7rem; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.92); color: var(--tp-deep); box-shadow: var(--tp-shadow-sm); backdrop-filter: blur(6px);
}
.tp-pcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.3rem; }
.tp-pcard-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tp-blue); }
.tp-pcard h3 { margin-top: 0.35rem; font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
.tp-pcard h3 a { color: var(--tp-deep); }
.tp-pcard h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.tp-pcard-desc { margin-top: 0.55rem; font-size: 14px; color: var(--tp-muted); line-height: 1.6; }
.tp-pcard-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.95rem 0 0; padding: 0; list-style: none; }
.tp-pcard-chips li { padding: 0.22rem 0.6rem; border-radius: 0.45rem; font-size: 12px; font-weight: 600; background: var(--tp-ice-2); color: #3d5570; border: 1px solid var(--tp-border); }
.tp-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 1.15rem; }
.tp-pcard-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 14px; color: var(--tp-blue); }
.tp-pcard-link svg { transition: transform .2s ease; }
.tp-pcard:hover .tp-pcard-link svg { transform: translateX(4px); }
.tp-pcard-pdf {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.7rem; border-radius: 0.55rem; font-size: 12.5px; font-weight: 700;
  color: #c0182b; background: rgba(196,18,32,0.06); transition: background .2s ease;
}
.tp-pcard-pdf:hover { background: rgba(196,18,32,0.12); }
.tp-pcard-pdf svg { width: 15px; height: 15px; }

/* Bloc d'aide */
.tp-cat-help {
  display: grid; gap: 1.2rem; align-items: center; margin-top: 3rem; padding: 1.6rem 1.8rem;
  border-radius: 1.2rem; background: var(--tp-gradient-soft); border: 1px solid var(--tp-border);
}
@media (min-width: 900px) { .tp-cat-help { grid-template-columns: auto 1fr auto; } }
.tp-cat-help-ico { width: 56px; height: 56px; border-radius: 1rem; display: grid; place-items: center; background: var(--tp-gradient); color: #fff; box-shadow: var(--tp-shadow-md); }
.tp-cat-help-ico svg { width: 26px; height: 26px; }
.tp-cat-help h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.tp-cat-help p { margin-top: 0.3rem; color: var(--tp-muted); font-size: 14.5px; }
.tp-cat-help-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---- Fiches produits détaillées : rendu modernisé ---- */
.tp-product { border-radius: 1.1rem; transition: box-shadow .28s ease, transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease; }
.tp-product:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24,120,192,0.28); }
.tp-product-head { background: radial-gradient(120% 120% at 0% 0%, #ffffff 0%, #f1f6fb 55%, #e8f0f8 100%); }
.tp-product-head img { border-radius: 0.9rem; box-shadow: var(--tp-shadow-md); border: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tp-product:hover .tp-product-head img { transform: scale(1.03); }
.tp-product-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.tp-product-specs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.8rem; padding: 0; list-style: none; }
.tp-product-specs li { padding: 0.22rem 0.6rem; border-radius: 0.45rem; font-size: 12px; font-weight: 600; background: #fff; color: #3d5570; border: 1px solid var(--tp-border); }
.tp-product-specs li.is-key { background: var(--tp-deep); color: #fff; border-color: var(--tp-deep); }
.tp-product-body { display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .tp-product-body { grid-template-columns: 1fr 1fr; } }
.tp-product-body .tp-product-block + .tp-product-block { margin-top: 0; }
.tp-product-block { padding: 1.05rem 1.15rem; border-radius: 0.85rem; background: var(--tp-ice-2); border: 1px solid var(--tp-border); }
.tp-product-block:only-child { grid-column: 1 / -1; }
.tp-product-block > ul, .tp-product-block > ol { color: #35485d; font-size: 14.5px; }
.tp-product-quote { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 13.5px; }

/* Mode grille (pages avec 3 références ou plus) */
.tp-stack.tp-stack--grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tp-stack--grid > .tp-product { display: flex; flex-direction: column; margin: 0; }
.tp-stack--grid > .tp-product[hidden] { display: none; }
.tp-stack--grid .tp-product-head { grid-template-columns: 112px 1fr !important; gap: 1.1rem; padding: 1.25rem; align-items: start; }
.tp-stack--grid .tp-product-head img { aspect-ratio: 1; }
.tp-stack--grid .tp-product-head h2 { font-size: 1.15rem; }
.tp-stack--grid .tp-product-body { grid-template-columns: 1fr; padding: 1.15rem 1.25rem 1.3rem; flex: 1; align-content: start; }
.tp-stack--grid .tp-product-actions { margin-top: 0.9rem; }
.tp-stack--grid .tp-product-actions .tp-btn { font-size: 12.5px; }
.tp-stack--grid .tp-product-block { padding: 0.9rem 1rem; }
.tp-stack--grid .tp-product-block p { font-size: 13.8px; }
.tp-stack--grid .tp-product-block.is-collapsible p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-stack--grid .tp-product-block.is-expanded p { -webkit-line-clamp: unset; display: block; }
.tp-more { margin-top: 0.4rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--tp-blue); font: 700 12.5px var(--tp-font); }
@media (max-width: 420px) { .tp-stack.tp-stack--grid { grid-template-columns: 1fr; } .tp-stack--grid .tp-product-head { grid-template-columns: 1fr !important; } }
.tp-ptools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.3rem; position: sticky; top: 76px; z-index: 20;
  padding: .6rem; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); border: 1px solid var(--tp-border); border-radius: 1rem; box-shadow: var(--tp-shadow-md); }
.tp-ptools-filters { display: flex; flex-wrap: wrap; gap: .3rem; }
@media (max-width: 899px) { .tp-ptools { top: 64px; position: static; } }
.tp-pcard-media:not(.is-photo) img { object-fit: contain; padding: 1.1rem 1.1rem 0.6rem; mix-blend-mode: multiply; }
.tp-pcard-media:not(.is-ill) { background: #fff; }
.tp-pcard-media:not(.is-ill)::after { display: none; }
.tp-pcard-media.is-ill { display: grid; place-items: center; background: var(--tp-gradient); color: rgba(255,255,255,0.9); }
.tp-pcard-media.is-ill::after { inset: 0; height: auto; background: var(--tp-trame-lines); }
.tp-pcard-ill { width: 34%; height: auto; max-width: 110px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tp-pcard:hover .tp-pcard-ill { transform: scale(1.08) rotate(-3deg); }
.tp-pcard-media + .tp-pcard-body { border-top: 1px solid var(--tp-border); }
@media (min-width: 1100px) { .tp-cat-toolbar { flex-wrap: nowrap; } .tp-cat-search { max-width: 260px; } }
.tp-stack--grid .tp-product-head { grid-template-columns: 96px minmax(0, 1fr) !important; }
.tp-stack--grid .tp-product-head > div { min-width: 0; }
.tp-stack--grid .tp-product-head h2 { overflow-wrap: anywhere; }
.tp-stack--grid .tp-product-head .tp-product-sub { font-size: 10.5px; letter-spacing: 0.08em; }
.tp-stack--grid .tp-product-actions { flex-direction: column; align-items: stretch; }
.tp-stack--grid .tp-product-actions .tp-btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; }
.tp-stack--grid .tp-product-specs { margin-top: 0.6rem; }

/* 31. TP Assistant — correctifs d'affichage des documents (v8) */
.tp-tr2-attach { grid-template-columns: minmax(0, 1fr); width: 88%; }
.tp-tr2-doc { min-width: 0; }
.tp-tr2-doc-info strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-tr2-msg a { text-decoration: underline; text-underline-offset: 2px; }
.tp-tr2-typing[data-label] { align-items: center; }
.tp-tr2-typing[data-label]::after { content: attr(data-label); margin-left: 0.4rem; font-size: 12px; color: var(--tp-muted); }
.tp-tr2-msg ul, .tp-tr2-msg ol { margin: 0.35rem 0 0.2rem 1.1rem; padding: 0; }
.tp-tr2-msg li + li { margin-top: 0.2rem; }
.tp-tr2-msg p + p { margin-top: 0.5rem; }

/* ==========================================================================
   32. TP Assistant — habillage au logo Technopure (v10)
   ========================================================================== */
/* Bouton flottant : logo dans un médaillon blanc + bulle + étiquette */
.tp-tr2-fab.tp-tr2-fab--brand {
  width: 66px; height: 66px; background: #fff; color: var(--tp-blue);
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(24,120,192,.55), 0 14px 32px rgba(7,42,74,.28);
}
.tp-tr2-fab--brand img { width: 46px; height: auto; display: block; }
.tp-tr2-fab-badge {
  position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; border-radius: 999px;
  display: grid; place-items: center; background: var(--tp-gradient); color: #fff;
  border: 2px solid #fff; box-shadow: 0 3px 8px rgba(7,42,74,.25);
}
.tp-tr2-fab-badge svg { width: 12px !important; height: 12px !important; }
.tp-tr2-fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; font: 700 13px/1 var(--tp-font);
  background: var(--tp-deep); color: #fff; box-shadow: var(--tp-shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.tp-tr2-fab--brand:hover .tp-tr2-fab-label { opacity: 1; transform: translateY(-50%) translateX(-3px); }
@media (max-width: 600px) { .tp-tr2-fab-label { display: none; } .tp-tr2-fab.tp-tr2-fab--brand { width: 58px; height: 58px; } .tp-tr2-fab--brand img { width: 40px; } }

/* Info-bulle d'accueil */
.tp-tr2-tip { display: flex; align-items: center; gap: .7rem; }
.tp-tr2-tip > img { width: 38px; height: 38px; object-fit: contain; flex: none; background: #fff; border-radius: 10px; padding: 3px; border: 1px solid var(--tp-border); }
.tp-tr2-tip > span strong { display: block; color: var(--tp-deep); }

/* Fenêtre */
.tp-tr2-panel.tp-tr2-panel--brand {
  bottom: 6.6rem; width: min(410px, calc(100vw - 1.5rem)); height: min(620px, calc(100vh - 8.5rem));
  border-radius: 1.4rem; border: 0; box-shadow: 0 30px 80px rgba(7,42,74,.30), 0 0 0 1px rgba(7,42,74,.06);
}
.tp-tr2-panel--brand .tp-tr2-head {
  position: relative; padding: 1.1rem 1.15rem 1.25rem; gap: .85rem;
  background: radial-gradient(120% 140% at 0% 0%, #1878c0 0%, #0d5e9b 45%, #072a4a 100%);
}
.tp-tr2-panel--brand .tp-tr2-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--tp-trame-dots); background-size: 18px 18px; opacity: .35;
}
.tp-tr2-panel--brand .tp-tr2-head > * { position: relative; z-index: 1; }
.tp-tr2-panel--brand .tp-tr2-avatar {
  width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.tp-tr2-panel--brand .tp-tr2-avatar img { width: 42px; height: auto; }
.tp-tr2-panel--brand .tp-tr2-head-info strong { font-size: 16px; letter-spacing: -.01em; }
.tp-tr2-panel--brand .tp-tr2-head-info span { font-size: 11.5px; margin-top: .15rem; }

.tp-tr2-panel--brand .tp-tr2-body { background: linear-gradient(180deg, #eef4fa 0%, #f7fafd 160px); padding: 1.15rem 1rem 1rem; }
/* Bulles du bot avec le logo */
.tp-tr2-panel--brand .tp-tr2-msg--bot {
  position: relative; margin-left: 38px; max-width: calc(100% - 46px);
  border-radius: .35rem 1.1rem 1.1rem 1.1rem; box-shadow: 0 1px 2px rgba(7,42,74,.05);
}
.tp-tr2-panel--brand .tp-tr2-msg--bot::before {
  content: ""; position: absolute; left: -38px; top: 0; width: 30px; height: 30px; border-radius: 10px;
  background: #fff url("../img/technopure-logo.png") center / 24px auto no-repeat;
  border: 1px solid var(--tp-border); box-shadow: 0 1px 3px rgba(7,42,74,.08);
}
.tp-tr2-panel--brand .tp-tr2-msg--bot + .tp-tr2-msg--bot::before,
.tp-tr2-panel--brand .tp-tr2-sources::before { display: none; }
.tp-tr2-panel--brand .tp-tr2-sources { margin-left: 38px; background: transparent; border: 0; box-shadow: none; padding: .1rem .2rem; }
.tp-tr2-panel--brand .tp-tr2-msg--user { border-radius: 1.1rem .35rem 1.1rem 1.1rem; box-shadow: 0 4px 12px rgba(24,120,192,.22); }
.tp-tr2-panel--brand .tp-tr2-attach, .tp-tr2-panel--brand .tp-tr2-sim { margin-left: 38px; width: calc(100% - 46px); }
.tp-tr2-panel--brand .tp-tr2-typing { margin-left: 38px; }
.tp-tr2-panel--brand .tp-tr2-msg--bot ul { list-style: none; padding-left: 0; }
.tp-tr2-panel--brand .tp-tr2-msg--bot li { position: relative; padding-left: .95rem; }
.tp-tr2-panel--brand .tp-tr2-msg--bot li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--tp-blue); }

/* Suggestions & saisie */
.tp-tr2-panel--brand .tp-tr2-suggest { background: #f7fafd; padding: .2rem 1rem .7rem; gap: .4rem; }
.tp-tr2-panel--brand .tp-tr2-suggest button { border-radius: 999px; font-size: 12px; padding: .38rem .75rem; background: #fff; }
.tp-tr2-panel--brand .tp-tr2-foot { padding: .75rem .8rem; gap: .5rem; border-top: 1px solid var(--tp-border); }
.tp-tr2-panel--brand .tp-tr2-foot input { border-radius: 999px; background: #f3f7fb; padding-left: 1.05rem; }
.tp-tr2-panel--brand .tp-tr2-foot input:focus { background: #fff; }
.tp-tr2-panel--brand .tp-tr2-send { border-radius: 999px; }
.tp-tr2-panel--brand .tp-tr2-note { font-size: 10.5px; text-align: center; padding: .35rem 1rem .6rem; background: #fff; }
.tp-tr2-panel--brand .tp-tr2-note a { color: var(--tp-blue); font-weight: 700; }
@media (max-width: 600px) {
  .tp-tr2-panel.tp-tr2-panel--brand { right: .5rem; left: .5rem; width: auto; bottom: 5.4rem; height: calc(100vh - 7rem); border-radius: 1.1rem; }
}
.tp-tr2-panel--brand .tp-tr2-suggest.is-collapsed { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: .5rem; }
.tp-tr2-panel--brand .tp-tr2-suggest.is-collapsed::-webkit-scrollbar { display: none; }
.tp-tr2-panel--brand .tp-tr2-suggest.is-collapsed button { flex: none; }

/* ==========================================================================
   33. Version arabe (RTL) — html[dir="rtl"]
   ========================================================================== */
html[dir="rtl"] body { font-family: "Tajawal", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif; line-height: 1.8; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0 !important; line-height: 1.35; }
html[dir="rtl"] * { letter-spacing: normal; }
html[dir="rtl"] .tp-pill, html[dir="rtl"] .tp-pcard-sub, html[dir="rtl"] .tp-product-sub, html[dir="rtl"] .tp-dropdown-label,
html[dir="rtl"] .tp-hero-badge, html[dir="rtl"] .tp-product-body h3, html[dir="rtl"] .tp-footer h3 { text-transform: none !important; letter-spacing: 0 !important; }
html[dir="rtl"] .tp-flip { transform: scaleX(-1); }
html[dir="rtl"] .tp-hero-overlay { transform: scaleX(-1); }
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
html[dir="rtl"] a[href^="tel:"] { direction: ltr; }
html[dir="rtl"] .tp-logo-text { direction: ltr; }
html[dir="rtl"] .tp-doc-group-title { padding-left: 0; padding-right: .9rem; border-left: 0; border-right: 3px solid var(--tp-blue); }
html[dir="rtl"] .tp-prose ul.tp-prose-list li::before { margin-top: 11px; }
html[dir="rtl"] .tp-cat-tab span, html[dir="rtl"] .tp-chip-filter span { margin: 0; }
html[dir="rtl"] .tp-pcard-cat { left: auto; right: .85rem; }
html[dir="rtl"] .tp-pcard:hover .tp-pcard-link svg { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .tp-pcard-link svg { transform: scaleX(-1); }
html[dir="rtl"] .tp-card-media .tp-card-tag { left: auto; right: 1.1rem; }
html[dir="rtl"] .tp-dropdown::before { left: auto; right: 24px; }
html[dir="rtl"] .tp-dropdown a:hover { padding-left: .75rem; padding-right: .95rem; }
html[dir="rtl"] .tp-skip-link { left: auto; right: 1rem; }
/* Bouton flottant et fenêtre de chat à gauche en arabe */
html[dir="rtl"] .tp-tr2-fab { right: auto; left: 1.5rem; }
html[dir="rtl"] .tp-tr2-panel { right: auto; left: 1.5rem; }
html[dir="rtl"] .tp-tr2-tip { right: auto; left: calc(1.5rem + 72px); }
html[dir="rtl"] .tp-tr2-fab-badge { right: auto; left: -4px; }
html[dir="rtl"] .tp-tr2-fab-label { right: auto; left: calc(100% + 12px); }
html[dir="rtl"] .tp-tr2-fab--brand:hover .tp-tr2-fab-label { transform: translateY(-50%) translateX(3px); }
html[dir="rtl"] .tp-back-top { left: auto; right: 1.5rem; }
html[dir="rtl"] .tp-tr2-tip-close { right: auto; left: 7px; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-msg--bot { margin-left: 0; margin-right: 38px; border-radius: 1.1rem .35rem 1.1rem 1.1rem; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-msg--bot::before { left: auto; right: -38px; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-msg--user { border-radius: .35rem 1.1rem 1.1rem 1.1rem; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-attach, html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-sim,
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-typing, html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-sources { margin-left: 0; margin-right: 38px; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-msg--bot li { padding-left: 0; padding-right: .95rem; }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-msg--bot li::before { left: auto; right: 0; }
html[dir="rtl"] .tp-tr2-sim-cta svg, html[dir="rtl"] .tp-tr2-send svg { transform: scaleX(-1); }
html[dir="rtl"] .tp-tr2-panel--brand .tp-tr2-foot input { padding-left: .8rem; padding-right: 1.05rem; }
html[dir="rtl"] .tp-tr2-msg ul { padding-left: 0; padding-right: 1.1rem; }
@media (max-width: 600px) { html[dir="rtl"] .tp-tr2-panel.tp-tr2-panel--brand { left: .5rem; right: .5rem; } }
a[href^="tel:"] { white-space: nowrap; }

/* ==========================================================================
   34. Centre de documentation (tp-docs.js)
   ========================================================================== */
.tp-dnav { position: sticky; top: 66px; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--tp-border); }
.tp-dnav-inner { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .55rem; }
.tp-dnav-inner::-webkit-scrollbar { display: none; }
.tp-dnav-link { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; color: var(--tp-muted); font: 600 14px/1.2 var(--tp-font); text-decoration: none; transition: background .2s, color .2s; }
.tp-dnav-link:hover { background: var(--tp-ice); color: var(--tp-text); }
.tp-dnav-link.is-active { background: var(--tp-deep); color: #fff; }
.tp-dnav-count { padding: .1rem .5rem; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11.5px; }

.tp-docs .tp-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.tp-docs section.is-empty, .tp-docs .tp-doc-group.is-empty, .tp-docs .tp-dgrid.is-empty { display: none; }
.tp-dtools { position: relative; display: grid; gap: .85rem; margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); background: #fff; box-shadow: 0 10px 30px rgba(7,42,74,.06); }
.tp-dtools-row { display: flex; gap: .75rem; align-items: center; }
.tp-dsearch { max-width: none; flex: 1 1 auto; height: 46px; }
.tp-dsearch svg { width: 18px; height: 18px; flex: none; }
.tp-dview { display: flex; padding: 3px; gap: 2px; border-radius: .7rem; background: var(--tp-ice-2); border: 1px solid var(--tp-border); }
.tp-dview button { width: 40px; height: 38px; border: 0; border-radius: .55rem; background: transparent; color: var(--tp-muted); cursor: pointer; display: grid; place-items: center; }
.tp-dview button svg { width: 18px; height: 18px; }
.tp-dview button.is-active { background: #fff; color: var(--tp-blue); box-shadow: 0 1px 4px rgba(7,42,74,.12); }
.tp-dchips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tp-dchips--org .tp-chip-filter { padding: .4rem .75rem; font-size: 12.5px; background: var(--tp-ice-2); }
.tp-dchips--org .tp-chip-filter.is-active { background: var(--tp-blue); }
.tp-dchips-label { font: 700 12px var(--tp-font); text-transform: uppercase; letter-spacing: .06em; color: var(--tp-muted); margin-inline-end: .25rem; }
.tp-dtools .tp-cat-count { margin: 0; font-size: 13px; color: var(--tp-muted); }

.tp-docs .tp-doc-group { margin-top: 2.25rem; }
.tp-docs .tp-doc-group:first-of-type { margin-top: 0; }
.tp-docs .tp-doc-group-title { display: flex; align-items: center; gap: .6rem; border: 0; padding: 0; margin-bottom: 1rem; font-size: 1.15rem; }
.tp-docs .tp-doc-group-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tp-blue); box-shadow: 0 0 0 4px var(--tp-ice); }

.tp-dgrid.tp-doc-list, .tp-dgrid.tp-doc-list--2col { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.tp-dcard.tp-doc-item { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.15rem; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); background: #fff; box-shadow: 0 1px 2px rgba(7,42,74,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.tp-dcard.tp-doc-item::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--dc), transparent); opacity: .85; }
.tp-dcard.tp-doc-item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(7,42,74,.12); border-color: var(--tp-border-strong); }
.tp-dcard[hidden] { display: none !important; }
.tp-dcard--fiches { --dc: #1878c0; --dcb: #e8f2fb; }
.tp-dcard--cahiers { --dc: #0a3a66; --dcb: #e6eef6; }
.tp-dcard--certificats { --dc: #4fa3dd; --dcb: #eaf4fb; }
.tp-dcard-ico { position: relative; flex: none; width: 48px; height: 56px; display: grid; place-items: center; border-radius: .7rem; background: var(--dcb, var(--tp-ice)); color: var(--dc, var(--tp-blue)); }
.tp-dcard-ico svg { width: 26px; height: 26px; }
.tp-dcard-ico b { position: absolute; bottom: -6px; inset-inline-end: -8px; padding: .12rem .38rem; border-radius: .35rem; background: var(--dc, var(--tp-blue)); color: #fff; font: 800 9.5px/1.2 var(--tp-font); letter-spacing: .04em; }
.tp-dcard-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1; }
.tp-dcard-title { font: 700 15.5px/1.3 var(--tp-font); color: var(--tp-text); overflow-wrap: anywhere; }
.tp-dcard-sub { font-size: 13px; color: var(--tp-muted); }
.tp-dcard-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.tp-dcard-meta em { font-style: normal; font: 600 11.5px/1 var(--tp-font); padding: .3rem .5rem; border-radius: 999px; }
.tp-dcard-meta em:empty { display: none; }
.tp-dcard-org { background: var(--dcb); color: var(--dc); }
.tp-dcard-size { background: var(--tp-ice-2); color: var(--tp-muted); }
.tp-dcard-new { background: var(--tp-blue); color: #fff; }
.tp-dcard-actions { display: flex; gap: .45rem; margin-top: auto; }
.tp-dbtn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 38px; padding: 0 .8rem; border-radius: .6rem; border: 1px solid var(--tp-border-strong); background: #fff; color: var(--tp-text); font: 600 13px var(--tp-font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tp-dbtn svg { width: 16px; height: 16px; flex: none; }
.tp-dbtn:hover { border-color: var(--tp-blue); color: var(--tp-blue); }
.tp-dbtn--main { flex: 1; background: var(--tp-deep); border-color: var(--tp-deep); color: #fff; }
.tp-dbtn--main:hover { background: var(--tp-blue); border-color: var(--tp-blue); color: #fff; }
.tp-dbtn--icon { width: 38px; padding: 0; }
.tp-dbtn.is-done { color: var(--tp-blue); border-color: var(--tp-blue); background: var(--tp-ice); }

/* Vue liste */
.tp-docs--list .tp-dgrid.tp-doc-list, .tp-docs--list .tp-dgrid.tp-doc-list--2col { grid-template-columns: 1fr; gap: .6rem; }
.tp-docs--list .tp-dcard.tp-doc-item { flex-direction: row; align-items: center; padding: .8rem 1rem; }
.tp-docs--list .tp-dcard-ico { width: 40px; height: 46px; }
.tp-docs--list .tp-dcard-body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .9rem; }
.tp-docs--list .tp-dcard-title { flex: 1 1 220px; }
.tp-docs--list .tp-dcard-meta { margin: 0; }
.tp-docs--list .tp-dcard-actions { margin: 0; }
.tp-docs--list .tp-dbtn--main { flex: none; }

/* Nouveaux documents */
.tp-dnew { background: linear-gradient(180deg, var(--tp-ice), #fff); }
.tp-dnew .tp-pill { background: var(--tp-blue); color: #fff; }

/* Lecteur PDF */
.tp-dviewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 2rem; background: rgba(4,20,38,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.tp-dviewer.is-open { opacity: 1; }
.tp-dviewer[hidden] { display: none; }
.tp-dviewer-box { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(88vh, 100%); border-radius: var(--tp-radius-lg); background: #fff; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(12px) scale(.98); transition: transform .2s ease; }
.tp-dviewer.is-open .tp-dviewer-box { transform: none; }
.tp-dviewer header { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--tp-border); --dc: var(--tp-blue); --dcb: var(--tp-ice); }
.tp-dviewer header .tp-dcard-ico { width: 34px; height: 40px; }
.tp-dviewer header .tp-dcard-ico svg { width: 20px; height: 20px; }
.tp-dviewer header strong { flex: 1; min-width: 0; font: 700 15px var(--tp-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-dviewer header .tp-dbtn--main { flex: none; }
.tp-dviewer iframe { flex: 1; width: 100%; border: 0; background: #525659; }

@media (max-width: 560px) { .tp-dnav { top: 56px; } }
@media (max-width: 640px) {
  .tp-dtools { padding: .75rem; }
  .tp-dview { display: none; }
  .tp-dchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; padding-inline: .25rem; }
  .tp-dgrid.tp-doc-list, .tp-dgrid.tp-doc-list--2col { grid-template-columns: 1fr; }
  .tp-dviewer { padding: 0; }
  .tp-dviewer-box { height: 100%; border-radius: 0; }
}
html[dir="rtl"] .tp-dcard.tp-doc-item::after { background: linear-gradient(270deg, var(--dc), transparent); }

/* 35. Assistant expert : tableaux de caractéristiques dans le chat */
.tp-tr2-msg .tp-kb-table { margin: .55rem 0 .35rem; max-width: 100%; overflow-x: auto; border: 1px solid var(--tp-border); border-radius: .6rem; }
.tp-tr2-msg .tp-kb-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.4; }
.tp-tr2-msg .tp-kb-table th, .tp-tr2-msg .tp-kb-table td { padding: .4rem .55rem; border-bottom: 1px solid var(--tp-border); text-align: start; vertical-align: top; }
.tp-tr2-msg .tp-kb-table thead th { background: var(--tp-ice); color: var(--tp-deep); font-weight: 700; min-width: 8.5rem; font-size: 12px; }
.tp-tr2-msg:has(.tp-kb-table) { max-width: 100%; }
.tp-tr2-msg .tp-kb-table thead a { text-decoration: none; }
.tp-tr2-msg .tp-kb-table tbody th { color: var(--tp-deep); font-weight: 600; background: var(--tp-ice-2); min-width: 6.5rem; position: sticky; inset-inline-start: 0; }
.tp-tr2-msg .tp-kb-table tr:last-child th, .tp-tr2-msg .tp-kb-table tr:last-child td { border-bottom: 0; }
.tp-tr2-msg .tp-kb-table small { display: inline-block; color: var(--tp-muted); font-size: 11px; }
.tp-tr2-msg .tp-kb-norm { color: var(--tp-muted); font-size: 11.5px; white-space: nowrap; }
.tp-tr2-msg .tp-kb-links { display: inline-block; margin-top: .35rem; font-size: 13px; }
.tp-tr2-msg > small { display: block; margin-top: .2rem; color: var(--tp-muted); font-size: 11.5px; }

/* ==========================================================================
   36. Correctifs & améliorations v28
   ========================================================================== */
/* Accueil — section « Outils en ligne » */
.tp-tool {
  position: relative; display: flex; flex-direction: column; gap: 0.65rem;
  background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  padding: 1.75rem 1.6rem 1.5rem; box-shadow: var(--tp-shadow-sm);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.tp-tool:hover, .tp-tool:focus-within { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24, 120, 192, 0.38); }
.tp-tool-icon {
  width: 52px; height: 52px; border-radius: 0.95rem; display: flex; align-items: center; justify-content: center;
  background: var(--tp-ice); color: var(--tp-blue); margin-bottom: 0.35rem; transition: background 0.22s ease, color 0.22s ease;
}
.tp-tool-icon svg { width: 24px; height: 24px; }
.tp-tool:hover .tp-tool-icon { background: var(--tp-gradient); color: #fff; }
.tp-tool h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; }
.tp-tool p { color: var(--tp-muted); font-size: 14.5px; line-height: 1.65; flex: 1; }
.tp-tool-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: start; align-self: flex-start; }
.tp-tool-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* toute la carte est cliquable */
.tp-tool-link:focus-visible { outline: none; }
.tp-tool:has(.tp-tool-link:focus-visible) { outline: 2.5px solid rgba(24, 120, 192, 0.55); outline-offset: 3px; }
.tp-tool-note { display: flex; align-items: center; gap: 0.4rem; flex: none !important; font-size: 12.5px !important; margin-top: 0.15rem; }
.tp-tool-note svg { width: 14px; height: 14px; flex: none; color: var(--tp-sky); }
.tp-tool--accent { background: linear-gradient(160deg, #ffffff 0%, var(--tp-ice) 100%); border-color: rgba(24, 120, 192, 0.25); }
.tp-tool--accent .tp-tool-icon { background: var(--tp-gradient); color: #fff; }

/* Bandeau final : bouton secondaire sur fond bleu */
.tp-cta-actions .tp-btn-hero-ghost { justify-content: center; height: 48px; }
.tp-cta-actions .tp-caption-muted a { color: #fff; font-weight: 700; }
.tp-cta-actions .tp-caption-muted svg { width: 15px; height: 15px; flex: none; }

/* Sélecteur de langue dans le menu mobile (masqué dans l'en-tête sous 1200 px) */
.tp-mobile .tp-lang.tp-lang--mobile { display: flex; align-self: flex-start; margin: 0 0 0.75rem; }
.tp-mobile .tp-lang--mobile button { height: 36px; min-width: 44px; font-size: 13px; }

/* Champ piège anti-spam du formulaire de contact */
.tp-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Galerie accessible au clavier */
.tp-gallery-item { cursor: zoom-in; }
.tp-gallery-item:focus-visible { outline: 3px solid var(--tp-blue); outline-offset: 3px; }
.tp-gallery-item:focus-visible img { transform: scale(1.04); }

/* Champs du formulaire en erreur : signal non uniquement coloré */
.tp-form-field.has-error input, .tp-form-field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }

/* Arabe : flèches « suivant » orientées vers la gauche */
html[dir="rtl"] svg:has(> path[d="M5 12h14"]) { transform: scaleX(-1); }
html[dir="rtl"] .tp-card-link:hover svg:has(> path[d="M5 12h14"]) { transform: scaleX(-1) translateX(4px); }

/* Moins d'animations si le visiteur l'a demandé au système */
@media (prefers-reduced-motion: reduce) {
  .tp-slide, .tp-card, .tp-tool, .tp-feature, .tp-card-media img, .tp-gallery-item img { transition: none !important; }
  .tp-card:hover, .tp-tool:hover, .tp-feature:hover { transform: none; }
  html { scroll-behavior: auto !important; }
}
/* Pied de page : adresse au même style que les autres coordonnées */
.tp-footer-contact li { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
/* Page 404 */
.tp-error-page { min-height: 52vh; display: flex; align-items: center; }
.tp-error-page .tp-container { max-width: 46rem; }
.tp-error-code { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; background: var(--tp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0.5rem; }
.tp-error-page .tp-p-lead { margin-top: 1rem; }
.tp-error-page .tp-actions-center { flex-wrap: wrap; }
.tp-contact-form { position: relative; }
.sim-prod { unicode-bidi: plaintext; }

/* v28 — Simulateur : contact du service technique par WhatsApp */
.sim-wa {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem 1.2rem;
  margin: 0 0 1.1rem; padding: 0.95rem 1.1rem; border-radius: var(--tp-radius);
  background: linear-gradient(135deg, #effcf3 0%, #f7fdf9 100%); border: 1px solid #bfe9cf;
}
.sim-wa-text { min-width: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; color: var(--tp-muted); }
.sim-wa-text strong { display: block; color: var(--tp-deep); font-size: 15px; margin-bottom: 0.1rem; }
.sim-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; flex: none;
  min-height: 46px; padding: 0.6rem 1.15rem; border-radius: 999px; border: 0;
  background: #25d366; color: #fff !important; font-weight: 800; font-size: 14.5px; line-height: 1.25; text-align: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sim-wa-btn:hover { background: #1ebe5b; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.38); }
.sim-wa-btn svg { width: 20px; height: 20px; flex: none; }
.sim-wa-btn--sm { min-height: 0; padding: 0.7rem 1.2rem; font-size: 14px; box-shadow: none; }
@media (max-width: 560px) { .sim-wa-btn { width: 100%; } }

/* v28 — Nos références : références hôtelières */
.tp-hotel-stats {
  list-style: none; margin: 0 auto 2.2rem; padding: 0; max-width: 56rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem;
}
.tp-hotel-stats li { background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 0.9rem 0.8rem; text-align: center; box-shadow: var(--tp-shadow-sm); }
.tp-hotel-stats strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--tp-blue-dark); line-height: 1.15; }
.tp-hotel-stats span { display: block; margin-top: 0.2rem; font-size: 12.5px; color: var(--tp-muted); }
.tp-hotels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.tp-hotel {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg); overflow: hidden; box-shadow: var(--tp-shadow-sm);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.tp-hotel:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24, 120, 192, 0.35); }
.tp-hotel-media { position: relative; aspect-ratio: 800 / 520; overflow: hidden; background: var(--tp-ice); }
.tp-hotel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.tp-hotel:hover .tp-hotel-media img { transform: scale(1.06); }
.tp-hotel-stars {
  position: absolute; left: 0.7rem; bottom: 0.7rem; padding: 0.22rem 0.55rem; border-radius: 999px;
  background: rgba(7, 42, 74, 0.82); backdrop-filter: blur(4px); color: #f6c343; font-size: 12px; letter-spacing: 0.08em; line-height: 1.3;
}
html[dir="rtl"] .tp-hotel-stars { left: auto; right: 0.7rem; }
.tp-hotel-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.tp-hotel-body h3 { font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.35; color: var(--tp-deep); }
.tp-hotel-city { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: 13px; font-weight: 600; color: var(--tp-blue); }
.tp-hotel-city svg { width: 14px; height: 14px; flex: none; }
.tp-hotel-meta { margin: 0.45rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--tp-border); display: grid; gap: 0.3rem; }
.tp-hotel-meta div { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 13px; }
.tp-hotel-meta dt { color: var(--tp-muted); }
.tp-hotel-meta dd { margin: 0; font-weight: 700; color: var(--tp-text); text-align: end; }
@media (max-width: 1100px) { .tp-hotels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tp-hotels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-hotel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tp-hotels { grid-template-columns: 1fr; } }

/* v28 — Accueil : certifications avec logos officiels (cliquables → certificat PDF) */
.tp-certs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.tp-cert {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  overflow: hidden; box-shadow: var(--tp-shadow-sm); color: inherit;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.tp-cert:hover, .tp-cert:focus-visible { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); border-color: rgba(24, 120, 192, 0.38); }
.tp-cert-logo { display: flex; align-items: center; justify-content: center; height: 120px; padding: 0.9rem; background: #fff; border-bottom: 1px solid var(--tp-border); }
.tp-cert-logo img { max-height: 100%; width: auto; object-fit: contain; }
.tp-cert-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.95rem 1rem 1.05rem; flex: 1; }
.tp-cert-body strong { font-size: 1rem; color: var(--tp-deep); line-height: 1.3; }
.tp-cert-text { font-size: 13px; line-height: 1.55; color: var(--tp-muted); flex: 1; }
.tp-cert-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: 13px; font-weight: 700; color: var(--tp-blue); }
.tp-cert-link svg { width: 13px; height: 13px; }
.tp-orgs { margin-top: 2.4rem; text-align: center; }
.tp-orgs-title { font-size: 1.1rem; color: var(--tp-deep); }
.tp-orgs-text { margin: 0.4rem auto 1.1rem; max-width: 40rem; font-size: 14px; color: var(--tp-muted); line-height: 1.6; }
.tp-org-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; }
.tp-org-logo {
  display: flex; align-items: center; justify-content: center; height: 92px; padding: 0.6rem; background: #fff;
  border: 1px solid var(--tp-border); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tp-org-logo:hover, .tp-org-logo:focus-visible { transform: translateY(-3px); box-shadow: var(--tp-shadow-md); border-color: rgba(24, 120, 192, 0.38); }
.tp-org-logo img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 1100px) { .tp-certs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tp-org-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tp-certs, .tp-org-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-cert-logo { height: 96px; } }

/* ==========================================================================
   v28 — Page Politique QHSE
   ========================================================================== */
.tp-qintro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.tp-qintro-p { margin-top: 1rem; color: var(--tp-muted); line-height: 1.75; }
.tp-qintro-p strong { color: var(--tp-deep); }
.tp-qref-lbl { margin-top: 1.6rem; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-blue-dark); }
html[dir="rtl"] .tp-qref-lbl { letter-spacing: 0; text-transform: none; font-size: 14px; }
.tp-qref { list-style: none; margin: 0.65rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tp-qref li {
  display: inline-flex; align-items: baseline; gap: 0.1rem; direction: ltr;
  padding: 0.55rem 0.95rem; border-radius: var(--tp-radius); background: var(--tp-ice); border: 1px solid rgba(24, 120, 192, 0.2);
  font-size: 14px; color: var(--tp-muted);
}
.tp-qref strong { color: var(--tp-deep); font-size: 15px; }
.tp-qmeta { margin: 1.4rem 0 0; display: grid; gap: 0; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; background: #fff; }
.tp-qmeta div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.8rem; padding: 0.65rem 0.95rem; font-size: 14px; }
.tp-qmeta div + div { border-top: 1px solid var(--tp-border); }
.tp-qmeta dt { color: var(--tp-muted); }
.tp-qmeta dd { margin: 0; font-weight: 700; color: var(--tp-deep); }

.tp-qdocs { background: var(--tp-gradient-soft); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 1.3rem; box-shadow: var(--tp-shadow-sm); }
.tp-qdocs-title { font-size: 1.05rem; color: var(--tp-deep); margin-bottom: 1rem; }
.tp-qdocs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tp-qdoc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow-sm); }
.tp-qdoc-thumb { position: relative; display: block; aspect-ratio: 600 / 848; overflow: hidden; background: #fff; border-bottom: 1px solid var(--tp-border); }
.tp-qdoc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.tp-qdoc-thumb:hover img, .tp-qdoc-thumb:focus-visible img { transform: scale(1.04); }
.tp-qdoc-lang {
  position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; min-width: 2.1rem; height: 2.1rem; padding: 0 0.45rem;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--tp-gradient); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px rgba(7, 42, 74, 0.3);
}
.tp-qdoc-body { padding: 0.8rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.tp-qdoc-body strong { color: var(--tp-deep); font-size: 14.5px; }
.tp-qdoc-body > span { font-size: 12.5px; color: var(--tp-muted); }
.tp-qdoc-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tp-qdoc-actions .tp-btn { flex: 1 1 auto; justify-content: center; gap: 0.35rem; padding-inline: 0.6rem; }
.tp-qdoc-actions svg { width: 14px; height: 14px; }

.tp-qobjs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tp-qobj { display: flex; flex-direction: column; gap: 0.6rem; background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 1.35rem 1.3rem; box-shadow: var(--tp-shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.tp-qobj:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow-md); border-color: rgba(24, 120, 192, 0.3); }
.tp-qobj-n { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: var(--tp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-qobj p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--tp-text); }

.tp-qcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.tp-qcol { --qc: var(--tp-blue); --qbg: #eef5fc; background: #fff; border: 1px solid var(--tp-border); border-top: 4px solid var(--qc); border-radius: var(--tp-radius-lg); padding: 1.4rem 1.35rem 1.5rem; box-shadow: var(--tp-shadow-sm); }
.tp-qcol--e { --qc: #2f9e5b; --qbg: #ecf8f0; }
.tp-qcol--s { --qc: #e0533d; --qbg: #fdefec; }
.tp-qcol header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.tp-qcol-ico { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 0.85rem; background: var(--qbg); color: var(--qc); }
.tp-qcol-ico svg { width: 22px; height: 22px; }
.tp-qcol h3 { font-size: 1.15rem; color: var(--qc); }
.tp-qcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.tp-qcol li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--tp-text); }
.tp-qcol-chk { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--qbg); color: var(--qc); }
.tp-qcol-chk svg { width: 13px; height: 13px; }

.tp-qquote { position: relative; max-width: 50rem; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--tp-shadow-md); }
.tp-qquote h2 { margin-top: 0.8rem; }
.tp-qquote-mark { display: block; margin: 1.1rem auto 0.4rem; width: 40px; color: var(--tp-sky); opacity: 0.6; }
.tp-qquote blockquote { margin: 0; }
.tp-qquote blockquote p { margin: 0.6rem 0 0; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.75; color: var(--tp-text); }
.tp-qquote blockquote p:first-child { font-weight: 600; color: var(--tp-deep); }
.tp-qquote figcaption { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--tp-border); display: flex; flex-direction: column; gap: 0.15rem; }
.tp-qquote figcaption strong { color: var(--tp-deep); font-size: 1.02rem; }
.tp-qquote figcaption span { color: var(--tp-muted); font-size: 13.5px; }

@media (max-width: 1024px) {
  .tp-qintro { grid-template-columns: 1fr; }
  .tp-qobjs, .tp-qcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tp-qobjs, .tp-qcols { grid-template-columns: 1fr; }
  .tp-qmeta div { grid-template-columns: 1fr; gap: 0.1rem; }
  .tp-qdocs { padding: 1rem; }
  .tp-qdocs-grid { gap: 0.7rem; }
}
.tp-qquote-mark svg { width: 40px; height: 40px; }

.tp-cert-meta { display: inline-flex; align-self: flex-start; margin-top: 0.15rem; padding: 0.2rem 0.5rem; border-radius: 0.4rem; background: #edf7f0; color: #1f7a45; font-size: 11.5px; font-weight: 700; line-height: 1.4; }

html[dir="rtl"] .tp-logo-text > span { letter-spacing: 0.32em; }

/* ==========================================================================
   v28 — Accueil : retouches légères (<body class="tp-accueil">)
   ========================================================================== */
/* Héros moins haut (chiffres clés visibles sur un écran d'ordinateur portable), 3 boutons sur une ligne */
.tp-accueil .tp-hero { min-height: 580px; }
@media (min-width: 1024px) { .tp-accueil .tp-hero { min-height: 620px; } }
.tp-accueil .tp-hero-inner { padding-block: 4.25rem 6rem; }
.tp-accueil .tp-hero-content { max-width: 50rem; }
.tp-accueil .tp-hero h1 { max-width: 16ch; text-wrap: balance; }
.tp-accueil .tp-hero p.tp-hero-lead { max-width: 37rem; }
.tp-accueil .tp-hero-actions { gap: 0.7rem; margin-top: 2rem; }
.tp-accueil .tp-hero-actions .tp-btn, .tp-accueil .tp-hero-actions .tp-btn-hero-ghost { height: 50px; padding: 0 1.3rem; font-size: 14.5px; }
.tp-accueil .tp-hero-dots { bottom: 1.6rem; }
.tp-accueil .tp-stat { padding-block: 2.1rem; }

/* Titres de section équilibrés (pas de mot seul sur la dernière ligne) */
.tp-accueil .tp-section-head h2, .tp-accueil .tp-h2-lg, .tp-accueil .tp-cta h2 { text-wrap: balance; }
.tp-accueil .tp-section-head p { text-wrap: pretty; }

/* Cartes produits : photos moins assombries, cadre bleu des photos masqué, hauteurs régulières */
.tp-accueil #gamme .tp-card-media { height: 210px; }
.tp-accueil #gamme .tp-card-media::after { background: linear-gradient(to top, rgba(4, 24, 44, 0.55), rgba(4, 24, 44, 0) 48%); }
.tp-accueil #gamme .tp-card-media img[src*="/products/"] { transform: scale(1.08); }
.tp-accueil #gamme .tp-card:hover .tp-card-media img[src*="/products/"] { transform: scale(1.13); }
.tp-accueil #gamme .tp-card-tag { font-size: 13.5px; text-shadow: 0 1px 6px rgba(4, 24, 44, 0.45); }
.tp-accueil #gamme .tp-card-tag .tp-tag-ico { width: 32px; height: 32px; }
.tp-accueil #gamme .tp-card-body h3 { min-height: 2.7em; }

@media (max-width: 767px) {
  .tp-accueil .tp-hero-inner { padding-block: 3rem 5rem; }
  .tp-accueil .tp-hero-actions .tp-btn, .tp-accueil .tp-hero-actions .tp-btn-hero-ghost { flex: 1 1 100%; justify-content: center; }
  .tp-accueil #gamme .tp-card-body h3 { min-height: 0; }
}
.tp-gallery-item { margin: 0; }  /* v28 : supprime la marge par défaut des <figure> (photos trop étroites) */

/* ==========================================================================
   v28 — Contact WhatsApp (toutes les pages) : bouton + choix du service
   ========================================================================== */
.tp-wa-fab {
  position: fixed; right: calc(1.5rem + 5px); bottom: calc(1.5rem + 80px); z-index: 100;
  width: 56px; height: 56px; border-radius: 999px; border: 0; cursor: pointer;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38), 0 2px 6px rgba(7, 42, 74, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}
.tp-wa-fab:hover { transform: scale(1.06); background: #1ebe5b; }
.tp-wa-fab:focus-visible { outline: 3px solid var(--tp-blue); outline-offset: 3px; }
.tp-wa-fab svg { width: 30px; height: 30px; }
.tp-wa-fab.is-open { background: #128c7e; }
.tp-wa-panel {
  position: fixed; right: 1.5rem; bottom: calc(1.5rem + 148px); z-index: 102;
  width: min(360px, calc(100vw - 2rem)); background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(10px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tp-wa-panel.is-open { opacity: 1; transform: none; }
.tp-wa-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 0.9rem 0.9rem 1rem; background: #075e54; color: #fff; }
.tp-wa-head-ico { width: 38px; height: 38px; flex: none; border-radius: 999px; background: #25d366; display: flex; align-items: center; justify-content: center; }
.tp-wa-head-ico svg { width: 22px; height: 22px; }
.tp-wa-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-wa-head strong { font-size: 15px; line-height: 1.3; }
.tp-wa-head > div span { font-size: 12px; opacity: 0.85; line-height: 1.4; }
.tp-wa-close { width: 34px; height: 34px; flex: none; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tp-wa-close:hover { background: rgba(255, 255, 255, 0.22); }
.tp-wa-close svg { width: 18px; height: 18px; }
.tp-wa-intro { margin: 0; padding: 0.85rem 1rem 0.35rem; font-size: 13.5px; line-height: 1.5; color: var(--tp-muted); }
.tp-wa-list { list-style: none; margin: 0; padding: 0.4rem 0.6rem 0.75rem; display: grid; gap: 0.35rem; }
.tp-wa-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.7rem; border-radius: var(--tp-radius); border: 1px solid var(--tp-border); color: var(--tp-text); text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.tp-wa-item:hover, .tp-wa-item:focus-visible { border-color: #25d366; background: #f1fbf4; outline: none; }
.tp-wa-item-ico { width: 38px; height: 38px; flex: none; border-radius: 0.7rem; background: var(--tp-ice); color: var(--tp-blue); display: flex; align-items: center; justify-content: center; }
.tp-wa-item-ico svg { width: 19px; height: 19px; }
.tp-wa-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-wa-item-txt strong { font-size: 14.5px; line-height: 1.3; color: var(--tp-deep); }
.tp-wa-item-txt span { font-size: 12.5px; line-height: 1.4; color: var(--tp-muted); }
.tp-wa-item-go { flex: none; color: #25d366; }
.tp-wa-item-go svg { width: 20px; height: 20px; }
html[dir="rtl"] .tp-wa-fab { right: auto; left: calc(1.5rem + 5px); }
html[dir="rtl"] .tp-wa-panel { right: auto; left: 1.5rem; transform-origin: bottom left; }
@media (max-width: 600px) {
  .tp-wa-fab { width: 52px; height: 52px; right: calc(1.5rem + 3px); bottom: calc(1.5rem + 70px); }
  html[dir="rtl"] .tp-wa-fab { left: calc(1.5rem + 3px); }
  .tp-wa-panel { right: 1rem; bottom: calc(1.5rem + 132px); }
  html[dir="rtl"] .tp-wa-panel { left: 1rem; }
}
@media print { .tp-wa-fab, .tp-wa-panel { display: none !important; } }
/* Une seule fenêtre à la fois : le bouton WhatsApp s'efface pendant que l'assistant est ouvert */
body:has(.tp-tr2-panel.is-open) .tp-wa-fab { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ==========================================================================
   Simulateur — vue 3D d'une solution en arrière-plan du bandeau
   ========================================================================== */
.tp-page-hero.sim-hero-bg {
  background-color: var(--tp-deep);
  background-image: linear-gradient(90deg, rgba(4, 24, 44, 0.95) 0%, rgba(7, 42, 74, 0.86) 40%, rgba(7, 42, 74, 0.4) 66%, rgba(7, 42, 74, 0.05) 100%), var(--tp-hero-img);
  background-size: cover, cover;
  background-position: center, right 40%;
  background-repeat: no-repeat;
}
.tp-page-hero.sim-hero-bg::after { opacity: 0.15; }
[dir="rtl"] .tp-page-hero.sim-hero-bg {
  background-image: linear-gradient(270deg, rgba(4, 24, 44, 0.95) 0%, rgba(7, 42, 74, 0.86) 40%, rgba(7, 42, 74, 0.4) 66%, rgba(7, 42, 74, 0.05) 100%), var(--tp-hero-img);
  background-position: center, left 40%;
}
@media (max-width: 999px) {
  .tp-page-hero.sim-hero-bg, [dir="rtl"] .tp-page-hero.sim-hero-bg {
    background-image: linear-gradient(180deg, rgba(4, 24, 44, 0.9) 0%, rgba(7, 42, 74, 0.82) 100%), var(--tp-hero-img);
    background-size: cover, cover; background-position: center, center;
  }
}
