/*
Theme Name:   Teintée Plus Child
Theme URI:    https://www.teintee-plus.fr
Description:  Thème enfant Kadence — Teintée + Protection Solaire
Author:       Teintée +
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  teintee-plus
*/

/* ============================================================
   FONTS SELF-HOSTED — Playfair Display + DM Sans
   RGPD : aucun appel vers Google CDN, zéro CLS garanti.
   ============================================================ */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-700.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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-400.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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-700.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;
}

/* ============================================================
   PALETTE & TOKENS — à ne modifier qu'ici
   ============================================================ */
:root {
  --tp-navy:        #1a2332;   /* fond dark, texte principal */
  --tp-navy-light:  #243044;   /* hover nav, fond bloc stats */
  --tp-cyan:        #4a9abe;   /* accent principal, liens actifs, chiffres */
  --tp-cyan-dark:   #357a9a;   /* cyan hover */
  --tp-white:       #ffffff;
  --tp-off-white:   #f7f8fa;   /* fond page sections */
  --tp-gray-light:  #e8ecf0;   /* bordures, séparateurs */
  --tp-gray:        #8895a7;   /* texte secondaire */
  --tp-text:        #1a2332;   /* corps de texte */

  --tp-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tp-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --tp-radius:      6px;
  --tp-radius-lg:   12px;
  --tp-shadow:      0 2px 16px rgba(26,35,50,0.08);
  --tp-shadow-lg:   0 8px 40px rgba(26,35,50,0.14);

  --tp-max-width:   1200px;
  --tp-section-py:  40px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--tp-font-body);
  color: var(--tp-text);
  background: var(--tp-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tp-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tp-cyan-dark); }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--tp-font-heading);
  color: var(--tp-navy);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.tp-label {
  font-family: var(--tp-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tp-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

p { margin: 0 0 1.25rem; color: #7f8a9c; }

/* ============================================================
   LAYOUT UTILITAIRES
   ============================================================ */
.tp-container {
  max-width: var(--tp-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.tp-section {
  padding: var(--tp-section-py) 0;
}

.tp-section--alt {
  background: var(--tp-off-white);
}

.tp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .tp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tp-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --tp-section-py: 28px; }
  .tp-grid-2,
  .tp-grid-3,
  .tp-grid-4 { grid-template-columns: 1fr; }
  .tp-grid-2 { gap: 32px; }
}

/* ============================================================
   HEADER TEINTÉE + (custom header.php)
   ============================================================ */
.tp-site-header {
  background: var(--tp-white);
  border-bottom: 1px solid var(--tp-gray-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(26,35,50,0.06);
}

.tp-header-inner {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.tp-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.tp-logo-img {
  height: 48px;
  width: auto;
}
.tp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.tp-logo-name {
  font-family: var(--tp-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tp-navy);
}
.tp-logo-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--tp-cyan);
  text-transform: uppercase;
}

/* Nav principale */
.tp-header-nav {
  flex: 1;
}
.tp-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-nav-list li a {
  font-family: var(--tp-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tp-navy);
  padding: 8px 14px;
  border-radius: var(--tp-radius);
  text-decoration: none;
  transition: background .2s, color .2s;
  display: block;
  white-space: nowrap;
}
.tp-nav-list li a:hover,
.tp-nav-list li.current-menu-item > a,
.tp-nav-list li.current_page_item > a {
  color: var(--tp-cyan);
  background: rgba(74,154,190,0.08);
}

/* Sous-menus dropdown */
.tp-nav-list li {
  position: relative;
}
.tp-nav-list li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-light);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(26,35,50,0.12);
  min-width: 220px;
  padding: 12px 0 8px; /* padding-top remplace le margin pour éviter le gap */
  list-style: none;
  margin: 0;           /* supprime le gap qui faisait disparaître le menu */
  z-index: 100;
}
.tp-nav-list li:hover > ul,
.tp-nav-list li:focus-within > ul {
  display: block;
}
/* Pont invisible : couvre la zone entre le lien parent et le dropdown */
.tp-nav-list li.menu-item-has-children > ul::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.tp-nav-list li ul li a {
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.88rem;
}
.tp-nav-list li ul li a:hover {
  background: rgba(74,154,190,0.08);
  color: var(--tp-cyan);
}
/* Indicateur dropdown */
.tp-nav-list li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
}

/* Bouton téléphone */
.tp-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-cyan);
  color: var(--tp-white);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--tp-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.tp-nav-phone:hover {
  background: #2a7fa8;
  color: var(--tp-white);
}

/* Burger mobile */
.tp-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.tp-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tp-navy);
  border-radius: 2px;
  transition: all .25s;
}
.tp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.tp-mobile-menu {
  border-top: 1px solid var(--tp-gray-light);
  padding: 16px 24px 24px;
  background: var(--tp-white);
}
.tp-mobile-menu[hidden] { display: none; }
.tp-mobile-nav-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.tp-mobile-nav-list li a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tp-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--tp-gray-light);
}
.tp-mobile-nav-list li ul {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
}
.tp-mobile-nav-list li ul li a {
  font-size: 0.9rem;
  color: var(--tp-gray);
  border-bottom: none;
  padding: 8px 0;
}
.tp-nav-phone--mobile {
  display: inline-flex;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .tp-header-nav { display: none; }
  .tp-burger { display: flex; }
  .tp-nav-phone:not(.tp-nav-phone--mobile) { display: none; }
}

/* ============================================================
   NAVIGATION (Kadence compat — conservé pour fallback)
   ============================================================ */
.site-header,
header.site-header {
  background: var(--tp-white) !important;
  border-bottom: 1px solid var(--tp-gray-light);
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 8px rgba(26,35,50,0.06);
}

