/* =============================================================
   TYLOUP — CSS UNIFIÉ v3.3
   Dernière mise à jour : 22/02/2026 (v3.3 — fusion 2 couches CSS)
   
   NETTOYAGE DETTE TECHNIQUE :
   - v2.3 : 120 !important → v3.0 : ~15 !important
   - !important conservé uniquement pour :
     • display:none (masquages obligatoires)
     • focus-visible (accessibilité)
   - Spécificité augmentée proprement via body/html préfixes
   
   SOMMAIRE :
   1. Variables &amp; Reset
   2. Typographie &amp; Liens
   3. Header &amp; Navigation
   4. Boutons
   5. Footer
   6. Hero / Cover
   7. WooCommerce (prix, badges, compte, commandes, login)
   8. Contact Form 7 (global + page Pro)
   9. Page Pro (#321) — thème or
   10. Guide des tailles (widget)
   11. Accessibilité &amp; UX
   12. Utilitaires (scrollbar, sélection, lazy load)
   13. Responsive mobile
   14. Masquages (titre Kadence, crédits footer)
   ============================================================= */

/* =============================================================
   1. VARIABLES &amp; RESET
   ============================================================= */

:root {
  --ty-noir: #0A0A0A;
  --ty-blanc: #FFFFFF;
  --ty-cyan: #00C2E0;
  --ty-gris: #2D2D2D;
  --ty-or: #D4A017;
  --ty-gris-clair: #F5F5F5;
}

body {
  background-color: var(--ty-blanc);
  color: var(--ty-gris);
}

/* =============================================================
   2. TYPOGRAPHIE &amp; LIENS
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  color: var(--ty-noir);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--ty-cyan);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ty-or);
}

/* =============================================================
   3. HEADER &amp; NAVIGATION
   — Kadence utilise .site-header avec inline styles.
   — On surpasse avec body .site-header (spécificité 0,1,1)
   ============================================================= */

body .site-header {
  background-color: var(--ty-noir) !important;
}

body .site-header .site-title a,
body .site-header .main-navigation a,
body .header-navigation a {
  color: var(--ty-blanc) !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  transition: color 0.3s ease;
}

body .site-header .main-navigation a:hover,
body .header-navigation a:hover {
  color: var(--ty-cyan) !important;
}

/* Menu Pro — bouton or */
body .menu-pro &gt; a {
  color: var(--ty-or);
  border: 1px solid var(--ty-or);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 2px;
  transition: all 0.3s;
}

body .menu-pro &gt; a:hover {
  background: var(--ty-or);
  color: var(--ty-noir);
}

/* =============================================================
   4. BOUTONS
   — WP blocks et WC injectent des styles inline/haute priorité.
   — On utilise html body comme préfixe pour surpasser.
   ============================================================= */

html body .wp-block-button__link,
html body .wc-block-components-button,
html body button.button,
html body .button,
html body a.button,
html body input[type=submit] {
  background-color: var(--ty-cyan) !important;
  color: var(--ty-noir) !important;
  border: none !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 14px 32px !important;
  transition: all 0.3s ease;
}

html body .wp-block-button__link:hover,
html body button.button:hover,
html body .button:hover,
html body a.button:hover {
  background-color: var(--ty-or) !important;
  color: var(--ty-noir) !important;
}

html body .is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--ty-cyan) !important;
  border: 2px solid var(--ty-cyan) !important;
}

html body .is-style-outline .wp-block-button__link:hover {
  background-color: var(--ty-cyan) !important;
  color: var(--ty-noir) !important;
}

/* =============================================================
   5. FOOTER
   — Kadence footer utilise inline styles, body préfixe suffit.
   ============================================================= */

body .site-footer {
  background-color: var(--ty-noir) !important;
  color: var(--ty-blanc) !important;
}

body .site-footer a {
  color: var(--ty-cyan) !important;
}

body .site-footer a:hover {
  color: var(--ty-or) !important;
}

