/* ==========================================================================
   TC4 Motorsport — theme enfant de Hummingbird 2.0.0 (PrestaShop 9.1.x)
   assets/css/custom.css : charge par le coeur APRES le CSS du parent
   (FrontController::setMedia, 'theme-custom', priorite 1000).
   Partie 1 : polices hebergees + charte appliquee aux variables Bootstrap 5.3 de Hummingbird.
   Partie 2 : composants de la maquette validee le 07/11 (design/proposition-ps9-2026-11/).
   Ce fichier est GENERE par ../build-custom-css.py : modifier _custom-partie1.css ou la maquette.
   ========================================================================== */

/* ----- Polices de la charte, hebergees dans le theme (defaut n° 1 du 07/11 : plus de Google Fonts) ----- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/barlow-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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/barlow-500.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: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-600.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: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/barlow-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: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap;
  src: url('../fonts/barlow-condensed-800-italic.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: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap;
  src: url('../fonts/barlow-condensed-900-italic.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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/barlow-condensed-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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/barlow-condensed-800.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: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/barlow-condensed-900.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; }

/* ----- Charte -> variables Bootstrap du parent ----- */
:root, [data-bs-theme=light] {
  --bs-primary: #0044AA;
  --bs-primary-rgb: 0, 68, 170;
  --bs-primary-text-emphasis: #001F5C;
  --bs-primary-bg-subtle: #EAF1FF;
  --bs-primary-border-subtle: #9DB8E3;
  --bs-body-font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-color: #1A1D24;
  --bs-body-color-rgb: 26, 29, 36;
  --bs-secondary-color: #56637A;
  --bs-tertiary-bg: #F0F2F5;
  --bs-tertiary-bg-rgb: 240, 242, 245;
  --bs-link-color: #0044AA;
  --bs-link-color-rgb: 0, 68, 170;
  --bs-link-hover-color: #001F5C;
  --bs-link-hover-color-rgb: 0, 31, 92;
  --bs-border-color: #E1E5EB;
  --bs-border-radius: .625rem;
  --bs-border-radius-sm: .375rem;
  --bs-border-radius-lg: .625rem;
  --bs-focus-ring-color: rgba(0, 68, 170, .35);
  --header-top-color: #ffffff;
  --header-top-color-hover: #EEFF00;
}

/* ----- Titres : capitales condensees (Barlow Condensed), partout, pas seulement sur les pages CE ----- */
h1, h2, h3, .h1, .h2, .h3, .page-title, .product__name, .page-header h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
}
h1, .h1 { font-weight: 900; }
h2, .h2, h3, .h3 { font-weight: 800; }