/* Bouton téléphone nav (Kadence compat) */
.tp-nav-cta {
  background: var(--tp-cyan) !important;
  color: var(--tp-white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em;
  transition: background .2s, color .2s !important;
}
.tp-nav-cta:hover {
  background: #2a7fa8 !important;
  color: var(--tp-white) !important;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.tp-btn,
.wp-block-button__link,
.kadence-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tp-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--tp-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.tp-btn--primary {
  background: var(--tp-cyan);
  color: var(--tp-white);
  border-color: var(--tp-cyan);
}
.tp-btn--primary:hover {
  background: var(--tp-cyan-dark);
  border-color: var(--tp-cyan-dark);
  color: var(--tp-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,154,190,0.35);
}

.tp-btn--outline {
  background: transparent;
  color: var(--tp-navy);
  border-color: var(--tp-navy);
}
.tp-btn--outline:hover {
  background: var(--tp-navy);
  color: var(--tp-white);
}

.tp-btn--white {
  background: var(--tp-white);
  color: var(--tp-navy);
  border-color: var(--tp-white);
}
.tp-btn--white:hover {
  background: var(--tp-off-white);
  color: var(--tp-cyan);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.tp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tp-off-white);
  padding-top: 60px;
  padding-bottom: 80px;
}

.tp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  opacity: 1;
}

.tp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,248,250,1) 38%, rgba(247,248,250,0.7) 58%, rgba(247,248,250,0.08) 100%);
}

.tp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.tp-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--tp-navy);
}

.tp-hero__subtitle {
  font-family: var(--tp-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-gray);
  margin-bottom: 2rem;
}

.tp-hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ============================================================
   BLOC STATS (dark navy)
   ============================================================ */
.tp-stats {
  background: var(--tp-navy);
  padding: 32px 0;
}

.tp-stats__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
}
/* hide empty <p> injected by wpautop inside stats */
.tp-stats__grid > p { display: none; }

.tp-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.tp-stat:last-child { border-right: none; }

.tp-stat__icon {
  width: 44px;
  height: 44px;
  opacity: 0.5;
  flex-shrink: 0;
  color: var(--tp-cyan);
}

.tp-stat__number {
  font-family: var(--tp-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--tp-cyan);
  line-height: 1;
  display: block;
  white-space: nowrap;
}

.tp-stat__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  /* Wrapper navy box → pleine largeur + bandeau fin */
  .tp-stats > div { width: 100% !important; margin-left: 0 !important; padding: 6px 12px !important; border-radius: 0 !important; }
  .tp-stats { padding: 0; }
  /* Grid → une ligne horizontale */
  .tp-stats__grid { flex-wrap: nowrap; grid-template-columns: unset; justify-content: space-around; }
  .tp-stat {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 4px 4px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
  }
  .tp-stat:last-child { border-right: none; border-bottom: none; }
  /* Masquer l'icône pour gagner de l'espace */
  .tp-stat__icon { display: none; }
  .tp-stat__number { font-size: 1.2rem; white-space: nowrap; }
  .tp-stat__label { font-size: 0.6rem; letter-spacing: 0.06em; margin-top: 2px; }
}

/* ============================================================
   CARTES SERVICES
   ============================================================ */
.tp-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-light);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tp-shadow-lg);
}

.tp-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #e8ecf0 0%, #d1dbe5 100%);
  position: relative;
}
.tp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
/* Placeholder quand image absente */
.tp-card__img img[src=""],
.tp-card__img img:not([src]) {
  display: none;
}
.tp-card:hover .tp-card__img img {
  transform: scale(1.04);
}

.tp-card__body {
  padding: 24px;
}

.tp-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-cyan);
  margin-bottom: 8px;
  display: block;
}

.tp-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--tp-navy);
}

.tp-card__text {
  font-size: 0.9rem;
  color: var(--tp-gray);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.tp-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tp-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tp-card__link::after { content: '→'; transition: transform .2s; }
.tp-card:hover .tp-card__link::after { transform: translateX(4px); }

/* ============================================================
   SECTION AVANTAGES / CHIFFRES
   ============================================================ */
.tp-feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto 1fr;
  gap: 2px 16px;
  padding: 24px;
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  border: 1px solid var(--tp-gray-light);
  align-items: start;
}

.tp-feature__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  background: rgba(74,154,190,0.1);
  border-radius: var(--tp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-cyan);
  font-size: 1.4rem;
  align-self: start;
}

.tp-feature strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tp-navy);
  line-height: 1.3;
  margin-bottom: 0;
}

.tp-feature p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.875rem;
  color: var(--tp-gray);
  margin: 0;
  line-height: 1.55;
}

/* Feature sans icône : h3/p enfants directs → pleine largeur */
.tp-feature > h3 {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tp-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.tp-feature > p {
  grid-column: 1 / -1;
  grid-row: auto;
}

.tp-feature__title {
  font-size: 1rem;
  font-family: var(--tp-font-body);
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 4px;
}
.tp-feature__text {
  font-size: 0.875rem;
  color: var(--tp-gray);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   SECTION CTA DARK
   ============================================================ */
.tp-cta-band {
  background: var(--tp-navy);
  padding: 72px 0;
  text-align: center;
}
.tp-cta-band h2 { color: var(--tp-white); }
.tp-cta-band p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 2rem; }

/* ============================================================
   FORMULAIRE DEVIS
   ============================================================ */
.tp-form-wrap {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  padding: 48px;
  box-shadow: var(--tp-shadow-lg);
  border: 1px solid var(--tp-gray-light);
  max-width: 640px;
}

.tp-form-wrap label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-navy);
  margin-bottom: 6px;
}