/* =============================================================
   6. HERO / COVER
   — Les blocs WP cover ont des inline styles (min-height).
   — Pour min-height inline, !important est le seul recours.
   — Mais les autres propriétés passent sans.
   ============================================================= */

html body .wp-block-cover.alignfull {
  min-height: 220px !important;
  background: linear-gradient(135deg, #0A0A0A 0%, #0d1b2a 40%, #1b2d4f 100%) !important;
  border-bottom: 2px solid var(--ty-cyan);
}

html body .wp-block-cover h1 {
  font-size: 26px;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

html body .wp-block-cover .wp-block-cover__inner-container p {
  font-size: 14px;
  margin-top: 0;
}

html body .wp-block-cover.alignfull + .wp-block-spacer {
  height: 30px !important;
}

/* Supprimer espace blanc entre header et contenu (toutes pages) */
body .entry-content-wrap,
body .content-wrap {
  padding-top: 0;
  margin-top: 0;
}

body .site-main {
  margin-top: 0;
  padding-top: 0;
}

html body .wp-block-cover.alignfull:first-child {
  margin-top: 0;
}

body .content-area {
  padding-top: 0;
  margin-top: 0;
}

body .site-container .site-content {
  padding-top: 0;
}

/* =============================================================
   7. WOOCOMMERCE
   ============================================================= */

/* Prix */
body .woocommerce .price,
body .wc-block-grid__product-price {
  color: var(--ty-cyan) !important;
  font-weight: 700;
}

/* Badge promo */
html body .woocommerce span.onsale {
  background: var(--ty-or) !important;
  color: var(--ty-noir) !important;
  border-radius: 0 !important;
}

/* Navigation Mon compte */
body .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--ty-noir);
  margin-bottom: 30px;
}

body .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

body .woocommerce-MyAccount-navigation ul li.is-active a,
body .woocommerce-MyAccount-navigation ul li a:hover {
  color: var(--ty-noir);
  border-bottom: 3px solid var(--ty-cyan);
}

/* Formulaire login/register */
.woocommerce-form-login,
.woocommerce-form-register {
  max-width: 450px;
  margin: 0 auto;
  padding: 30px;
  background: var(--ty-gris-clair);
}

.woocommerce-form-login label,
.woocommerce-form-register label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ty-noir);
}

.woocommerce-form-login input[type=text],
.woocommerce-form-login input[type=password],
.woocommerce-form-login input[type=email],
.woocommerce-form-register input[type=text],
.woocommerce-form-register input[type=password],
.woocommerce-form-register input[type=email] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  transition: border 0.3s;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
  border-color: var(--ty-cyan);
  outline: none;
}

/* Tableau commandes */
.woocommerce-orders-table {
  font-size: 14px;
}

.woocommerce-orders-table th {
  background: var(--ty-noir);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 15px;
}

.woocommerce-orders-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

/* =============================================================
   8. CONTACT FORM 7
   — CF7 injecte ses styles via plugin CSS.
   — html body .wpcf7 surpasse le plugin sans !important.
   ============================================================= */

html body .wpcf7 {
  max-width: 500px;
  margin: 0 auto;
}

html body .wpcf7 input[type=text],
html body .wpcf7 input[type=email],
html body .wpcf7 input[type=tel],
html body .wpcf7 select,
html body .wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  transition: border 0.3s;
  border-radius: 0;
}

html body .wpcf7 input:focus,
html body .wpcf7 select:focus,
html body .wpcf7 textarea:focus {
  border-color: var(--ty-cyan);
  outline: none;
}