/* ----- Boutons : principal jaune texte noir, secondaire bleu ----- */
.btn { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.btn-primary {
  --bs-btn-color: #000; --bs-btn-bg: #EEFF00; --bs-btn-border-color: #EEFF00;
  --bs-btn-hover-color: #EEFF00; --bs-btn-hover-bg: #1A1D24; --bs-btn-hover-border-color: #1A1D24;
  --bs-btn-active-color: #EEFF00; --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000;
  --bs-btn-disabled-color: #56637A; --bs-btn-disabled-bg: #E1E5EB; --bs-btn-disabled-border-color: #E1E5EB;
  --bs-btn-focus-shadow-rgb: 0, 68, 170;
}
.btn-secondary, .btn-outline-primary:hover {
  --bs-btn-color: #fff; --bs-btn-bg: #0044AA; --bs-btn-border-color: #0044AA;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #001F5C; --bs-btn-hover-border-color: #001F5C;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #001F5C; --bs-btn-active-border-color: #001F5C;
}
.btn-outline-primary {
  --bs-btn-color: #0044AA; --bs-btn-border-color: #0044AA;
  --bs-btn-hover-bg: #0044AA; --bs-btn-hover-border-color: #0044AA; --bs-btn-hover-color: #fff;
}

/* ----- Prix : condense, gras ----- */
.price, .product__price, .product-miniature__price, .current-price-value {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800;
}

/* ----- Noms des produits en liste : jamais coupes (defaut du 07/11, gabarit classic) ----- */
.product-miniature__title, .product-miniature .product-title { white-space: normal; overflow: visible; text-overflow: clip; }

/* ----- En-tete : UNE bande blanche comme la maquette (logo, menu, recherche, compte, panier bleu) ----- */
.tc4-entete-hb { background: #fff; border-bottom: 1px solid #E1E5EB; }
.tc4-entete-hb .header-bottom__row { min-height: 76px; }
.tc4-entete-hb .header-bottom__logo img { height: 44px; width: auto; }
.ps-mainmenu .menu__link, .ps-mainmenu a { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.06rem; text-transform: uppercase; letter-spacing: .04em; color: #1A1D24; }
.ps-mainmenu a:hover { color: #0044AA; }
.ps-searchbar__input { height: 44px; background: #F0F2F5; border: 1px solid #E1E5EB; border-radius: 6px; }
.tc4-entete-hb__actions { gap: 10px; }
.tc4-entete-hb__actions .header-block__action-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 6px;
  color: #1A1D24; text-decoration: none; font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
#_desktop_ps_shoppingcart .header-block__action-btn { background: #0044AA; color: #fff; padding: 0 14px; }
#_desktop_ps_shoppingcart .header-block__badge { margin-right: 14px; } /* pastille collee au bord : pe-md-0 du parent est en @layer utilities, son !important bat tout !important hors couche, d'ou une marge sur la pastille et non un padding sur le bouton */
#_desktop_ps_shoppingcart .header-block__action-btn:hover { background: #001F5C; color: #fff; }
.header-block__badge { background: #EEFF00; color: #000; font-weight: 800; }

/* ----- Accueil : sections bord a bord comme la maquette (Hummingbird espace les blocs de 40 px + 32 px en bas) ----- */
.page-content.page-content--home { gap: 0; row-gap: 0; }
.center-column.page:has(> .page-content--home) { padding-bottom: 0; }

/* ----- Cartes produit (accueil et listes) : nom en capitales condensees, prix marque (maquette .tc4-produit) ----- */
.product-miniature__title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .01em; color: #1A1D24; text-decoration: none;
}
.product-miniature__title:hover { color: #0044AA; }
.product-miniature__price { font-size: 1.35rem; color: #1A1D24; }

/* ----- Newsletter (displayFooterBefore) : fond clair du module, titre lisible (il etait blanc sur gris clair) ----- */
.footer__before { background: #F0F2F5; color: #1A1D24; }
.ps-emailsubscription .h3 { color: #1A1D24; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; }

/* ----- Fiche produit : galerie piece seule / repere / vue eclatee (08/11/2026, exemple valide par Nicolas) ----- */
.tc4-legende { margin: 0; padding: 12px 16px; background: #EAF1FF; color: #1A1D24; font-weight: 600; font-size: .95rem; }
.tc4-vignette-titre { display: block; margin-top: 6px; padding-bottom: 4px; font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800; font-size: 1rem; line-height: 1.1; text-transform: uppercase; color: #1A1D24; text-align: left;
  border-bottom: 6px solid transparent; }
.product__thumbnail.active .tc4-vignette-titre { border-bottom-color: #EEFF00; }
.product__thumbnail.active .product__thumbnail-image { outline: 2px solid #0044AA; }
@media (min-width: 992px) {
  .product__images:has(.tc4-vignette-titre) { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start; }
  .product__images:has(.tc4-vignette-titre) .product__thumbnails { order: -1; margin: 0; }
  .product__images:has(.tc4-vignette-titre) .product__thumbnails-list { display: flex; flex-direction: column; gap: 14px; padding: 0; }
  .product__images:has(.tc4-vignette-titre) .product__thumbnail { width: 116px; }
}
/* zoom sur telephone : la vue eclatee garde 1000 px de large, on la fait glisser du doigt */
@media (max-width: 600px) {
  .product-images-modal .modal-body:has(img) { overflow: auto; }
  .product-images-modal .carousel-inner { overflow: visible; }
  .product-images-modal .carousel-item img { width: 1000px; max-width: none; }
}

/* ----- Pied de page du parent ----- */

.footer__main.tc4-pied-hb { background: #12141A; color: rgba(255, 255, 255, .72); border-top: 6px solid #EEFF00; padding: 56px 0 24px; }
.tc4-pied-hb a { color: rgba(255, 255, 255, .82); }
.tc4-pied-hb a:hover { color: #fff; }
.tc4-pied-hb__marque { margin-bottom: 24px; }
.tc4-pied-hb__logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 16px; }
.tc4-pied-hb__marque .tc4-externe { color: #EEFF00; font-weight: 700; }
.tc4-pied-hb .footer-block__title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #EEFF00; }
.tc4-copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* ----- Accueil : le sélecteur de pieces ----- */
.tc4-trouveur__message { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: #56637A; }
.tc4-trouveur__message:empty { display: none; }
.tc4-champ select:disabled { opacity: .6; }
.tc4-pneus .tc4-entete-section + * h2:not(.tc4-h2) { display: none; } /* titre du module : doublon du notre */


/* ----- Vue eclatee : planche a gauche, tableau a droite (mise en page validee par Nicolas le 09/11).
   Module Spare Parts non modifie : uniquement sa presentation (spareparts-div.tpl : image et liste sont voisines).
   Colonne Stock masquee ici : elle depend de la gestion de stock de toute la boutique, ne pas la couper au BO.
   top 131 px / 143 px : l'en-tete du site reste affiche au defilement et mesure 119 px. ----- */
section.spareparts-products {
  --larg: min(calc(100vw - 64px), 1840px);
  display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 28px; align-items: start;
  width: var(--larg); max-width: none; margin-left: calc((100% - var(--larg)) / 2);
}
section.spareparts-products #spareparts-category-scene { position: sticky; top: 131px; margin: 0; text-align: center; }
section.spareparts-products #spareparts-category-scene img { display: block; width: 100%; height: auto; max-height: calc(100vh - 143px); object-fit: contain; }
section.spareparts-products #spareparts-products-div { display: block; width: 100%; min-width: 0; margin: 0; }
section.spareparts-products #spareparts-th,
section.spareparts-products .spareparts-tr { display: grid; grid-template-columns: 42px minmax(0, 1fr) 82px 112px; column-gap: 10px; align-items: center; float: none; width: auto; }
section.spareparts-products #spareparts-th > div,
section.spareparts-products .spareparts-tr > div { display: block; float: none; width: auto; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
section.spareparts-products #spareparts-th { grid-template-areas: "num nom prix cart"; padding: 11px 10px; background: #1A1D24; color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px 8px 0 0; }
section.spareparts-products .spareparts-tr { grid-template-areas: "num nom prix cart" "num ref prix cart"; row-gap: 1px; padding: 9px 10px; border: 0; border-bottom: 1px solid #E1E5EC; background: #fff; }
section.spareparts-products .spareparts-tr:nth-of-type(2n+1) { background: #F8F9FB; }
section.spareparts-products #spareparts-th > .spareparts-th-reference,
section.spareparts-products #spareparts-th > .spareparts-th-stock,
section.spareparts-products .spareparts-tr > .spareparts-td-stock { display: none; }
section.spareparts-products .spareparts-tr > .spareparts-td-name.no-product-condition { text-align: left; width: auto; }
section.spareparts-products .spareparts-th-num { grid-area: num; font-size: 0; }
section.spareparts-products .spareparts-th-num::after { content: "N\B0"; font-size: 16px; }
section.spareparts-products .spareparts-th-name { grid-area: nom; }
section.spareparts-products .spareparts-th-price { grid-area: prix; }
section.spareparts-products .spareparts-tr > .spareparts-td-num { grid-area: num; justify-self: center; width: 34px; height: 34px; line-height: 30px; text-align: center; border: 2px solid #1A1D24; border-radius: 50%; font-weight: 700; font-size: 15px; }
section.spareparts-products .spareparts-tr > .spareparts-td-name { grid-area: nom; line-height: 1.25; }
section.spareparts-products .spareparts-td-name a { color: #1A1D24; font-weight: 500; text-decoration: none; }
section.spareparts-products .spareparts-tr > .spareparts-td-reference { grid-area: ref; color: #667085; font-size: 13.5px; }
section.spareparts-products .spareparts-td-reference::before { content: "R\E9 f. "; }
section.spareparts-products .spareparts-tr > .spareparts-td-price { grid-area: prix; white-space: nowrap; }
section.spareparts-products .spareparts-td-price .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
section.spareparts-products .spareparts-td-price .price { font-weight: 800; font-size: 16px; }
section.spareparts-products .spareparts-tr > .spareparts-td-cart { grid-area: cart; }
section.spareparts-products .spareparts-add-to-cart { flex-wrap: nowrap; }
section.spareparts-products .spareparts-add-to-cart input { width: 52px; min-width: 0; flex: 0 0 52px; text-align: center; }

@media (max-width: 1099px) {
  section.spareparts-products { display: block; width: auto; margin-left: 0; }
  section.spareparts-products #spareparts-category-scene { position: static; margin-bottom: 16px; }
  section.spareparts-products #spareparts-category-scene img { max-height: none; }
}
@media (max-width: 600px) {
  section.spareparts-products #spareparts-th { display: none; }
  section.spareparts-products .spareparts-tr { grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "num nom prix" "num ref ref" "num cart cart"; row-gap: 4px; }
  section.spareparts-products .spareparts-tr > .spareparts-td-cart { justify-self: end; width: 112px; }
}

/* ----- Fiche piece TM (maquette validee par Nicolas le 09/11). Tout est conditionne a .tc4-origine ou aux blocs du
   module tc4fiche : tant que l'interrupteur du module est ferme, ces regles ne s'appliquent a rien. ----- */
.product__right:has(.tc4-origine) .product__name { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1.05; margin: 0; }
.product__right .tc4-origine { margin-bottom: 8px; }
.product__right .tc4-ref-ligne { margin: 10px 0 0; }
.product__right:has(.tc4-origine) .product__prices { margin: 22px 0 14px; }
.product__right:has(.tc4-origine) .product__price { font-size: 2.6rem; line-height: 1; }
.product__right:has(.tc4-origine) .product__tax-label { font-size: 1rem; }
.product__right .tc4-montage { margin-top: 22px; }
.product__right .tc4-garanties { margin-top: 18px; }
.product__container:has(.tc4-origine) + .product__bottom { display: none; }
.tc4-texte { padding: 56px 0 64px; border-top: 1px solid #E1E5EC; scroll-margin-top: 131px; }
.tc4-texte__description h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; text-transform: uppercase; margin: 0; }
.tc4-texte__description p { font-size: 1.1rem; max-width: 80ch; margin: 12px 0 0; }
.tc4-texte__h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; margin: 30px 0 14px; text-transform: uppercase; letter-spacing: .02em; }
.tc4-compat { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 36px; align-items: start; }
.tc4-compat__groupe h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; color: #0044AA; text-transform: uppercase; }
.tc4-compat__groupe ul { list-style: none; margin: 0; padding: 0; }
.tc4-compat__groupe li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid #E1E5EC; font-size: .97rem; }
.tc4-compat__groupe li span { white-space: nowrap; }
.tc4-compat__groupe li span:last-child { color: #56637A; font-variant-numeric: tabular-nums; text-align: right; white-space: normal; }
.tc4-texte__note { margin: 18px 0 0; color: #56637A; font-size: .95rem; }
.tc4-fiche-planche { padding: 64px 0; background: #F0F2F5; box-shadow: 0 0 0 100vmax #F0F2F5; clip-path: inset(0 -100vmax); }
.tc4-fiche-planche .tc4-pieces { background: #fff; }
.tc4-meme-planche .est-actif td { background: #EAF1FF; }

/* ----- Fiche pneu (proposition validee par Nicolas le 09/11) : meme forme que la fiche piece. Les pneus ne s'expedient pas :
   le bandeau general n'annonce plus la livraison sur les fiches pneus ni sur la categorie. ----- */
@media (min-width: 992px) {
  .product__container:has(.tc4-pneu__retrait) .product__images { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start; }
  .product__container:has(.tc4-pneu__retrait) .product__thumbnails { order: -1; margin: 0; }
  .product__container:has(.tc4-pneu__retrait) .product__thumbnails-list { display: flex; flex-direction: column; gap: 14px; padding: 0; }
  .product__container:has(.tc4-pneu__retrait) .product__thumbnail { width: 116px; }
}
.tc4-pneu__retrait { margin-top: 14px; padding: 14px 18px; border-left: 4px solid #EEFF00; background: #1A1D24; color: #fff; border-radius: 8px; }
.tc4-pneu__retrait strong { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.tc4-pneu__retrait span { display: block; margin-top: 4px; font-size: .97rem; line-height: 1.4; }
.tc4-pneu__texte { margin-top: 18px; column-count: 2; column-gap: 48px; }
.tc4-pneu__texte p { margin: 0 0 14px; break-inside: avoid; font-size: 1.04rem; }
.tc4-repere--pneu { font-size: 13px; }
.tc4-pneu__rupture { display: block; text-align: right; color: #56637A; font-weight: 600; }
@media (max-width: 760px) { .tc4-pneu__texte { column-count: 1; } }
body:has(.tc4-pneu__retrait) .tc4-bandeau-haut .tc4-conteneur > span:first-child,
body.category-id-3 .tc4-bandeau-haut .tc4-conteneur > span:first-child { font-size: 0; }
body:has(.tc4-pneu__retrait) .tc4-bandeau-haut .tc4-conteneur > span:first-child::after,
body.category-id-3 .tc4-bandeau-haut .tc4-conteneur > span:first-child::after { content: "Pneus : retrait uniquement, aucune exp\E9 dition"; font-size: .9rem; }

/* Pages de categories (pneus, pieces TM, annee, moto), propositions validees le 09/11/2026 */
.tc4c-ariane{background:#F0F2F5;border-bottom:1px solid #E1E5EB}.tc4c-ariane ol{list-style:none;margin:0;padding:12px 0;display:flex;flex-wrap:wrap;gap:6px;font-size:.92rem}
.tc4c-ariane li+li::before{content:"/";margin-right:6px;color:#56637A}.tc4c-ariane a{color:#0044AA;text-decoration:none}
.tc4c-tete{position:relative;background:#001F5C;color:#fff;overflow:hidden;isolation:isolate}
.tc4c-tete__image{position:absolute;inset:0 0 0 52%;z-index:-2;background:#fff}.tc4c-tete__image img{width:100%;height:100%;object-fit:contain;padding:18px 40px 18px 12%}
.tc4c-tete--photo .tc4c-tete__image{background:#F6F5F5}
.tc4c-tete::before,.tc4c-tete::after{content:"";position:absolute;inset:0;z-index:-1}
.tc4c-tete::before{background:#EEFF00;clip-path:polygon(0 0,calc(62% + 6px) 0,calc(56% + 6px) 100%,0 100%)}
.tc4c-tete::after{background:#0044AA;clip-path:polygon(0 0,62% 0,56% 100%,0 100%)}
.tc4c-tete__texte{max-width:640px;padding:46px 0 50px}
.tc4c-tete h1{font-family:"Barlow Condensed",sans-serif;font-weight:900;font-size:clamp(2.3rem,3.6vw,3.5rem);line-height:1;text-transform:uppercase;margin:0;color:#fff}
.tc4c-tete p{margin:14px 0 0;font-size:1.13rem;line-height:1.45;color:rgba(255,255,255,.9);max-width:54ch}
.tc4c-chiffres{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.tc4c-chiffre{display:flex;align-items:center;gap:8px;background:#EEFF00;color:#000;padding:7px 12px;border-radius:4px;transform:skewX(-8deg)}
.tc4c-chiffre b{font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:900;font-size:1.8rem;line-height:1}
.tc4c-chiffre span{font-family:"Barlow Condensed",sans-serif;font-weight:700;text-transform:uppercase;font-size:.95rem;line-height:1}
.tc4c-bloc{padding:52px 0}.tc4c-bloc--gris{background:#F0F2F5}
.tc4c-bloc h2:not(.tc4c-groupe__titre),.tc4c-h2{font-family:"Barlow Condensed",sans-serif;font-weight:900;font-size:clamp(1.8rem,2.6vw,2.4rem);line-height:1.05;text-transform:uppercase;margin:0 0 6px;color:#1A1D24}
.tc4c-chapeau{color:#56637A;font-size:1.08rem;margin:0 0 24px;max-width:70ch}
.tc4c-retrait{background:#1A1D24;color:#fff;border-left:6px solid #EEFF00;padding:16px 22px;border-radius:8px;display:flex;flex-wrap:wrap;gap:4px 22px;align-items:baseline;margin-top:-26px;position:relative;z-index:2}
.tc4c-retrait strong{font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:1.3rem;text-transform:uppercase}
.tc4c-groupe{margin-top:34px}.tc4c-groupe:first-of-type{margin-top:0}
.tc4c-groupe__titre{font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.45rem;text-transform:uppercase;margin:0 0 14px;padding-bottom:8px;border-bottom:3px solid #0044AA;color:#1A1D24}
.tc4c-groupe__titre small{font-family:Barlow,sans-serif;font-weight:500;font-size:.95rem;text-transform:none;color:#56637A;margin-left:8px}
.tc4c-pneus{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tc4c-pneu{background:#fff;border:1px solid #E1E5EB;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;position:relative}
.tc4c-pneu img{width:100%;height:230px;object-fit:contain;background:#F6F5F5;display:block}
.tc4c-pneu__gomme{position:absolute;top:10px;left:10px;background:#EEFF00;color:#000;font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:900;font-size:1.25rem;padding:2px 10px;border-radius:4px}
.tc4c-pneu__corps{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.tc4c-pneu__corps a{font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:1.13rem;line-height:1.12;color:#1A1D24;text-decoration:none;text-transform:uppercase}
.tc4c-pneu__bas{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px}
.tc4c-pneu__prix{font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.5rem;white-space:nowrap}
.tc4c-gommes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tc4c-gomme{background:#fff;border-radius:10px;padding:18px;border:1px solid #E1E5EB}.tc4c-gomme b{display:inline-block;background:#EEFF00;font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:900;font-size:1.3rem;padding:1px 10px;border-radius:4px}
.tc4c-gomme h3{font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.25rem;text-transform:uppercase;margin:10px 0 4px}.tc4c-gomme p{margin:0;font-size:1rem}
.tc4c-texte{columns:2;column-gap:48px}.tc4c-texte p{margin:0 0 14px;break-inside:avoid;font-size:1.05rem}
.tc4c-portes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tc4c-porte{display:block;background:#001F5C;color:#fff;border-radius:10px;padding:22px;text-decoration:none;border-bottom:5px solid #EEFF00}
.tc4c-porte strong{display:block;font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.45rem;text-transform:uppercase}.tc4c-porte span{color:rgba(255,255,255,.85);font-size:.98rem}
.tc4c-porte:hover{background:#0044AA}
.tc4c-trouveur{position:relative;z-index:2;margin-top:-26px;background:#fff;border-radius:10px;border-top:6px solid #EEFF00;box-shadow:0 10px 30px rgba(0,31,92,.16);padding:18px 22px;display:grid;grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(0,1fr)) auto;gap:14px;align-items:end}
.tc4c-trouveur h2{font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.5rem;text-transform:uppercase;margin:0;line-height:1.05;align-self:center}.tc4c-trouveur label{display:block;font-weight:600;font-size:.9rem;margin-bottom:4px;color:#56637A}
.tc4c-trouveur select{width:100%;height:48px;border:1px solid #E1E5EB;border-radius:6px;padding:0 12px;font:inherit;color:#1A1D24;background:#F0F2F5}.tc4c-trouveur button{height:48px;border:0;border-radius:6px;background:#0044AA;color:#fff;font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:1.1rem;text-transform:uppercase;padding:0 18px}
.tc4c-annees{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.tc4c-annee{display:block;background:#fff;border:1px solid #E1E5EB;border-radius:10px;padding:14px 16px;text-decoration:none;color:#1A1D24;position:relative;overflow:hidden}
.tc4c-annee b{display:block;font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:900;font-size:2.9rem;line-height:1}
.tc4c-annee span{font-size:.95rem;color:#56637A}.tc4c-annee::after{content:"";position:absolute;right:-16px;top:0;bottom:0;width:30px;background:#0044AA;transform:skewX(-14deg)}
.tc4c-annee:hover{background:#EAF1FF;border-color:#0044AA}
.tc4c-etapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:e}
.tc4c-etape{background:#fff;border-radius:10px;padding:20px;border:1px solid #E1E5EB}.tc4c-etape h3{font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.3rem;text-transform:uppercase;margin:0 0 4px}.tc4c-etape p{margin:0}
.tc4c-etape--num h3::before{counter-increment:e;content:counter(e);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#0044AA;color:#fff;font-size:1rem;margin-right:8px;vertical-align:2px}
.tc4c-puces{display:flex;gap:8px;overflow-x:auto;padding:12px 0}.tc4c-puces a{flex:none;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid #C9D0DB;color:#1A1D24;text-decoration:none;font-weight:600}.tc4c-puces a[aria-current]{background:#0044AA;border-color:#0044AA;color:#fff}
.tc4c-motos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.tc4c-moto{display:block;background:#fff;border:1px solid #E1E5EB;border-left:6px solid #0044AA;border-radius:8px;padding:12px 14px;text-decoration:none;color:#1A1D24}
.tc4c-moto b{font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:900;font-size:2.4rem;line-height:1}.tc4c-moto i{font-style:normal;font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:1.1rem;margin-left:6px;color:#56637A}.tc4c-moto span{display:block;font-size:.93rem;color:#56637A;margin-top:2px}
.tc4c-moto:hover{background:#EAF1FF}.tc4c-moto--4t{border-left-color:#1A1D24}
.tc4c-planches{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.tc4c-planche{display:block;background:#fff;border:1px solid #E1E5EB;border-radius:10px;overflow:hidden;text-decoration:none;color:#1A1D24}
.tc4c-planche img{display:block;width:100%;height:170px;object-fit:contain;padding:8px;background:#fff}.tc4c-planche span{display:block;padding:9px 12px;background:#F0F2F5;font-family:"Barlow Condensed",sans-serif;font-weight:700;text-transform:uppercase;font-size:1.03rem;line-height:1.1}
.tc4c-planche:hover{border-color:#0044AA}.tc4c-planche:hover span{background:#0044AA;color:#fff}
@media (max-width:1050px){.tc4c-trouveur{grid-template-columns:1fr 1fr}.tc4c-trouveur h2{grid-column:1/-1}.tc4c-pneus,.tc4c-gommes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.tc4c-tete__image{display:none}.tc4c-tete::before,.tc4c-tete::after{clip-path:none}.tc4c-tete::before{display:none}.tc4c-tete__texte{padding:32px 0 46px}.tc4c-etapes,.tc4c-portes{grid-template-columns:1fr}.tc4c-texte{columns:1}.tc4c-trouveur{grid-template-columns:1fr}.tc4c-pneu img{height:170px}}
.tc4c-texte{margin-top:14px}
.tc4c-portes{margin-top:22px}
@media (max-width:760px){.tc4c-motos,.tc4c-planches{grid-template-columns:repeat(2,minmax(0,1fr))}.tc4c-planche img{height:120px}}

/* ==========================================================================
   Partie 2 : composants de la maquette validee (classes tc4-*, utilisees par les gabarits du theme)
   ========================================================================== */


:root {
  /* Couleurs de la charte (mesurees sur le site le 07/11) */
  --tc4-bleu: #0044AA;          /* marque : boutons secondaires, liens, panier */
  --tc4-nuit: #001F5C;          /* bandeaux profonds */
  --tc4-jaune: #EEFF00;         /* accent : bouton principal, liseres, plaques. Jamais en texte sur blanc */
  --tc4-anthracite: #1A1D24;    /* titres, bandeaux sombres, pied de page */
  --tc4-ciel: #EAF1FF;          /* fonds d'information, ligne active */
  --tc4-gris: #F0F2F5;          /* sections alternees */
  --tc4-trait: #E1E5EB;         /* bordures */
  /* #6B7A8D (gris de la charte) ne fait que 4,4:1 sur blanc : fonce d'un cran pour le texte */
  --tc4-texte-2: #56637A;
  --tc4-photo-fond: #F6F5F5;    /* fond des visuels de pneus */

  /* La diagonale : un seul angle pour tout le site */
  --tc4-biais: 9vw;             /* decalage horizontal haut/bas du biais sur les grands blocs */
  --tc4-lisere: 6px;

  --tc4-titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --tc4-texte: 'Barlow', system-ui, sans-serif;

  --tc4-largeur: 1240px;
  --tc4-rayon: 10px;
}






:focus-visible { outline: 3px solid var(--tc4-bleu); outline-offset: 2px; }
.tc4-sombre :focus-visible { outline-color: var(--tc4-jaune); }

.tc4-conteneur { width: 100%; max-width: var(--tc4-largeur); margin: 0 auto; padding: 0 24px; }

/* Titres : capitales condensees. Pas de mot isole en couleur. */
.tc4-h1, .tc4-h2, .tc4-h3 {
  font-family: var(--tc4-titre);
  text-transform: uppercase;
  line-height: .95;
  margin: 0;
  letter-spacing: .005em;
}
.tc4-h1 { font-weight: 900; font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.tc4-h2 { font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); }
.tc4-h3 { font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.tc4-chapeau { font-size: 1.125rem; color: var(--tc4-texte-2); max-width: 60ch; margin: 14px 0 0; }
.tc4-sombre .tc4-chapeau { color: rgba(255,255,255,.78); }

/* Boutons */
.tc4-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--tc4-titre); font-weight: 800; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
}
.tc4-bouton--jaune { background: var(--tc4-jaune); color: #000; }
.tc4-bouton--jaune:hover { background: #fff; }
.tc4-bouton--bleu { background: var(--tc4-bleu); color: #fff; }
.tc4-bouton--bleu:hover { background: var(--tc4-nuit); }
.tc4-bouton--contour { border-color: #fff; color: #fff; background: transparent; }
.tc4-bouton--contour:hover { background: #fff; color: var(--tc4-nuit); }

/* Plaque de course : remplace les gros chiffres a legende */
.tc4-plaque {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 10px;
  background: var(--tc4-jaune); color: #000;
  border-radius: 14px 14px 22px 22px;
  padding: 10px 18px 12px 16px;
  box-shadow: inset 0 0 0 3px #000;
}
.tc4-plaque__num { font-family: var(--tc4-titre); font-weight: 900; font-style: italic; font-size: 3.6rem; line-height: .8; letter-spacing: -.02em; }
.tc4-plaque__txt { font-family: var(--tc4-titre); font-weight: 700; font-size: .98rem; line-height: 1.05; max-width: 11ch; text-transform: uppercase; }

/* ----- En-tete (Hummingbird : header-top / header-bottom, ps_mainmenu, ps_searchbar, ps_shoppingcart) ----- */
.tc4-bandeau-haut { background: var(--tc4-nuit); color: rgba(255,255,255,.85); font-size: .875rem; }
.tc4-bandeau-haut .tc4-conteneur { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
.tc4-bandeau-haut a { color: #fff; text-decoration: none; }

.tc4-entete { background: #fff; border-bottom: 1px solid var(--tc4-trait); position: sticky; top: 0; z-index: 20; }
.tc4-entete .tc4-conteneur { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.tc4-logo img { height: 44px; width: auto; }
.tc4-menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tc4-menu a {
  display: block; padding: 10px 12px; position: relative;
  font-family: var(--tc4-titre); font-weight: 700; font-size: 1.06rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--tc4-anthracite); text-decoration: none;
}
.tc4-menu a:hover { color: var(--tc4-bleu); }
.tc4-menu a[aria-current="page"] { color: var(--tc4-bleu); }
.tc4-menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 4px;
  background: var(--tc4-bleu); transform: skewX(-24deg);
}
.tc4-recherche { flex: 1; display: flex; max-width: 360px; margin-left: auto; }
.tc4-recherche input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--tc4-trait); border-right: 0;
  border-radius: 6px 0 0 6px; font: inherit; font-size: .95rem; background: var(--tc4-gris);
}
.tc4-recherche button { width: 48px; border: 0; border-radius: 0 6px 6px 0; background: var(--tc4-anthracite); color: #fff; cursor: pointer; }
.tc4-actions { display: flex; align-items: center; gap: 10px; }
.tc4-icone-bouton { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; color: var(--tc4-anthracite); }
.tc4-icone-bouton:hover { background: var(--tc4-gris); }
.tc4-panier { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 6px; background: var(--tc4-bleu); color: #fff; text-decoration: none; font-family: var(--tc4-titre); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tc4-panier__nb { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; background: var(--tc4-jaune); color: #000; font-size: .85rem; }
.tc4-burger { display: none; }

/* ----- Hero : la diagonale est l'element memorable ----- */
.tc4-hero { position: relative; min-height: 600px; background: var(--tc4-nuit); color: #fff; overflow: hidden; isolation: isolate; }
.tc4-hero__photo { position: absolute; inset: 0 0 0 38%; z-index: -2; }
.tc4-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.tc4-hero__lisere, .tc4-hero__panneau { position: absolute; inset: 0; z-index: -1; }
.tc4-hero__lisere { background: var(--tc4-jaune); clip-path: polygon(0 0, calc(60% + var(--tc4-lisere)) 0, calc(60% - var(--tc4-biais) + var(--tc4-lisere)) 100%, 0 100%); }
.tc4-hero__panneau { background: var(--tc4-bleu); clip-path: polygon(0 0, 60% 0, calc(60% - var(--tc4-biais)) 100%, 0 100%); }
.tc4-hero .tc4-conteneur { position: relative; min-height: 600px; display: flex; align-items: center; }
.tc4-hero__texte { max-width: 560px; padding: 72px 0 120px; }
.tc4-hero__texte .tc4-chapeau { color: rgba(255,255,255,.88); font-size: 1.2rem; }
.tc4-hero__boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tc4-hero__plaque { position: absolute; right: 24px; bottom: 112px; transform: rotate(-4deg); }

/* Trouver une piece TM : sous le hero, la fonction qui fait vendre le catalogue */
.tc4-trouveur { position: relative; z-index: 2; margin-top: -64px; }
.tc4-trouveur__carte {
  background: #fff; border-radius: var(--tc4-rayon); padding: 26px 28px 28px;
  box-shadow: 0 18px 40px rgba(0, 31, 92, .18); border-top: var(--tc4-lisere) solid var(--tc4-jaune);
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: 28px; align-items: end;
}
.tc4-trouveur__titre p { margin: 8px 0 0; color: var(--tc4-texte-2); font-size: .98rem; }
.tc4-trouveur__champs { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.tc4-champ label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.tc4-champ select {
  width: 100%; height: 48px; padding: 0 12px; font: inherit; font-size: 1rem; color: var(--tc4-anthracite);
  border: 1px solid var(--tc4-trait); border-radius: 6px; background: var(--tc4-gris);
}

/* Reassurance */
.tc4-reassurance { background: var(--tc4-anthracite); color: #fff; padding: 34px 0; margin-top: 56px; }
.tc4-reassurance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tc4-reassurance li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.tc4-reassurance svg { color: var(--tc4-jaune); }
.tc4-reassurance strong { display: block; font-family: var(--tc4-titre); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.tc4-reassurance span { color: rgba(255,255,255,.7); font-size: .95rem; }

/* Sections */
.tc4-section { padding: 88px 0; }
.tc4-section--gris { background: var(--tc4-gris); }
.tc4-entete-section { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.tc4-lien { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Univers : trois portes, pas trois cartes identiques */
.tc4-univers { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tc4-porte { position: relative; border-radius: var(--tc4-rayon); overflow: hidden; background: var(--tc4-anthracite); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 270px; }
.tc4-porte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc4-porte::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,29,36,0) 30%, rgba(26,29,36,.88) 100%); z-index: 1; }
.tc4-porte__texte { position: relative; z-index: 2; padding: 26px 28px; }
.tc4-porte__texte p { margin: 8px 0 14px; color: rgba(255,255,255,.85); max-width: 46ch; }
.tc4-porte__action { display: inline-block; font-weight: 700; color: var(--tc4-jaune); border-bottom: 2px solid var(--tc4-jaune); padding-bottom: 2px; }
.tc4-porte--grande { grid-row: 1 / span 2; min-height: 560px; }
/* Petites portes : le texte couvre presque toute la photo, voile plus dense */
.tc4-porte:not(.tc4-porte--grande)::before { background: linear-gradient(180deg, rgba(26,29,36,.2) 0%, rgba(26,29,36,.92) 62%); }
.tc4-porte--plan { background: #fff; color: var(--tc4-anthracite); border: 1px solid var(--tc4-trait); }
.tc4-porte--plan::before { display: none; }
.tc4-porte--plan img { position: static; height: 170px; object-fit: contain; padding: 16px 16px 0; }
.tc4-porte--plan .tc4-porte__texte p { color: var(--tc4-texte-2); }
.tc4-porte--plan .tc4-porte__action { color: var(--tc4-bleu); border-color: var(--tc4-bleu); }

.tc4-porte--pneu img { height: 200px; background: var(--tc4-photo-fond); padding: 12px; }
/* Pieces neuves : pas encore de visuel, la diagonale tient lieu d'image */
.tc4-porte--neuve { background: var(--tc4-nuit); }
.tc4-porte--neuve::before { background: var(--tc4-jaune); clip-path: polygon(calc(84% - var(--tc4-lisere)) 0, 100% 0, 100% 100%, calc(76% - var(--tc4-lisere)) 100%); }
.tc4-porte--neuve::after { content: ""; position: absolute; inset: 0; background: var(--tc4-bleu); clip-path: polygon(84% 0, 100% 0, 100% 100%, 76% 100%); z-index: 1; }
.tc4-porte--neuve .tc4-porte__texte { padding-right: 30%; }
.tc4-etiquette { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 4px; background: var(--tc4-jaune); color: #000; font-family: var(--tc4-titre); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* Lien vers un autre site (TC4 Academy) */
.tc4-externe { display: inline-flex; align-items: center; gap: 5px; }
.tc4-academy { margin: 28px 0 0; color: rgba(255,255,255,.8); }
.tc4-academy a { color: var(--tc4-jaune); font-weight: 700; }

/* Miniatures produit (Hummingbird : catalog/_partials/miniatures/product.tpl) */
.tc4-produits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tc4-produit { background: #fff; border-radius: var(--tc4-rayon); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--tc4-trait); }
.tc4-produit__image { background: var(--tc4-photo-fond); aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; }
.tc4-produit__image img { height: 92%; width: auto; object-fit: contain; }
.tc4-produit__position { position: absolute; top: 12px; left: 12px; background: var(--tc4-anthracite); color: #fff; font-family: var(--tc4-titre); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 4px; }
.tc4-produit__corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tc4-produit__nom { font-family: var(--tc4-titre); font-weight: 800; font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; margin: 0; }
.tc4-produit__nom a { color: inherit; text-decoration: none; }
.tc4-produit__dim { color: var(--tc4-texte-2); font-size: .95rem; margin: 0; }
.tc4-produit__pied { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc4-prix { font-family: var(--tc4-titre); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.tc4-bouton-panier { width: 48px; height: 48px; border: 0; border-radius: 6px; background: var(--tc4-jaune); color: #000; display: grid; place-items: center; cursor: pointer; }
.tc4-bouton-panier:hover { background: var(--tc4-anthracite); color: var(--tc4-jaune); }

/* Bandeau stage : la diagonale, deuxieme apparition */
.tc4-stage { position: relative; background: var(--tc4-nuit); color: #fff; overflow: hidden; isolation: isolate; }
.tc4-stage::before { content: ""; position: absolute; inset: 0; background: var(--tc4-jaune); clip-path: polygon(calc(66% - var(--tc4-lisere)) 0, 100% 0, 100% 100%, calc(66% - 4vw - var(--tc4-lisere)) 100%); z-index: -1; }
.tc4-stage::after { content: ""; position: absolute; inset: 0; background: var(--tc4-bleu); clip-path: polygon(66% 0, 100% 0, 100% 100%, calc(66% - 4vw) 100%); z-index: -1; }
.tc4-stage .tc4-conteneur { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 220px; padding-top: 40px; padding-bottom: 40px; }

/* Pilote */
.tc4-pilote { background: var(--tc4-anthracite); color: #fff; }
.tc4-pilote .tc4-conteneur { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.tc4-pilote__photo { margin: 0; align-self: stretch; }
.tc4-pilote__photo img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.tc4-pilote__texte { padding: 72px 0; }
.tc4-pilote__texte p { color: rgba(255,255,255,.8); max-width: 58ch; margin: 18px 0 0; }
.tc4-plaques { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.tc4-plaques .tc4-plaque:nth-child(2) { transform: rotate(2deg); }
.tc4-plaques .tc4-plaque:nth-child(3) { transform: rotate(-2deg); }

/* Pied de page (Hummingbird : footer, ps_linklist, ps_contactinfo) */
.tc4-pied { background: #12141A; color: rgba(255,255,255,.72); padding: 64px 0 28px; border-top: var(--tc4-lisere) solid var(--tc4-jaune); }
.tc4-pied__grille { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.tc4-marque { font-family: var(--tc4-titre); font-weight: 900; font-style: italic; font-size: 2rem; line-height: .9; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.tc4-marque span { display: block; color: var(--tc4-jaune); font-size: 1.15rem; letter-spacing: .12em; font-style: normal; font-weight: 800; }
.tc4-pied h3 { font-family: var(--tc4-titre); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; color: var(--tc4-jaune); margin: 0 0 14px; }
.tc4-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc4-pied a { color: rgba(255,255,255,.82); text-decoration: none; }
.tc4-pied a:hover { color: #fff; text-decoration: underline; }
.tc4-pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* ----- Pages catalogue : fil d'Ariane, titre de page ----- */
.tc4-ariane { font-size: .92rem; color: var(--tc4-texte-2); padding: 18px 0 0; }
.tc4-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tc4-ariane li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--tc4-trait); }
.tc4-ariane a { color: var(--tc4-texte-2); }
.tc4-titre-page { padding: 18px 0 30px; border-bottom: 1px solid var(--tc4-trait); margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.tc4-titre-page .tc4-chapeau { margin-top: 10px; }
.tc4-modele { display: inline-flex; align-items: center; gap: 12px; background: var(--tc4-ciel); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.tc4-modele strong { font-family: var(--tc4-titre); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; color: var(--tc4-bleu); }

/* ----- Vue eclatee (module Spare Parts : gabarits a surcharger dans themes/tc4/modules/spareparts/) ----- */
.tc4-eclatee { display: grid; grid-template-columns: 7fr 6fr; gap: 32px; align-items: start; padding-bottom: 88px; }
.tc4-eclatee > *, .tc4-fiche > * { min-width: 0; }
.tc4-planche { position: sticky; top: 100px; background: #fff; border: 1px solid var(--tc4-trait); border-radius: var(--tc4-rayon); overflow: hidden; }
.tc4-planche img { width: 100%; height: auto; }
.tc4-planche__barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--tc4-trait); background: var(--tc4-gris); font-size: .92rem; color: var(--tc4-texte-2); }
.tc4-planche__barre button { font: inherit; font-weight: 700; color: var(--tc4-bleu); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.tc4-pieces { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tc4-pieces caption { text-align: left; font-weight: 600; color: var(--tc4-texte-2); padding-bottom: 10px; }
.tc4-pieces th { background: var(--tc4-anthracite); color: #fff; font-family: var(--tc4-titre); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; text-align: left; padding: 11px 10px; }
.tc4-pieces th:first-child { border-radius: 8px 0 0 0; text-align: center; }
.tc4-pieces th:last-child { border-radius: 0 8px 0 0; }
.tc4-pieces td { padding: 10px; border-bottom: 1px solid var(--tc4-trait); vertical-align: middle; }
.tc4-pieces tbody tr:nth-child(even) { background: #F8F9FB; }
.tc4-pieces tbody tr:hover, .tc4-pieces tbody tr.est-actif { background: var(--tc4-ciel); }
.tc4-pieces tbody tr.est-actif td:first-child { box-shadow: inset 4px 0 0 var(--tc4-bleu); }
.tc4-repere { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--tc4-anthracite); display: grid; place-items: center; margin: 0 auto; font-family: var(--tc4-titre); font-weight: 800; font-size: 1.05rem; }
.est-actif .tc4-repere { background: var(--tc4-bleu); border-color: var(--tc4-bleu); color: #fff; }
.tc4-piece__nom { font-weight: 600; line-height: 1.25; display: block; color: var(--tc4-anthracite); text-decoration: none; overflow-wrap: anywhere; }
.tc4-piece__nom:hover { color: var(--tc4-bleu); text-decoration: underline; }
.tc4-piece__ref { font-size: .88rem; color: var(--tc4-texte-2); font-variant-numeric: tabular-nums; }
.tc4-pieces .tc4-prix { font-size: 1.25rem; white-space: nowrap; }
.tc4-ajout { display: flex; gap: 6px; justify-content: flex-end; }
.tc4-qte { width: 52px; height: 40px; border: 1px solid var(--tc4-trait); border-radius: 6px; text-align: center; font: inherit; }
.tc4-ajout .tc4-bouton-panier { width: 40px; height: 40px; }

/* ----- Fiche produit ----- */
.tc4-fiche { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; padding-bottom: 72px; }
.tc4-fiche__media { background: #fff; border: 1px solid var(--tc4-trait); border-radius: var(--tc4-rayon); overflow: hidden; }
.tc4-fiche__media figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 18px; background: var(--tc4-ciel); font-weight: 600; }
.tc4-fiche__infos .tc4-h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.tc4-origine { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tc4-bleu); margin-bottom: 12px; }
.tc4-ref-ligne { margin: 12px 0 0; color: var(--tc4-texte-2); font-variant-numeric: tabular-nums; }
.tc4-ref-ligne strong { color: var(--tc4-anthracite); }
.tc4-fiche__prix { margin: 26px 0 18px; display: flex; align-items: baseline; gap: 12px; }
.tc4-fiche__prix .tc4-prix { font-size: 2.6rem; }
.tc4-fiche__prix small { color: var(--tc4-texte-2); }
.tc4-fiche__achat { display: flex; gap: 10px; }
.tc4-fiche__achat .tc4-qte { width: 72px; height: 56px; font-size: 1.1rem; }
.tc4-fiche__achat .tc4-bouton { flex: 1; min-height: 56px; font-size: 1.2rem; }
.tc4-montage { margin: 26px 0 0; padding: 18px 20px; border: 1px solid var(--tc4-trait); border-radius: var(--tc4-rayon); }
.tc4-montage dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.tc4-montage dt { color: var(--tc4-texte-2); }
.tc4-montage dd { margin: 0; font-weight: 600; }
.tc4-garanties { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tc4-garanties li { display: flex; gap: 12px; align-items: center; }
.tc4-garanties svg { color: var(--tc4-bleu); flex: none; }
.tc4-meme-planche { margin-top: 8px; }



/* ----- Tablette ----- */
@media (max-width: 1100px) {
  .tc4-recherche { display: none; }
  .tc4-trouveur__carte { grid-template-columns: 1fr; }
  .tc4-produits { grid-template-columns: repeat(2, 1fr); }
  .tc4-pied__grille { grid-template-columns: repeat(2, 1fr); }
  .tc4-pied__marque { grid-column: 1 / -1; }
  .tc4-eclatee, .tc4-fiche { grid-template-columns: 1fr; }
  .tc4-planche { position: static; }
}

/* ----- Telephone (les deux defauts mesures le 07/11 : pied de page et titres qui debordent) ----- */
@media (max-width: 760px) {

  .tc4-conteneur { padding: 0 16px; }
  .tc4-bandeau-haut .tc4-conteneur > :last-child { display: none; }
  .tc4-entete .tc4-conteneur { gap: 8px; min-height: 64px; }
  .tc4-logo img { height: 34px; }
  .tc4-menu { display: none; }
  .tc4-actions { margin-left: auto; }
  .tc4-burger { display: grid; }
  .tc4-panier__mot { display: none; }

  .tc4-hero { min-height: 0; }
  .tc4-hero__photo { position: relative; inset: auto; height: 250px; }
  .tc4-hero__lisere { clip-path: polygon(0 calc(250px - 26px - var(--tc4-lisere)), 100% calc(250px - var(--tc4-lisere)), 100% 100%, 0 100%); }
  .tc4-hero__panneau { clip-path: polygon(0 calc(250px - 26px), 100% 250px, 100% 100%, 0 100%); }
  .tc4-hero .tc4-conteneur { min-height: 0; position: static; }
  .tc4-hero__texte { padding: 26px 0 96px; }
  .tc4-hero__boutons .tc4-bouton { flex: 1 1 100%; }
  .tc4-hero__plaque { top: 172px; bottom: auto; right: 16px; }
  .tc4-hero__plaque .tc4-plaque__num { font-size: 2.8rem; }

  .tc4-trouveur__carte { padding: 20px 16px; }
  .tc4-trouveur__champs { grid-template-columns: 1fr; }
  .tc4-reassurance ul { grid-template-columns: 1fr; gap: 18px; }
  .tc4-section { padding: 56px 0; }
  .tc4-entete-section { flex-direction: column; align-items: start; }
  .tc4-univers { grid-template-columns: 1fr; }
  .tc4-porte--grande { grid-row: auto; min-height: 380px; }
  .tc4-produits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tc4-produit__corps { padding: 12px; }
  .tc4-produit__nom { font-size: 1.08rem; }
  .tc4-prix { font-size: 1.3rem; }
  .tc4-stage::before, .tc4-stage::after { display: none; }
  .tc4-stage { border-top: var(--tc4-lisere) solid var(--tc4-jaune); }
  .tc4-stage .tc4-conteneur { flex-direction: column; align-items: start; }
  .tc4-pilote .tc4-conteneur { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .tc4-pilote__photo img { max-height: 420px; }
  .tc4-pilote__texte { padding: 36px 16px 56px; }
  .tc4-pied__grille { grid-template-columns: 1fr 1fr; gap: 28px 20px; }

  /* Vue eclatee : le tableau devient une liste */
  .tc4-pieces thead { display: none; }
  .tc4-pieces, .tc4-pieces tbody, .tc4-pieces tr, .tc4-pieces td { display: block; }
  .tc4-pieces caption { display: block; width: 100%; }
  .tc4-pieces tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "rep nom prix" "rep ajout ajout"; gap: 6px 10px; padding: 12px 8px; border-bottom: 1px solid var(--tc4-trait); }
  .tc4-pieces td { padding: 0; border: 0; }
  .tc4-pieces td:nth-child(1) { grid-area: rep; }
  .tc4-pieces td:nth-child(2) { grid-area: nom; }
  .tc4-pieces td:nth-child(3) { grid-area: prix; text-align: right; }
  .tc4-pieces td:nth-child(4) { grid-area: ajout; }
  .tc4-ajout { justify-content: flex-start; }
  .tc4-fiche__achat .tc4-bouton { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