.tp-form-wrap input,
.tp-form-wrap select,
.tp-form-wrap textarea,
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tp-gray-light);
  border-radius: var(--tp-radius);
  font-family: var(--tp-font-body);
  font-size: 0.95rem;
  color: var(--tp-text);
  background: var(--tp-white);
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 20px;
  display: block;
}

.tp-form-wrap input:focus,
.tp-form-wrap select:focus,
.tp-form-wrap textarea:focus {
  outline: none;
  border-color: var(--tp-cyan);
  box-shadow: 0 0 0 3px rgba(74,154,190,0.15);
}

.tp-form-wrap textarea { min-height: 120px; resize: vertical; }

.tp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .tp-form-row { grid-template-columns: 1fr; } }

/* ============================================================
   LOGOS CLIENTS — MARQUEE INFINI
   ============================================================ */
.tp-clients {
  padding: 48px 0;
  background: var(--tp-white);
  border-top: 1px solid var(--tp-gray-light);
  border-bottom: 1px solid var(--tp-gray-light);
  overflow: hidden;
}

.tp-clients__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tp-gray);
  margin-bottom: 32px;
}

/* Wrapper avec masques de fondu sur les bords */
.tp-clients__track-wrap {
  position: relative;
  overflow: hidden;
}
.tp-clients__track-wrap::before,
.tp-clients__track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.tp-clients__track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--tp-white) 0%, transparent 100%);
}
.tp-clients__track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--tp-white) 0%, transparent 100%);
}

/* Piste défilante */
.tp-clients__logos {
  display: flex;
  gap: 0;
  align-items: center;
  width: max-content;
  animation: tp-marquee 100s linear infinite;
}
.tp-clients__logos:hover {
  animation-play-state: paused;
}

@keyframes tp-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Chaque logo */
.tp-clients__logos img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  flex-shrink: 0;
  padding: 0 56px;
  transition: transform .2s;
}
.tp-clients__logos img:hover {
  transform: scale(1.08);
}

/* ============================================================
   FAQ ACCORDÉON
   ============================================================ */
.tp-faq { max-width: 800px; margin: 0 auto; }

.tp-faq__item {
  border-bottom: 1px solid var(--tp-gray-light);
}

.tp-faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--tp-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tp-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tp-faq__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--tp-cyan);
  flex-shrink: 0;
  transition: transform .2s;
}

.tp-faq__item.is-open .tp-faq__question::after { transform: rotate(45deg); }

.tp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.tp-faq__answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: #7f8a9c;
}

/* ============================================================
   RÉALISATIONS — Grille quinconce
   ============================================================ */
.tp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 280px);
  gap: 12px;
}

/* Quinconce : alternance grande (2 cols) / petite (1 col) */
.tp-gallery__item:nth-child(4n+1) { grid-column: span 2; }
.tp-gallery__item:nth-child(4n+2) { grid-column: span 1; }
.tp-gallery__item:nth-child(4n+3) { grid-column: span 1; }
.tp-gallery__item:nth-child(4n+4) { grid-column: span 2; }

.tp-gallery__item {
  border-radius: var(--tp-radius);
  overflow: hidden;
  position: relative;
}

.tp-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}

.tp-gallery__item:hover img { transform: scale(1.06); }

.tp-gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(26,35,50,0.85), transparent);
  color: var(--tp-white);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s;
}
.tp-gallery__item:hover .tp-gallery__caption { opacity: 1; }

@media (max-width: 768px) {
  .tp-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tp-gallery__item { aspect-ratio: 4/3; }
  .tp-gallery__item:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 480px) { .tp-gallery { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
footer.site-footer {
  background: var(--tp-navy) !important;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.tp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.tp-footer__brand p { font-size: 0.9rem; margin-top: 16px; }

.tp-footer__col h4 {
  font-family: var(--tp-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-white);
  margin-bottom: 16px;
}

.tp-footer__col ul { list-style: none; padding: 0; margin: 0; }
.tp-footer__col ul li { margin-bottom: 10px; }
.tp-footer__col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color .2s; }
.tp-footer__col ul li a:hover { color: var(--tp-cyan); }

.tp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .tp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tp-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PAGE INTÉRIEURE — HERO COMPACT
   ============================================================ */
.tp-page-hero {
  background: var(--tp-navy);
  padding: 72px 0 56px;
}

.tp-page-hero .tp-label { color: rgba(255,255,255,0.5); }
.tp-page-hero h1 { color: var(--tp-white); }
.tp-page-hero p { color: rgba(255,255,255,0.7); max-width: 640px; }

/* Fil d'ariane */
.tp-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.tp-breadcrumb a { color: rgba(255,255,255,0.55); }
.tp-breadcrumb a:hover { color: var(--tp-cyan); }
.tp-breadcrumb span { margin: 0 8px; }

/* ============================================================
   BLOG
   ============================================================ */
.tp-post-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-light);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.tp-post-card:hover {
  box-shadow: var(--tp-shadow-lg);
  transform: translateY(-3px);
}

.tp-post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.tp-post-card__img img { width: 100%; height: 100%; object-fit: cover; }

.tp-post-card__body { padding: 24px; }
.tp-post-card__meta {
  font-size: 0.75rem;
  color: var(--tp-gray);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}
.tp-post-card__cat {
  color: var(--tp-cyan);
  font-weight: 600;
}

/* ============================================================
   KADENCE OVERRIDES
   ============================================================ */
.kb-section > .kb-section-dir-horizontal { gap: 0; }

/* Assure que les boutons Kadence héritent du style Teintée + */
.kadence-button-wrap .kt-button {
  font-family: var(--tp-font-body) !important;
  border-radius: var(--tp-radius) !important;
}

/* Remove Kadence default header padding quand on utilise le header custom */
.site-header .site-header-row { padding: 16px 24px; }

/* Masquer le titre texte du site (doublon avec le logo image) */
.site-title,
.site-description,
.site-branding .site-title,
.kadence-site-title,
h1.site-title { display: none !important; }

/* Logo */
.site-logo img,
.custom-logo,
.kadence-logo img,
.custom-logo-link img {
  max-height: 64px !important;
  max-width: none !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ============================================================
   DROPDOWN SUBMENU
   ============================================================ */
.main-navigation .sub-menu,
.primary-navigation .sub-menu {
  background: #ffffff !important;
  border: 1px solid var(--tp-gray-light) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(26,35,50,0.13) !important;
  padding: 8px 0 !important;
  min-width: 240px !important;
}
.main-navigation .sub-menu li a,
.primary-navigation .sub-menu li a {
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--tp-navy) !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: block !important;
}
.main-navigation .sub-menu li a:hover,
.primary-navigation .sub-menu li a:hover {
  background: rgba(74,154,190,0.08) !important;
  color: var(--tp-cyan) !important;
}
/* Kadence gère l'indicateur dropdown nativement — pas de ::after custom */

/* ============================================================
   SHOWCASE image + texte (section produit)
   ============================================================ */
.tp-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tp-showcase--reverse { direction: rtl; }
.tp-showcase--reverse > * { direction: ltr; }

.tp-showcase__images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.tp-showcase__images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}
.tp-showcase__text { display: flex; flex-direction: column; gap: 16px; }
.tp-showcase__text h2 { margin: 0; }
.tp-showcase__text p { color: #7f8a9c; line-height: 1.75; margin: 0; }
.tp-showcase__text .tp-btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 900px) {
  .tp-showcase { grid-template-columns: 1fr; }
  .tp-showcase--reverse { direction: ltr; }
}