html body .wpcf7 select {
  height: 44px;
  color: #555;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

html body .wpcf7 textarea {
  min-height: 100px;
  resize: vertical;
}

html body .wpcf7 input[type=file] {
  width: 100%;
  padding: 15px;
  border: 2px dashed var(--ty-cyan);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: border-color 0.3s;
}

html body .wpcf7 input[type=file]:hover {
  border-color: var(--ty-or);
}

html body .wpcf7 input[type=submit] {
  width: 100%;
  background: var(--ty-cyan);
  color: var(--ty-noir);
  padding: 14px 32px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

html body .wpcf7 input[type=submit]:hover {
  background: var(--ty-or);
}

html body .wpcf7-response-output {
  border: none;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}

html body .wpcf7 form.sent .wpcf7-response-output {
  background: var(--ty-noir);
  color: var(--ty-cyan);
}

html body .wpcf7 form.invalid .wpcf7-response-output {
  background: #fff3f3;
  color: #c00;
}

html body .wpcf7-not-valid-tip {
  color: #c00;
  font-size: 12px;
}

.wpcf7-spinner {
  display: block;
  margin: 10px auto;
}

/* =============================================================
   9. PAGE PRO (#321) — thème or sur fond sombre
   — .page-id-321 html body donne assez de spécificité.
   ============================================================= */

.page-id-321 html body .wpcf7,
body.page-id-321 .wpcf7 {
  max-width: 100%;
}

body.page-id-321 .wpcf7 label {
  color: #fff;
}

body.page-id-321 .wpcf7 input[type=text],
body.page-id-321 .wpcf7 input[type=email],
body.page-id-321 .wpcf7 input[type=tel],
body.page-id-321 .wpcf7 select,
body.page-id-321 .wpcf7 textarea {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

body.page-id-321 .wpcf7 input:focus,
body.page-id-321 .wpcf7 select:focus,
body.page-id-321 .wpcf7 textarea:focus {
  border-color: var(--ty-or);
}

body.page-id-321 .wpcf7 input[type=file] {
  border-color: var(--ty-or);
  color: #ccc;
  background: #1a1a1a;
}

body.page-id-321 .wpcf7 input[type=submit] {
  background: var(--ty-or);
  color: var(--ty-noir);
}

body.page-id-321 .wpcf7 input[type=submit]:hover {
  background: var(--ty-cyan);
}

body.page-id-321 .wpcf7 .wpcf7-not-valid-tip {
  color: #ff6b6b;
}

body.page-id-321 .wpcf7 select {
  color: #ccc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4A017' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* =============================================================
   10. GUIDE DES TAILLES (widget flottant)
   — Aucun !important nécessaire : classes custom = pas de conflit.
   ============================================================= */

.ty-size-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  background: var(--ty-noir);
  color: #fff;
  padding: 15px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 9998;
  border: none;
  border-radius: 4px 0 0 4px;
  transition: background 0.3s;
}

.ty-size-toggle:hover {
  background: var(--ty-cyan);
  color: var(--ty-noir);
}

.ty-size-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: flex-end;
}

.ty-size-overlay.active {
  display: flex;
}

.ty-size-panel {
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  padding: 30px 25px;
  box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  animation: tySlideIn 0.3s ease;
}

@keyframes tySlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.ty-size-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #555;
  float: right;
  line-height: 1;
  padding: 0 5px;
}

.ty-size-close:hover {
  color: var(--ty-noir);
}

.ty-size-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ty-noir);
  margin: 0 0 5px;
}

.ty-size-sub {
  font-size: 12px;
  color: #999;
  margin: 0 0 20px;
}

.ty-size-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.ty-size-tab {
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.ty-size-tab:hover {
  color: #555;
}

.ty-size-tab.active {
  color: var(--ty-noir);
  border-bottom-color: var(--ty-cyan);
}

.ty-size-table {
  display: none;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ty-size-table.active {
  display: table;
}

.ty-size-table th {
  background: var(--ty-noir);
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ty-size-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #555;
}

.ty-size-table tr:hover td {
  background: var(--ty-gris-clair);
}

.ty-size-tip {
  margin-top: 20px;
  padding: 15px;
  background: var(--ty-gris-clair);
  border-left: 3px solid var(--ty-cyan);
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.ty-size-tip strong {
  color: var(--ty-noir);
}

/* =============================================================
   11. ACCESSIBILITÉ &amp; UX
   — !important conservé pour focus-visible (norme a11y)
   ============================================================= */

.wp-block-button__link,
.wc-block-components-button,
button.button, .button, a.button,
input[type=submit],
.woocommerce-MyAccount-navigation a,
details summary {
  min-height: 44px;
  min-width: 44px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ty-cyan) !important;
  outline-offset: 2px !important;
}

details summary {
  user-select: none;
  -webkit-user-select: none;
}

details summary::marker {
  color: var(--ty-cyan);
}

details[open] summary {
  border-bottom: 1px solid #eee;
}

/* =============================================================
   12. UTILITAIRES
   ============================================================= */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ty-noir); }