/* ============================================================
   KADENCE — Masquer titre de page + hero interne Kadence
   sur toutes les pages avec contenu HTML custom
   ============================================================ */

/* Masque le titre H1 généré par Kadence sur les pages */
.page .entry-title,
.page .entry-header,
.kadence-page-title-wrap,
.wp-site-blocks .entry-header,
.page-hero,
.hero-section.default-hero { display: none !important; }

/* Supprime le padding/margin Kadence autour du contenu de page */
.page .entry-content,
.single .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Retire le padding/margin Kadence qui crée un blanc sous le nav */
.content-area { margin-top: 0 !important; padding-top: 0 !important; }
.site-content, .wp-site-blocks { padding-top: 0 !important; }
.entry-content-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Force full-width sur tout le pipeline Kadence */
.content-container.site-container,
.content-wrap,
.entry.content-bg,
.entry-content.single-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Sections full-bleed — pas de padding lateral ici, c'est tp-container qui gère */
.tp-hero,
.tp-stats,
.tp-section,
.tp-cta-band,
.tp-clients,
.tp-map-section,
.tp-section--alert-band {
  width: 100%;
  box-sizing: border-box;
}

/* Vide les <p> vides que WP insère entre les sections HTML */
.entry-content > p:empty,
.single-content > p:empty { display: none !important; margin: 0 !important; }

/* Retire la marge Kadence au-dessus du premier enfant de entry-content */
.page .entry-content > *:first-child { margin-top: 0 !important; }

/* Kadence inner content wrapper — 0 padding pour les pages custom */
.page .content-container,
.page .wp-block-group__inner-container { padding: 0 !important; max-width: 100% !important; }

/* ============================================================
   ALIASES — classes HTML templates → CSS
   ============================================================ */

/* Grilles BEM (templates utilisent tp-grid + tp-grid--N) */
.tp-grid { display: grid; gap: 48px; align-items: start; }
.tp-grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
.tp-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tp-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tp-grid--contact { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }

@media (max-width: 1024px) {
  .tp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tp-grid--contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tp-grid--2 { grid-template-columns: 1fr; gap: 32px; }
  .tp-grid--3 { grid-template-columns: 1fr; }
  .tp-grid--4 { grid-template-columns: 1fr; }
}

/* Stats BEM (tp-stats__item, tp-stats__num, tp-stats__label) */
.tp-stats__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
}
.tp-stats__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.tp-stats__item:last-child { border-right: none; }
/* Ignore empty <p> injected by wpautop */
.tp-stats__grid > p { display: none; }
.tp-stats__num {
  font-family: var(--tp-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--tp-cyan);
  line-height: 1;
  display: block;
}
.tp-stats__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .tp-stats__grid { flex-wrap: nowrap; }
  .tp-stats__item { flex: 1 1 0; max-width: none; padding: 20px 10px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
  .tp-stats__item:last-child { border-right: none; }
  .tp-stats__num { font-size: 1.5rem; }
  .tp-stats__label { font-size: 0.62rem; letter-spacing: 0.08em; }
}

/* Cards container */
.tp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2rem;
}
.tp-cards .tp-card { padding: 28px; }
.tp-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.tp-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.tp-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
@media (max-width: 900px) { .tp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tp-cards { grid-template-columns: 1fr; } }

/* Content + Image block */
.tp-content-block { display: flex; flex-direction: column; justify-content: center; }
.tp-content-block h2 { margin-top: 0.5rem; }
.tp-image-block img {
  width: 100%;
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Liste stylisée */
.tp-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tp-list li {
  padding: 6px 0 6px 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: #7f8a9c;
}
.tp-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tp-cyan);
  font-weight: 700;
}
.tp-list--sm li { font-size: 0.85rem; padding: 4px 0 4px 1.4rem; }
.tp-list--numbered { list-style: decimal; padding-left: 1.5rem; }
.tp-list--numbered li { padding-left: 0.5rem; }
.tp-list--numbered li::before { display: none; }

/* Titre de section centré */
.tp-section__title { text-align: center; margin-bottom: 2.5rem; }

/* CTA band content */
.tp-cta-band__content { max-width: 640px; margin: 0 auto; }

/* Hero variants */
.tp-hero--inner {
  min-height: 40vh;
  background: var(--tp-navy);
}
.tp-hero--inner .tp-hero__overlay {
  background: linear-gradient(105deg, rgba(26,35,50,0.92) 50%, rgba(26,35,50,0.6) 100%);
}
.tp-hero--inner h1 { color: var(--tp-white); }
.tp-hero--inner .tp-hero__subtitle { color: rgba(255,255,255,0.6); }
.tp-hero--inner .tp-breadcrumb { color: rgba(255,255,255,0.45); }
.tp-hero--inner .tp-breadcrumb a { color: rgba(255,255,255,0.55); }
.tp-hero--short { min-height: 28vh; }

/* Label alerte */
.tp-label--alert {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Info cards (légalité véhicule, etc.) */
.tp-info-card {
  background: var(--tp-white);
  border: 1.5px solid var(--tp-gray-light);
  border-radius: var(--tp-radius-lg);
  padding: 28px;
}
.tp-info-card--ok { border-color: #10b981; }
.tp-info-card--warn { border-color: #f59e0b; }
.tp-info-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }

/* Tableau comparatif */
.tp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.tp-compare-table th {
  background: var(--tp-off-white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--tp-navy);
  border-bottom: 2px solid var(--tp-gray-light);
}
.tp-compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tp-gray-light);
  color: #7f8a9c;
}
.tp-compare-table__highlight td { background: rgba(74,154,190,0.07); font-weight: 600; color: var(--tp-navy); }
.tp-advantages-box { background: var(--tp-off-white); border-radius: var(--tp-radius-lg); padding: 28px; }
.tp-advantages-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }

/* Alerte box décret tertiaire */
.tp-section--alert-band { background: #fffbeb; border-top: 3px solid #f59e0b; padding: 24px 0; }
.tp-alert-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid #f59e0b;
  border-radius: var(--tp-radius-lg);
  padding: 24px;
}
.tp-alert-box__icon { font-size: 2rem; flex-shrink: 0; }
.tp-alert-box strong { display: block; font-size: 1.05rem; color: var(--tp-navy); margin-bottom: 0.4rem; }
.tp-alert-box p { margin: 0; font-size: 0.9rem; }


/* Zone cards (à propos) */
.tp-zone-card {
  background: var(--tp-off-white);
  border-radius: var(--tp-radius-lg);
  padding: 20px;
  border: 1px solid var(--tp-gray-light);
}
.tp-zone-card strong { display: block; color: var(--tp-navy); margin-bottom: 0.4rem; }
.tp-zone-card p { font-size: 0.85rem; color: var(--tp-gray); margin: 0; }

/* Contact page */
.tp-contact-form { }
.tp-contact-info {
  background: var(--tp-off-white);
  border-radius: var(--tp-radius-lg);
  padding: 36px;
  border: 1px solid var(--tp-gray-light);
}
.tp-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tp-gray-light);
}
.tp-contact-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tp-contact-item__icon { font-size: 1.4rem; flex-shrink: 0; }
.tp-contact-item strong { display: block; color: var(--tp-navy); font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.tp-contact-item p { margin: 0; font-size: 0.9rem; }
.tp-contact-item small { color: var(--tp-gray); font-size: 0.8rem; }

.tp-reassurance-box {
  background: var(--tp-navy);
  color: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  padding: 20px;
  text-align: center;
  margin-top: 24px;
}
.tp-reassurance-box__rating { font-size: 1.2rem; color: #fbbf24; margin-bottom: 4px; }
.tp-reassurance-box p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0 0 4px; }

.tp-zone-mini {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed var(--tp-gray-light);
  border-radius: var(--tp-radius);
  font-size: 0.85rem;
}
.tp-zone-mini strong { display: block; color: var(--tp-navy); margin-bottom: 4px; }
.tp-zone-mini p { margin: 0; color: var(--tp-gray); }

.tp-map-section { padding: 0 0 60px; }

/* Bouton large */
.tp-btn--lg { padding: 18px 36px; font-size: 1rem; }

/* Form placeholder */
.tp-form-placeholder { margin: 1.5rem 0; }

/* FAQ — hidden attribute supprimé (conflit avec max-height animation) */

/* Hero --inner breadcrumb fix */
.tp-hero--inner .tp-hero__content { padding: 40px 0; }

/* Numbering list on décret tertiaire page */
ol.tp-list { list-style: decimal; padding-left: 1.5rem; }
ol.tp-list li::before { display: none; }
ol.tp-list li { padding-left: 0.25rem; }

/* ============================================================
   SERVICE CARDS (hub pages)
   ============================================================ */
.tp-service-card {
  background: var(--tp-white);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.tp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.tp-service-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}
.tp-service-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--tp-dark);
}
.tp-service-card p {
  font-size: 0.9rem;
  color: var(--tp-gray);
  flex: 1;
  margin: 0;
}
.tp-service-card .tp-btn {
  margin-top: auto;
  align-self: center;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.tp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tp-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-dark);
}
.tp-form-group input,
.tp-form-group select,
.tp-form-group textarea {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.tp-form-group input:focus,
.tp-form-group select:focus,
.tp-form-group textarea:focus {
  outline: none;
  border-color: var(--tp-primary);
}
.tp-form-group textarea { resize: vertical; min-height: 120px; }
.tp-form-mention {
  font-size: 0.78rem;
  color: var(--tp-gray);
  margin: 0;
}
.tp-contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.tp-contact-list li { display: flex; align-items: center; gap: 10px; }
.tp-contact-list a { color: var(--tp-primary); }
.tp-horaires { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tp-horaires td { padding: 6px 0; font-size: 0.9rem; }
.tp-horaires td:first-child { color: var(--tp-gray); padding-right: 24px; }

@media (max-width: 640px) {
  .tp-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   GALERIE RÉALISATIONS
   ============================================================ */
.tp-gallery-intro {
  max-width: 640px;
  color: var(--tp-gray);
  margin: 0 0 32px;
}
.tp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.tp-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--tp-radius-lg);
  cursor: zoom-in;
  margin: 0;
  background: transparent;
  aspect-ratio: 4 / 3;
}
.tp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.tp-gallery__item:hover img,
.tp-gallery__item:focus img {
  transform: scale(1.05);
  opacity: 0.85;
}
.tp-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(15,27,46,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tp-gallery__item:hover figcaption,
.tp-gallery__item:focus figcaption {
  opacity: 1;
  transform: translateY(0);
}
.tp-gallery-cta {
  text-align: center;
  margin-top: 8px;
}

/* ── Lightbox ────────────────────────────────────────────── */
.tp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 30, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tp-lightbox[hidden] { display: none; }
.tp-lightbox__inner {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tp-lightbox__inner img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.tp-lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}
.tp-lightbox__close,
.tp-lightbox__prev,
.tp-lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s;
  z-index: 10000;
}
.tp-lightbox__close:hover,
.tp-lightbox__prev:hover,
.tp-lightbox__next:hover { background: rgba(255,255,255,0.25); }
.tp-lightbox__close { top: 20px; right: 20px; font-size: 1.5rem; }
.tp-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.tp-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .tp-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tp-lightbox__prev { left: 8px; }
  .tp-lightbox__next { right: 8px; }
}