::-webkit-scrollbar-thumb { background: var(--ty-cyan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ty-or); }

::selection {
  background: var(--ty-cyan);
  color: var(--ty-noir);
}

img {
  content-visibility: auto;
}

/* =============================================================
   13. RESPONSIVE MOBILE
   ============================================================= */

@media (max-width: 767px) {
  html body .wp-block-columns {
    flex-direction: column;
  }

  html body .wp-block-column {
    flex-basis: 100%;
    margin-bottom: 15px;
  }

  html body .wp-block-cover.alignfull {
    min-height: 160px !important;
  }

  html body .wp-block-cover h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ty-size-panel {
    width: 100vw;
    padding: 20px 15px;
  }

  .ty-size-toggle {
    padding: 12px 6px;
    font-size: 9px;
  }
}

/* =============================================================
   14. MASQUAGES
   — !important obligatoire ici : on cache des éléments que
     Kadence génère avec display:block inline ou via JS.
   ============================================================= */

.entry-hero-container-inner,
.entry-header,
.page .entry-hero-container-inner,
.page .entry-header,
.single-product .entry-hero-container-inner,
.woocommerce-page .entry-hero-container-inner,
.page-title,
.entry-hero-layout-standard,
.wp-block-kadence-header,
.kadence-page-title {
  display: none !important;
}

.site-footer .site-info,
.site-footer-wrap .footer-html a[href*="kadence"],
.site-footer .powered-by-wordpress,
.site-credits .powered-by-wordpress,
.footer-widget-area .powered-by-wordpress,
a[href*="kadencewp.com"] {
  display: none !important;
}

/* Masquages additionnels (ex-Batch 28) */
.tl-size-guide ~ .tl-size-guide {
  display: none !important;
}

.footer-html:last-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.site-footer-inner-wrap &gt; .site-footer-wrap:last-child {
  display: none !important;
}

/* =============================================================
   CORRECTIFS v3.2 — 22/02/2026
   ============================================================= */

/* --- Fix : Hero /personnaliser h2 lisibilité --- */
.ty-perso-hero h2 {
  color: #fff !important;
}

.ty-perso-hero .ty-accent {
  color: #00C2E0 !important;
}