/* ── Grille réalisations homepage ─────────────────────────── */
.tp-real-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.7fr 1.7fr;
  grid-template-rows: 207px 207px;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
}
.tp-real-grid__a { grid-column: 1; grid-row: 1; }
.tp-real-grid__b { grid-column: 1; grid-row: 2; }
.tp-real-grid__c { grid-column: 2; grid-row: 1 / 3; }
.tp-real-grid__d { grid-column: 3; grid-row: 1 / 3; }
.tp-real-grid__e { grid-column: 4; grid-row: 1 / 3; }
.tp-real-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .tp-real-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 260px;
  }
  .tp-real-grid__a { grid-column: 1; grid-row: 1; }
  .tp-real-grid__b { grid-column: 2; grid-row: 1; }
  .tp-real-grid__c { grid-column: 1 / 3; grid-row: 2; }
  .tp-real-grid__d { grid-column: 1; grid-row: 3; }
  .tp-real-grid__e { grid-column: 2; grid-row: 3; }
}

/* Override aspect-ratio dans la grille homepage */
.tp-real-grid .tp-gallery__item {
  aspect-ratio: unset;
  border-radius: 0;
  margin: 0;
}
.tp-real-grid .tp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.tp-real-grid .tp-gallery__item:hover img {
  transform: scale(1.04);
  opacity: 0.88;
}

/* Fix hauteur figure dans tp-real-grid */
.tp-real-grid .tp-gallery__item {
  height: 100%;
  width: 100%;
  display: block;
}

/* Force override — figure dans grille réalisations homepage */
.tp-real-grid .tp-gallery__item {
  aspect-ratio: auto !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

/* ── SLIDER RÉALISATIONS HOMEPAGE ──────────────────────── */
#tp-slider-track::-webkit-scrollbar { display: none; }

/* ── BOUTON DEVIS GRATUIT — HEADER ──────────────────────── */
.tp-nav-devis {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--tp-cyan);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  margin-left: 8px;
}
.tp-nav-devis:hover {
  background: #3a8aaa;
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .tp-nav-devis { display: none; }
}

/* ============================================================
   FOOTER PERSONNALISÉ
   ============================================================ */

/* Supprimer le footer Kadence natif si résidu */
.site-footer { display: none !important; }

.tp-site-footer {
  margin-top: 0;
}

/* Bande principale */
.tp-footer-main {
  background: var(--tp-navy);
  padding: 56px 0 40px;
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Col brand */
.tp-footer-col--brand {}

.tp-footer-logo-img {
  max-height: 48px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  filter: invert(1);
  mix-blend-mode: screen;
}

.tp-footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
  text-decoration: none;
}

.tp-footer-logo-text span { color: var(--tp-cyan); }

.tp-footer-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tp-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-footer-phone,
.tp-footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.tp-footer-phone:hover,
.tp-footer-email:hover {
  color: var(--tp-cyan);
}

/* Colonnes liens */
.tp-footer-heading {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.tp-footer-links a:hover {
  color: var(--tp-cyan);
}

/* Barre légale */
.tp-footer-legal-bar {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0;
}

.tp-footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  margin: 0;
}

.tp-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.tp-footer-legal-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

.tp-footer-legal-links a:hover {
  color: var(--tp-cyan);
}

/* ── Responsive footer ─────────────────────────────────── */
@media (max-width: 1024px) {
  .tp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .tp-footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .tp-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tp-footer-col--brand {
    grid-column: auto;
  }
  .tp-footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tp-footer-legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ============================================================
   BLOG — LISTING
   ============================================================ */

/* Filtres catégories */
.tp-blog-cats {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tp-blog-cats::-webkit-scrollbar { display: none; }

.tp-blog-cat {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #7f8a9c;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s;
}
.tp-blog-cat:hover { color: var(--tp-navy); background: #eef2f7; }
.tp-blog-cat--active { color: var(--tp-cyan); background: rgba(74,154,190,0.1); border-color: rgba(74,154,190,0.3); }

/* Grille articles */
.tp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tp-blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Carte article */
.tp-blog-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tp-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.tp-blog-card__thumb {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--tp-navy);
}
.tp-blog-card__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tp-navy) 0%, #1e3a52 100%);
}
.tp-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.tp-blog-card:hover .tp-blog-card__img { transform: scale(1.04); }

.tp-blog-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.tp-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tp-blog-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-cyan);
  text-decoration: none;
}
.tp-blog-card__cat:hover { color: #2a7a9e; }
.tp-blog-card__date {
  font-size: 0.78rem;
  color: #b0b8c4;
}

.tp-blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-navy);
  line-height: 1.35;
  margin: 0;
}
.tp-blog-card__title a { color: inherit; text-decoration: none; }
.tp-blog-card__title a:hover { color: var(--tp-cyan); }

.tp-blog-card__excerpt {
  font-size: 0.875rem;
  color: #7f8a9c;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.tp-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tp-cyan);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.18s;
}
.tp-blog-card__link:hover { gap: 10px; }

/* Pagination */
.tp-blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.tp-blog-pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tp-blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-navy);
  background: #f1f4f8;
  text-decoration: none;
  transition: all 0.18s;
}
.tp-blog-pagination .page-numbers:hover { background: var(--tp-cyan); color: #fff; }
.tp-blog-pagination .page-numbers.current { background: var(--tp-navy); color: #fff; }

/* ============================================================
   BLOG — ARTICLE (SINGLE)
   ============================================================ */

.tp-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Corps article */
.tp-article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3a4555;
}
.tp-article-content h2 {
  font-size: 1.5rem;
  color: var(--tp-navy);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 2px solid var(--tp-cyan);
}
.tp-article-content h3 {
  font-size: 1.15rem;
  color: var(--tp-navy);
  margin: 28px 0 12px;
}
.tp-article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #4a5a6a;
  margin: 20px 0 8px;
}
.tp-article-content p { margin-bottom: 18px; }
.tp-article-content ul, .tp-article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.tp-article-content li { margin-bottom: 6px; }
.tp-article-content strong { color: var(--tp-navy); font-weight: 700; }
.tp-article-content a { color: var(--tp-cyan); text-decoration: underline; }
.tp-article-content a:hover { color: #2a7a9e; }
.tp-article-content blockquote {
  border-left: 4px solid var(--tp-cyan);
  background: rgba(74,154,190,0.06);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #556070;
}
.tp-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.tp-article-content th {
  background: var(--tp-navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.tp-article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8edf3;
  color: #444;
}
.tp-article-content tr:nth-child(even) td { background: #f7f9fc; }
.tp-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

/* Tags */
.tp-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8edf3;
}
.tp-article-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f1f4f8;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #7f8a9c;
  text-decoration: none;
  transition: all 0.18s;
}
.tp-article-tag:hover { background: var(--tp-navy); color: #fff; }

/* Partage */
.tp-article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #7f8a9c;
  font-weight: 600;
}
.tp-article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f4f8;
  color: var(--tp-navy);
  transition: all 0.18s;
  text-decoration: none !important;
}
.tp-article-share a:hover { background: var(--tp-navy); color: #fff; }

/* Sidebar */
.tp-article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tp-sidebar-cta {
  background: var(--tp-navy);
  border-radius: 12px;
  padding: 22px 20px;
}
.tp-sidebar-cta__title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
}
.tp-sidebar-cta__text {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.tp-sidebar-cta__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 12px;
  transition: color 0.18s;
}
.tp-sidebar-cta__phone:hover { color: var(--tp-cyan); }

.tp-sidebar-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0b8c4;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf3;
}

.tp-sidebar-recent,
.tp-sidebar-cats {
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 18px 18px;
}
.tp-sidebar-recent-list,
.tp-sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-sidebar-recent-list a,
.tp-sidebar-cat-list a {
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color 0.18s;
}
.tp-sidebar-recent-list a:hover,
.tp-sidebar-cat-list a:hover { color: var(--tp-cyan); }
.tp-sidebar-cat-list span {
  background: #e8edf3;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7f8a9c;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* ── Responsive blog ───────────────────────────────────── */
@media (max-width: 900px) {
  .tp-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-article-layout {
    grid-template-columns: 1fr;
  }
  .tp-article-sidebar { position: static; }
}
@media (max-width: 600px) {
  .tp-blog-grid,
  .tp-blog-grid--3 { grid-template-columns: 1fr; }
}

/* ── Galerie réalisations ──────────────────────────────── */
.tp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.tp-gallery__item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: transparent;
}
.tp-gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.92;
}
.tp-gallery__item:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.tp-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 20px 14px 12px;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .tp-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tp-gallery { grid-template-columns: 1fr; }
  .tp-gallery__item img { height: 220px; }
}