/* --- Fix : SMG Studio boutons — fallback vars vides --- */
.smg-btn--primary {
  background: var(--smg-accent, #00B4D8) !important;
  color: var(--smg-white, #FFFFFF) !important;
}

.smg-btn--ghost {
  color: var(--smg-white, #FFFFFF) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Masquages additionnels (ex-Batch 28) */
.tl-size-guide ~ .tl-size-guide {
  display: none !important;
}

.footer-html:last-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.site-footer-inner-wrap &gt; .site-footer-wrap:last-child {
  display: none !important;
}

/* =============================================================
   CORRECTIFS v3.2 — 22/02/2026
   ============================================================= */

/* --- Fix Image 4 : Hero /personnaliser h2 lisibilité --- */
.ty-perso-hero h2 {
  color: #fff !important;
}

.ty-perso-hero .ty-accent {
  color: #00C2E0 !important;
}

/* --- Fix Image 2 : SMG Studio boutons — fallback vars vides --- */
.smg-btn--primary {
  background: var(--smg-accent, #00B4D8) !important;
  color: var(--smg-white, #FFFFFF) !important;
}

.smg-btn--ghost {
  color: var(--smg-white, #FFFFFF) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* =============================================================
   PAGES &amp; FONCTIONNALITÉS — ex-Batch 28/29
   Fusionné le 22/02/2026
   ============================================================= */

/* --- Comportement global --- */
html {
  scroll-behavior: smooth;
}

/* --- Liens dans le contenu --- */
.entry-content a:not(.wp-block-button__link) {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.entry-content a:not(.wp-block-button__link):hover {
  opacity: 0.85;
}

/* --- Footer — bordure décorative --- */
body .site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* --- MailPoet newsletter --- */
.mailpoet_form .mailpoet_message {
  font-size: 13px;
}

/* --- Navigation — items spéciaux --- */
.menu-item a[href="#"] {
  opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.menu-item a[href="#"]::after {
  content: " (bientôt)";
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFD700;
    opacity: 0.8;
}

.menu-item a[href*='personnaliser'] {
  color: var(--ty-or) !important;
}

.menu-item a[href*='personnaliser']:hover {
  color: var(--ty-cyan) !important;
}

/* --- Feature cards (accueil/personnaliser) --- */
.ty-feature {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ty-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ty-feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.ty-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.ty-feature p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* --- Gammes — Badges &amp; différenciation --- */
.gamme-badge {
  font-size: 10px !important;
    padding: 3px 8px !important;
}

.gamme-badge--eco {
  background: #2d5a27;
  color: #fff;
}

.gamme-badge--iconique {
  background: #1a1a2e;
  color: #fff;
}

.ty-badge-eco {
  background: #e8f5e9;
 color: #2e7d32;
}

.ty-badge-iconique {
  background: #e8eaf6;
 color: #1a1a2e;
}

.ty-btn-eco {
  background: linear-gradient(135deg, #2d5a27, #4a8c3f);
  color: #fff !important;
}

.ty-btn-iconique {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff !important;
}

.woocommerce ul.products li.product .gamme-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  line-height: 1.4;
}

body.gamme-iconique .single_add_to_cart_button {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  box-shadow: 0 4px 15px rgba(26,26,46,0.3) !important;
}

body.gamme-iconique .single_add_to_cart_button:hover {
  box-shadow: 0 6px 20px rgba(26,26,46,0.4) !important;
}

body.gamme-iconique .ty-cta-personnaliser {
  background: linear-gradient(135deg, #1a1a2e, #0f3460) !important;
}

body.single-product .ty-info-badge-eco-only {
  display: block;
}

body.single-product .ty-info-badge-iconique-only {
  display: none;
}

body.single-product[class*='pa_gamme-iconique'] .ty-info-badge-eco-only {
  display: none !important;
}

body.single-product[class*='pa_gamme-iconique'] .ty-info-badge-iconique-only {
  display: block !important;
}

/* --- Pages gammes — Hero, specs, comparaison --- */
.ty-gamme-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ty-gamme-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #fff !important;
}

.ty-gamme-card p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.ty-gamme-card--eco {
  background: linear-gradient(135deg, #2d5a27, #4a8c3f);
}

.ty-gamme-card--iconique {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.ty-gamme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #fff;
}

.ty-gamme-compare {
  margin-bottom: 20px;
}

.ty-gamme-cta {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  background: #f8f9fa;
  border-radius: 16px;
}

.ty-gamme-features {
  grid-template-columns: 1fr;
}

.ty-gamme-hero {
  text-align: center;
  padding: 60px 20px 40px;
  margin: -20px -20px 40px;
  border-radius: 0 0 20px 20px;
}

.ty-gamme-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #fff !important;
}

.ty-gamme-hero.ty-gamme-eco {
  background: linear-gradient(135deg, #2d5a27 0%, #4a8c3f 100%);
  color: #fff;
}

.ty-gamme-hero.ty-gamme-iconique {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.ty-gamme-products-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.ty-gamme-products-section .ty-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ty-gamme-products-section .ty-btn:hover {
  opacity: 0.85;
}

.ty-gamme-products-section .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ty-gamme-products-section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.ty-gamme-section {
  margin-bottom: 40px;
}

.ty-gamme-section h2 {
  font-size: 1.6rem;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.ty-gamme-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.ty-gamme-specs td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.ty-gamme-specs td:first-child {
  width: 120px;
}

.ty-gamme-specs tr:last-child td {
  border-bottom: none;
}

.ty-gamme-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Boutique — Filtres gamme &amp; type --- */
.ty-boutique-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.ty-boutique-subfilters {
  gap: 6px;
}

.ty-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid #ddd;
  color: #333 !important;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.ty-filter-btn--all.active {
  border-color: #444;
  background: #444;
}

.ty-filter-btn--eco.active {
  border-color: #2d5a27;
  background: #2d5a27;
}

.ty-filter-btn--iconique.active {
  border-color: #1a1a2e;
  background: #1a1a2e;
}

.ty-filter-btn.active {
  color: #fff !important;
}

.ty-no-products {
  text-align: center;
  padding: 50px 20px;
  color: #888;
  font-size: 1.05rem;
}

.ty-no-products a {
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: underline;
}

.ty-subfilter-btn {
  padding: 6px 14px;
    font-size: 12px;
}

.ty-subfilter-btn.active {
  border-color: #333;
  color: #fff;
  background: #333;
}

/* --- Boutique — Filtres genre --- */
.ty-genre-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 15px;
  margin: 0 0 25px 0;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.ty-genre-filters a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.ty-genre-filters a.active {
  color: var(--ty-noir);
  border-color: var(--ty-cyan);
  background: rgba(0,194,224,0.05);
}

.ty-genre-filters a.ty-genre-link {
  padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 1px;
}

.ty-genre-filters a.ty-genre-link.active {
  color: #0A0A0A;
  border-color: #00C2E0;
  background: rgba(0,194,224,0.06);
}

.ty-genre-filters a.ty-genre-link:hover {
  color: #0A0A0A;
  border-color: #ddd;
}

div[style*="filter_genre"] a:hover {
  border-color: var(--ty-cyan) !important;
  color: var(--ty-cyan) !important;
}

/* --- Produit WooCommerce — Détails Gelato/TPOP --- */
.single-product .price .woocommerce-Price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
}

.single-product .single_add_to_cart_button {
  width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
}

.single-product .single_add_to_cart_button:hover {
  background: #2d2d4e !important;
  transform: translateY(-1px);
}

.single-product .variations td.label label {
  font-weight: 600;
  font-size: 14px;
}

.single-product .variations td.value select {
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.single-product .woocommerce-Tabs-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1em 0;
}

.single-product .woocommerce-Tabs-panel table td {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.single-product .woocommerce-Tabs-panel table th {
  background: #f5f5f5;
  font-weight: 600;
}

.single-product .woocommerce-Tabs-panel table tr:nth-child(even) td {
  background: #fafafa;
}

.single-product .woocommerce-product-details__short-description li {
  margin-bottom: 0.3em;
}

.single-product .woocommerce-product-details__short-description ul {
  padding-left: 1.2em;
  margin: 0.8em 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li .flex-active {
  border-color: #1a1a2e;
}

.woocommerce ul.products li.product {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.woocommerce ul.products li.product .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 8px 0;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.woocommerce-result-count {
  font-size: 13px;
  color: #666;
}

/* --- Page Personnaliser (#249) --- */
.page-id-249 a[style*='background:#FFD700'] {
  background: #FFD700 !important;
  color: #000 !important;
  border-radius: 8px !important;
}

.page-id-249 a[style*='background:#FFD700']:hover {
  background: #fff !important;
  color: #000 !important;
  transform: scale(1.03);
  transition: all 0.2s ease;
}

.page-id-249 div[style*='border:2px solid'] {
  transition: all 0.3s ease;
}

.page-id-249 div[style*='border:2px solid']:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.12);
}

.page-id-249 tbody tr {
  transition: background 0.2s ease;
}

.page-id-249 tbody tr:hover {
  background: rgba(255, 215, 0, 0.05) !important;
}

.page-id-249 th, .page-id-249 td {
  padding: 8px 10px !important;
}

/* --- Page 404 --- */
.error404 .page-content {
  padding: 0;
    margin: 0;
}

.error404 .entry-header {
  display: none;
}

/* --- Homepage — Grille produits --- */
.ty-home-badge {
  position: absolute;
 top: 10px;
 left: 10px;
 padding: 4px 10px;
 border-radius: 20px;
 font-size: 11px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 z-index: 2;
}

.ty-home-cta {
  text-align: center;
 margin: 10px 0 30px;
}

.ty-home-cta a {
  display: inline-block;
 padding: 12px 32px;
 background: #1a1a2e;
 color: #fff !important;
 text-decoration: none;
 border-radius: 8px;
 font-weight: 600;
 font-size: 14px;
 transition: background 0.3s;
}

.ty-home-cta a:hover {
  background: #2d2d4e;
}

.ty-home-product-card {
  text-decoration: none !important;
 color: inherit;
 border-radius: 12px;
 overflow: hidden;
 transition: transform 0.3s, box-shadow 0.3s;
 background: #fff;
}

.ty-home-product-card .ty-home-price {
  font-size: 15px;
 font-weight: 800;
 margin: 0 12px 16px;
 color: #1a1a2e;
}

.ty-home-product-card h3 {
  font-size: 12px;
}

.ty-home-product-card:hover {
  transform: translateY(-4px);
 box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ty-home-product-img {
  position: relative;
 aspect-ratio: 1;
 overflow: hidden;
}

.ty-home-product-img img {
  width: 100%;
 height: 100%;
 object-fit: cover;
}

.ty-home-products {
  display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 24px;
 max-width: 1200px;
 margin: 30px auto 20px;
 padding: 0 20px;
}

/* --- Collections &amp; Univers --- */
.ty-collection-card {
  transition: all 0.3s ease !important;
}

.ty-collection-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.wp-block-column[style*="border-top-color"] {
  transition: all 0.3s ease;
}

.wp-block-column[style*="border-top-color"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

a.ty-collection-card[style*='background:linear-gradient']:hover {
  box-shadow: 0 8px 30px rgba(0,194,224,0.15) !important;
}

div[style*='min-width:280px'] a[href*='univers-'] {
  transition: all 0.3s ease;
}

div[style*='min-width:280px'] a[href*='univers-']:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Boutons custom (.ty-btn) --- */
.ty-btn {
  padding: 12px 28px; font-size: 0.95rem;
}

.ty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Autres --- */
.entry-content &gt; h1:first-child:not([class]) {
  display: none !important;
}

.page-template-default div[style*='border-bottom:3px'] {
  box-shadow: 0 3px 15px rgba(0,194,224,0.15);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
  .ty-home-products { gap: 12px; padding: 0 12px;
}

@media (max-width: 600px) {
  div[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
}

@media (max-width: 768px) {
  .ty-home-products {
 grid-template-columns: repeat(2, 1fr);
 gap: 16px;
}

article.page &gt; .entry-header {
  display: none !important;
 visibility: hidden !important;
 height: 0 !important;
 margin: 0 !important;
 padding: 0 !important;
 overflow: hidden !important;
}

/* --- Responsive — Pages spécifiques --- */
@media (max-width: 768px) {
  .ty-gamme-hero h1 {
    font-size: 1.8rem;
  }
  .ty-gamme-features {
    grid-template-columns: 1fr;
  }
  .ty-gamme-compare {
    grid-template-columns: 1fr;
  }
  .ty-gamme-specs td:first-child {
    width: 120px;
  }
  .ty-btn {
    padding: 12px 28px; font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .page-id-249 table {
    font-size: 12px !important;
  }
  .page-id-249 th, .page-id-249 td {
    padding: 8px 10px !important;
  }
}

@media (max-width: 480px) {
  .ty-home-products {
    gap: 12px; padding: 0 12px;
  }
}