/* ── Galerie 5 colonnes ────────────────────────────────── */
.tp-gallery--5col {
  grid-template-columns: repeat(5, 1fr);
}
.tp-gallery--5col .tp-gallery__item img {
  height: 200px;
}
@media (max-width: 1100px) {
  .tp-gallery--5col { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .tp-gallery--5col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .tp-gallery--5col { grid-template-columns: repeat(2, 1fr); }
  .tp-gallery--5col .tp-gallery__item img { height: 160px; }
}

/* ── Galerie 4 colonnes ────────────────────────────────── */
.tp-gallery--4col {
  grid-template-columns: repeat(4, 1fr);
}
.tp-gallery--4col .tp-gallery__item img {
  height: 240px;
}
@media (max-width: 900px) {
  .tp-gallery--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tp-gallery--4col { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   MASONRY — disposition naturelle sans rognage
   ══════════════════════════════════════════════════════════ */
.tp-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 4px;       /* unité de base ultra-fine */
  gap: 8px;
  margin-top: 32px;
}
.tp-masonry__item {
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
  position: relative;
}
.tp-masonry__item img {
  width: 100%;
  display: block;            /* hauteur naturelle — aucun rognage */
  border-radius: 10px;
  transition: transform 0.35s ease;
}
.tp-masonry__item:hover img {
  transform: scale(1.03);
}
.tp-masonry__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 18px 12px 10px;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.tp-masonry__item:hover .tp-masonry__caption {
  opacity: 1;
}
/* Catégorie badge */
.tp-masonry__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(74,154,190,0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
}
/* Responsive */
@media (max-width: 1100px) {
  .tp-masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tp-masonry { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
@media (max-width: 400px) {
  .tp-masonry { grid-template-columns: 1fr; }
}

/* ── Galerie défilante horizontale ─────────────────────────── */
.tp-hscroll-wrap {
  position: relative;
  margin-top: 28px;
}
/* Fondu sur les bords */
.tp-hscroll-wrap::before,
.tp-hscroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.tp-hscroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--tp-bg, #fff), transparent);
}
.tp-hscroll-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--tp-bg, #fff), transparent);
}
.tp-section--alt .tp-hscroll-wrap::before {
  background: linear-gradient(to right, var(--tp-section-alt-bg, #f4f6f9), transparent);
}
.tp-section--alt .tp-hscroll-wrap::after {
  background: linear-gradient(to left, var(--tp-section-alt-bg, #f4f6f9), transparent);
}
.tp-hscroll {
  display: flex;
  gap: 10px;
  height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px 2px;
}
.tp-hscroll::-webkit-scrollbar { display: none; }
.tp-hscroll.is-grabbing { cursor: grabbing; }
.tp-hscroll__item {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.tp-hscroll__item img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.35s ease;
  pointer-events: none;
}
.tp-hscroll__item:hover img {
  transform: scale(1.03);
}
.tp-hscroll__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 18px 12px 10px;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.tp-hscroll__item:hover .tp-hscroll__caption { opacity: 1; }
/* Hauteur adaptée selon usage */
.tp-hscroll--tall  { height: 380px; }
.tp-hscroll--short { height: 220px; }
@media (max-width: 768px) {
  .tp-hscroll       { height: 220px; }
  .tp-hscroll--tall { height: 260px; }
}
@media (max-width: 480px) {
  .tp-hscroll       { height: 180px; }
  .tp-hscroll--tall { height: 200px; }
}
/* Flèches de navigation */
.tp-hscroll__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-navy, #0f1923);
  font-size: 1.5rem;
  line-height: 1;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.tp-hscroll__arrow:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.tp-hscroll__arrow--prev { left: 12px; }
.tp-hscroll__arrow--next { right: 12px; }
.tp-hscroll__arrow[hidden] { display: none !important; }

/* Intro texte galerie */
.tp-gallery-intro {
  text-align: center;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 0.95rem;
}
/* ============================================================
   MOBILE OPTIMISATION — SCROLL HORIZONTAL (≤768px)
   Classes utilitaires pour overrider les styles inline des pages.
   Contenu intégralement dans le DOM → indexation Google intacte.
   ============================================================ */
@media (max-width: 768px) {

  /* Zones d'intervention (grid repeat(3,1fr) → hscroll) */
  .tp-m-zones {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    grid-template-columns: unset !important;
    padding-bottom: 10px;
  }
  .tp-m-zones > div {
    min-width: 220px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* Stats inline (grid repeat(4,1fr) → hscroll) */
  .tp-m-stats {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    grid-template-columns: unset !important;
    padding-bottom: 10px;
  }
  .tp-m-stats > div {
    min-width: 150px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* Étapes process (flex-direction:row → hscroll) */
  .tp-m-process {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px;
  }
  .tp-m-process > div {
    min-width: 200px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* Solutions sectorielles (grid repeat(3,1fr) → hscroll) */
  .tp-m-solutions {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    grid-template-columns: unset !important;
    padding-bottom: 10px;
  }
  .tp-m-solutions > div {
    min-width: 240px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* Logos références clients (flex-wrap → hscroll une ligne) */
  .tp-m-logos {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    justify-content: flex-start !important;
    padding-bottom: 10px;
  }
  .tp-m-logos > div {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
}

.tp-gallery-cta {
  text-align: center;
  margin-top: 28px;
}

/* ── LOGOS CLIENTS (bande de réassurance) ─────────────────── */
.tp-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}
.tp-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-logo-item img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .65;
  filter: grayscale(100%);
  transition: opacity .25s, filter .25s;
}
.tp-logo-item img:hover {
  opacity: 1;
  filter: none;
}
@media (max-width: 768px) {
  .tp-logos-grid {
    gap: 14px 20px;
  }
  .tp-logo-item img {
    height: 32px;
    max-width: 110px;
  }
}

/* ── M9 : Hub → Top villes maillage ──────────────────────────────── */
.tp-hub-top-villes {
  background: #f8f8f6;
  padding: 56px 24px;
  margin-top: 0;
}
.tp-hub-villes-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.tp-hub-villes-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 32px;
  text-align: center;
}
.tp-hub-villes-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 16px;
}
.tp-hub-villes-grid li a {
  display: block;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 6px;
  font-size: .92rem;
  color: #2c5f2e;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-hub-villes-grid li a:hover {
  border-color: #2c5f2e;
  box-shadow: 0 2px 8px rgba(44,95,46,.12);
  text-decoration: none;
}
.tp-hub-villes-more {
  text-align: center;
  margin: 0;
}
.tp-hub-villes-more a {
  color: #2c5f2e;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.tp-hub-villes-more a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .tp-hub-villes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tp-hub-villes-grid li a {
    font-size: .82rem;
    padding: 8px 10px;
  }
  .tp-hub-top-villes {
    padding: 40px 16px;
  }
}
