/* ==========================================================================
   Technotel 2027 : feuille principale (jetons, base, mise en page, composants)
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
  /* Couleurs de marque (logo : rouge #EC1C24, noir) */
  --tt-red-500: #EC1C24;   /* pastille, grands titres, graphismes (4,41:1 sur blanc : jamais pour du texte courant) */
  --tt-red-600: #C4141B;   /* texte rouge, boutons à texte blanc (6,06:1) */
  --tt-red-700: #9E0F15;   /* survol, appui (8,29:1) */
  --tt-red-50:  #FDEDED;
  --tt-ink-900: #0E0E10;   /* titres (19,3:1) */
  --tt-ink-700: #2F3036;   /* texte courant (13,2:1) */
  --tt-ink-500: #5C5E68;   /* texte secondaire (6,45:1) */
  --tt-line:    #E3E3E8;
  --tt-mist:    #F4F4F6;
  --tt-paper:   #FFFFFF;
  --tt-night:   #0F1014;
  --tt-night-2: #1B1D24;
  --tt-night-3: #2A2C35;
  --tt-on-night: #D9DAE0;
  --tt-on-night-muted: #A9ACB8; /* 8,1:1 sur --tt-night */
  --tt-ok:      #17733B;
  --tt-warn:    #A85400;

  /* Espacement : échelle de 4 px */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;
  --section: clamp(72px, 9vw, 128px);
  --container: 1280px;
  --gutter: 16px;

  /* Rayons et ombres teintées */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(14 14 16 / .06), 0 2px 8px rgb(14 14 16 / .06);
  --shadow-2: 0 10px 28px rgb(14 14 16 / .10), 0 2px 6px rgb(14 14 16 / .06);
  --shadow-red: 0 10px 28px rgb(196 20 27 / .28);

  /* Courbes et durées */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.6%, 1.006 39.2%, 0.98 43.4%, 0.976 46.6%, 0.983 52.6%, 1.001 63.3%, 1.004 72.4%, 1);
  --d-fast: 160ms; --d-base: 320ms; --d-slow: 900ms;

  /* Typographie */
  --f-sans: Archivo, "Archivo Fallback", Arial, sans-serif;
  /* Titres condensés (chasse 68 à 72 %) : repli Arial réduit à la même largeur (assets/css/fonts.css). */
  --f-display: Archivo, "Archivo Display Fallback", Arial, sans-serif;
  --f-hand: Caveat, "Caveat Fallback", "Segoe Print", cursive;

  --header-h: 72px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--tt-paper); color: var(--tt-ink-700);
  font: 400 1rem/1.6 var(--f-sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; /* pas de text-rendering: optimizeLegibility : il triplait le temps de mise en page sur mobile */
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--tt-red-600); text-underline-offset: .18em; }
a:hover { color: var(--tt-red-700); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tt-red-600); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--tt-ink-900); line-height: 1.15; margin: 0 0 var(--sp-4); }
p { margin: 0 0 var(--sp-4); }
/* :where() = spécificité nulle : les classes des listes (marges, grilles) gardent toujours la main. */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 1000; background: var(--tt-ink-900); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--sp-4); color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.tel { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- 3. Typographie ---------- */
.kicker { display: inline-flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-red-600); }
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.display, .h1, .h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; color: var(--tt-ink-900); overflow-wrap: break-word; }
.display { font-stretch: 68%; line-height: .96; font-size: clamp(2.1rem, 10.4vw, 6.8rem); margin: 0 0 var(--sp-6); }
@media (min-width: 960px) { .display { font-size: clamp(2.6rem, 8.2vw, 6.8rem); } }
.h1 { font-stretch: 70%; line-height: 1; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h2 { font-stretch: 72%; line-height: 1.02; font-size: clamp(1.75rem, 3.8vw, 2.9rem); margin-bottom: var(--sp-6); }
.display em, .h1 em, .h2 em { font-style: normal; color: var(--tt-red-500); }
.h2.rule { padding-bottom: var(--sp-4); background: linear-gradient(var(--tt-red-500), var(--tt-red-500)) left bottom / 56px 4px no-repeat; }
.h3 { font-weight: 750; font-stretch: 88%; font-size: 1.3rem; line-height: 1.2; }
.slogan { font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; color: var(--tt-ink-900); }
.hand { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; color: var(--tt-red-600); display: inline-block; transform: rotate(-2deg); }
.lead { font-size: 1.15rem; color: var(--tt-ink-500); max-width: 62ch; }
.meta { color: var(--tt-ink-500); font-size: .9375rem; }

/* ---------- 4. Mise en page ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: calc(820px + 2 * var(--gutter)); }
.site-main { padding-bottom: var(--section); min-height: 50vh; }
.section { padding: var(--section) 0; }
.section-alt { background: var(--tt-mist); }
.section-dark { background: var(--tt-night); color: var(--tt-on-night); }
.section-dark .h2, .section-dark .display, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--tt-on-night-muted); }
.page-head { padding: var(--sp-6) 0 var(--sp-8); }
.page-head .lead { margin-bottom: 0; }
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 5. Boutons, pilules, liens ---------- */
.btn {
  --bg: var(--tt-red-600); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform var(--d-base) var(--spring), background-color var(--d-fast) ease, box-shadow var(--d-base) var(--ease-out), color var(--d-fast);
}
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 50%; z-index: -1; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-20deg); transition: transform var(--d-slow) var(--ease-out); }
.btn:hover { background: var(--tt-red-700); color: #fff; box-shadow: var(--shadow-red); transform: translateY(-2px); }
.btn:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn:active { transform: translateY(0) scale(.97); }
.btn .icon { width: 20px; height: 20px; }
.btn-ghost { --bg: transparent; --fg: var(--tt-ink-900); box-shadow: inset 0 0 0 2px var(--tt-ink-900); }
.btn-ghost:hover { background: var(--tt-ink-900); color: #fff; box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--tt-ink-900); }
.btn-light:hover { background: var(--tt-red-50); color: var(--tt-ink-900); }
.btn-block { width: 100%; }
.btn.loading { opacity: .7; pointer-events: none; }
.btn.added::before { content: "✓"; }
.added_to_cart { display: block; text-align: center; font-size: .875rem; font-weight: 600; margin-top: var(--sp-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--tt-line); color: var(--tt-ink-900); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color var(--d-fast), transform var(--d-base) var(--spring); }
.pill:hover { border-color: var(--tt-red-500); color: var(--tt-ink-900); transform: translateY(-2px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-red-500); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-6) 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--d-base) var(--spring); }
.link-arrow:hover .icon { transform: translateX(4px); }
.chip-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tt-red-50); color: var(--tt-red-600); flex: none; }
.chip-ico .icon { width: 26px; height: 26px; }
ul.checks { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 10px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; }
ul.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--tt-red-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- 6. Fil d'Ariane ---------- */
.breadcrumb { padding-top: var(--sp-5); font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--tt-ink-500); }
.breadcrumb a { color: var(--tt-ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--tt-red-600); text-decoration: underline; }
.breadcrumb .sep { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--tt-ink-900); font-weight: 600; }

/* ---------- 7. En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow var(--d-base) var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgb(14 14 16 / .08); }
.topbar { background: var(--tt-night); color: var(--tt-on-night); font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 36px; }
.topbar-msg { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar-msg .icon { color: #FF6A6F; width: 18px; height: 18px; }
.topbar-info { display: none; align-items: center; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.topbar-info li { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .icon { width: 16px; height: 16px; color: var(--tt-on-night-muted); }
.topbar-social a { color: var(--tt-on-night); display: grid; place-items: center; min-width: 32px; min-height: 32px; }
.topbar-social a:hover { color: #fff; }
@media (min-width: 900px) { .topbar-info { display: flex; } }
.header-main { border-bottom: 1px solid var(--tt-line); }
.header-main-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--tt-ink-900); }
.brand svg { height: 34px; width: auto; }
@media (min-width: 768px) { .brand svg { height: 40px; } }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--tt-ink-900); cursor: pointer; text-decoration: none; transition: background-color var(--d-fast); }
.icon-btn:hover { background: var(--tt-mist); color: var(--tt-ink-900); }
.icon-btn .icon { width: 24px; height: 24px; }
.header-actions { display: flex; align-items: center; gap: var(--sp-1); justify-self: end; }
.header-call { display: none; align-items: center; gap: 10px; margin-right: var(--sp-3); color: var(--tt-ink-900); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.header-call .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--tt-red-50); color: var(--tt-red-600); }
.header-call small { display: block; font-size: .75rem; font-weight: 600; color: var(--tt-ink-500); }
@media (min-width: 1200px) { .header-call { display: inline-flex; } }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--tt-red-600); color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count[data-count="0"] { background: var(--tt-ink-500); }
.menu-toggle { margin-left: -10px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Recherche */
/* form.search : le <body> des pages de résultats porte aussi la classe « search » (WordPress). */
form.search { position: relative; display: flex; align-items: center; width: 100%; max-width: 640px; justify-self: center; }
.search-input { width: 100%; min-height: 46px; padding: 0 52px 0 18px; border: 2px solid var(--tt-line); border-radius: var(--r-pill); background: var(--tt-mist); font-size: 1rem; transition: border-color var(--d-fast), background-color var(--d-fast); }
.search-input:focus { outline: none; border-color: var(--tt-ink-900); background: #fff; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-btn { position: absolute; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tt-red-600); color: #fff; cursor: pointer; }
.search-btn:hover { background: var(--tt-red-700); }
.search-btn .icon { width: 20px; height: 20px; }
.search-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; list-style: none; margin: 0; padding: var(--sp-2); background: #fff; border: 1px solid var(--tt-line); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: 70vh; overflow: auto; }
.search-list a { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2); border-radius: var(--r-sm); color: var(--tt-ink-900); text-decoration: none; font-size: .9375rem; }
.search-list img { width: 48px; height: 48px; object-fit: contain; background: var(--tt-mist); border-radius: var(--r-sm); }
.search-list .price { font-weight: 800; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-list [aria-selected="true"] a, .search-list a:hover { background: var(--tt-mist); }
.search-list .search-all a { display: block; text-align: center; font-weight: 700; color: var(--tt-red-600); }
.search-list .search-empty { padding: var(--sp-3); color: var(--tt-ink-500); }
@media (max-width: 767px) {
  .header-main-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand actions" "search search search"; padding-bottom: var(--sp-3); row-gap: var(--sp-2); }
  .menu-toggle { grid-area: menu; } .brand { grid-area: brand; } .header-actions { grid-area: actions; }
  .header-main .search { grid-area: search; max-width: none; }
}

/* Barre de navigation */
.header-nav { display: none; border-bottom: 1px solid var(--tt-line); }
@media (min-width: 1024px) { .header-nav { display: block; } }
.header-nav-inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 52px; }
.cats { position: relative; }
.cats-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: var(--tt-ink-900); color: #fff; font-weight: 700; text-decoration: none; }
.cats-toggle:hover, .cats-toggle[aria-expanded="true"] { background: var(--tt-red-600); color: #fff; }
.cats-toggle .icon { width: 20px; height: 20px; }
.cats-toggle .icon-down { transition: transform var(--d-base) var(--ease-out); }
.cats-toggle[aria-expanded="true"] .icon-down { transform: rotate(180deg); }
.primary-nav .menu { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--tt-ink-900); font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav [aria-current="page"], .primary-nav .current-menu-item > a { background: var(--tt-mist); color: var(--tt-red-600); }
/* Entre 1 024 et 1 199 px, six entrées (avec « Caméras à Gabès ») passaient sur deux lignes : libellés sur une
   ligne, espacements resserrés. */
.cats-toggle, .primary-nav a { white-space: nowrap; }
@media (max-width: 1199px) {
  .header-nav-inner { gap: var(--sp-3); }
  .cats-toggle { padding: 0 16px; }
  .primary-nav .menu { gap: 0; }
  .primary-nav a { padding: 0 10px; }
}

/* Méga-menu */
.mega { position: absolute; top: 100%; left: 0; z-index: 70; width: min(960px, calc(100vw - 2 * var(--gutter))); background: #fff; border: 1px solid var(--tt-line); border-radius: 0 var(--r-md) var(--r-md) var(--r-md); box-shadow: var(--shadow-2); transform-origin: top left; }
.mega.is-opening { animation: mega-in var(--d-base) var(--ease-out); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.mega { min-height: 460px; }
.mega-families { position: static; display: block; width: 300px; list-style: none; margin: 0; padding: var(--sp-2); }
.mega-family-link { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-sm); color: var(--tt-ink-900); font-weight: 600; text-decoration: none; }
.mega-family-link .icon { width: 20px; height: 20px; color: var(--tt-ink-500); }
.mega-family-link span { flex: 1; }
.mega-chevron { opacity: .5; }
.mega-family.is-active > .mega-family-link, .mega-family-link:hover { background: var(--tt-mist); color: var(--tt-red-600); }
.mega-family.is-active > .mega-family-link .icon { color: var(--tt-red-600); }
.mega-panel { display: none; position: absolute; top: 0; bottom: 0; left: 300px; right: 0; overflow-y: auto; padding: var(--sp-6) var(--sp-8); border-left: 1px solid var(--tt-line); }
.mega-family.is-active > .mega-panel { display: block; }
.mega-panel-title { font-weight: 800; font-stretch: 80%; font-size: 1.5rem; text-transform: uppercase; margin-bottom: var(--sp-4); }
.mega-panel-title a { color: var(--tt-ink-900); text-decoration: none; }
.mega-panel .count { color: var(--tt-ink-500); font-weight: 500; font-size: .8125rem; font-stretch: 100%; text-transform: none; }
.mega-children { columns: 2; column-gap: var(--sp-8); list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.mega-children li { break-inside: avoid; }
.mega-children a { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 8px 0; color: var(--tt-ink-700); text-decoration: none; border-bottom: 1px solid var(--tt-line); }
.mega-children a:hover { color: var(--tt-red-600); }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(14 14 16 / .5); animation: fade-in var(--d-base) ease; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(420px, 88vw); display: flex; flex-direction: column; gap: var(--sp-4); background: #fff; overflow-y: auto; padding: var(--sp-4) var(--sp-4) var(--sp-8); animation: drawer-in var(--d-base) var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head svg:not(.icon) { height: 32px; width: auto; }
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu a { display: block; padding: 12px 4px; color: var(--tt-ink-900); font-weight: 700; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--tt-line); }
.drawer-label { margin: var(--sp-4) 0 var(--sp-2); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tt-ink-500); }
.drawer-cats { list-style: none; margin: 0; padding: 0; }
.drawer-cats summary { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; cursor: pointer; font-weight: 600; color: var(--tt-ink-900); list-style: none; border-bottom: 1px solid var(--tt-line); }
.drawer-cats summary::-webkit-details-marker { display: none; }
.drawer-cats summary span { flex: 1; }
.drawer-cats summary .icon { width: 20px; height: 20px; color: var(--tt-ink-500); }
.drawer-cats details[open] summary .icon-down { transform: rotate(180deg); }
.drawer-cats details ul { list-style: none; margin: 0; padding: var(--sp-2) 0 var(--sp-2) var(--sp-8); }
.drawer-cats details a { display: block; padding: 8px 0; color: var(--tt-ink-700); text-decoration: none; }
.drawer-contact { display: grid; gap: var(--sp-2); margin-top: auto; }
.drawer-hours { margin: 0; font-size: .875rem; color: var(--tt-ink-500); text-align: center; }
body.has-drawer { overflow: hidden; }

/* ---------- 8. Pied de page ---------- */
.site-footer { position: relative; margin-top: var(--sp-12); background: var(--tt-night); color: var(--tt-on-night); }
.footer-waves { position: absolute; bottom: 100%; left: 0; width: 100%; height: 40px; color: var(--tt-night); }
.footer-reassure { border-bottom: 1px solid var(--tt-night-3); }
.reassure-grid { display: grid; gap: var(--sp-4); padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
@media (min-width: 900px) { .reassure-grid { grid-template-columns: repeat(3, 1fr); } }
.reassure-grid p { display: flex; align-items: center; gap: var(--sp-4); margin: 0; }
.reassure-grid .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgb(236 28 36 / .16); color: #FF6A6F; }
.reassure-grid strong { display: block; color: #fff; }
.reassure-grid span { font-size: .9375rem; color: var(--tt-on-night-muted); }
.footer-grid { display: grid; gap: var(--sp-10); padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand svg { height: 40px; width: auto; margin-bottom: var(--sp-4); }
.footer-about p { color: var(--tt-on-night-muted); }
.footer-contact p { display: flex; gap: var(--sp-3); margin: 0 0 var(--sp-3); color: var(--tt-on-night); }
.footer-contact .icon { width: 20px; height: 20px; margin-top: 3px; color: #FF6A6F; }
.site-footer a { color: var(--tt-on-night); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-title, .site-footer .widget-title { margin: 0 0 var(--sp-4); color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links, .site-footer .widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a, .site-footer .widget li a { display: inline-block; padding: 6px 0; color: var(--tt-on-night-muted); }
.footer-social { display: flex; gap: var(--sp-2); list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tt-night-2); }
.footer-social a:hover { background: var(--tt-red-600); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--tt-night-3); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-6); padding-bottom: calc(var(--sp-6) + 72px); }
@media (min-width: 768px) { .footer-bottom-inner { padding-bottom: var(--sp-6); } }
.footer-slogan { color: #FF8589; margin: 0; }
.footer-copy { margin: 0; font-size: .875rem; color: var(--tt-on-night-muted); }

/* Bouton de contact flottant */
.fab { position: fixed; left: var(--sp-4); bottom: var(--sp-4); z-index: 40; display: flex; gap: var(--sp-2); transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility 0s; }
/* Masqué tant qu'un bouton d'appel ou d'action équivalent est visible à l'écran (assets/js/app.js). */
.fab.is-hidden { opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none; transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility 0s var(--d-base); }
.fab-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); background: var(--tt-red-600); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-red); transition: transform var(--d-base) var(--spring); }
.fab-btn:hover { color: #fff; background: var(--tt-red-700); transform: translateY(-3px); }
.fab-btn .icon { width: 22px; height: 22px; }
.fab-wa { background: #136C3D; box-shadow: 0 10px 28px rgb(19 108 61 / .3); padding: 0 15px; }
/* Pastille ronde à toutes les tailles : elle masque moins de contenu sur les listes mobiles.
   Le libellé reste lu par les lecteurs d'écran (masqué visuellement, jamais en display: none). */
.fab-btn { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
.fab-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.woocommerce-cart .fab, .woocommerce-checkout .fab, .woocommerce-account .fab { display: none; }

/* ---------- 9. Composants de contenu ---------- */
/* Carte produit */
.pcard { position: relative; display: flex; color: var(--tt-ink-700); flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--tt-line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--d-base) var(--ease-out), transform var(--d-base) var(--spring), border-color var(--d-fast); }
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); border-color: transparent; }
/* overflow: hidden supprime la hauteur minimale automatique d'aspect-ratio : une photo plus haute que large
   ne peut plus agrandir le cadre (cartes alignées). */
.pcard-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tt-mist); }
.pcard-media img, .woocommerce ul.products li.product .pcard-media img { width: 100%; height: 100%; margin: 0; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform var(--d-slow) var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4) var(--sp-4) var(--sp-3); flex: 1; }
.pcard-brand { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-ink-500); }
.pcard-title { margin: 0; font-size: .9375rem; font-weight: 650; line-height: 1.35; font-stretch: 100%; text-transform: none; letter-spacing: 0; }
.pcard-title a { color: var(--tt-ink-900); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-title a:hover { color: var(--tt-red-600); }
.pcard-price { margin-top: auto; color: var(--tt-ink-900); padding-top: var(--sp-2); font-variant-numeric: tabular-nums; }
.pcard-actions { position: relative; z-index: 2; padding: 0 var(--sp-4) var(--sp-4); }
.pcard-actions .btn { min-height: 44px; padding: 6px 12px; font-size: .9375rem; line-height: 1.2; text-align: center; }
.price { font-weight: 800; font-stretch: 90%; font-size: 1.3rem; color: var(--tt-ink-900); font-variant-numeric: tabular-nums; }
.price del { color: var(--tt-ink-500); font-weight: 500; font-size: .875rem; margin-left: 6px; }
.price ins { text-decoration: none; }
.price-on-demand { font-weight: 700; color: var(--tt-ink-900); }
.stock { font-size: .8125rem; font-weight: 600; }
.stock-in { color: var(--tt-ok); } .stock-low { color: var(--tt-warn); } .stock-out { color: var(--tt-ink-500); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-new { background: var(--tt-ink-900); color: #fff; }
.badge-promo { background: var(--tt-red-600); color: #fff; }

/* Grilles de produits (hors pages boutique aussi) */
ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); list-style: none; margin: 0 0 var(--sp-8); padding: 0; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }
@media (min-width: 1100px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
ul.products::before, ul.products::after, .woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; content: none !important; }
ul.products li.product, .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; clear: none !important; padding: 0; }

/* Cartes d'articles */
.post-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--tt-line); border-radius: var(--r-md); overflow: hidden; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: var(--sp-6); }
.post-card .h3 a { color: var(--tt-ink-900); text-decoration: none; }

/* FAQ */
.faq { margin: var(--sp-12) 0; }
.faq-item { border-bottom: 1px solid var(--tt-line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 56px; padding: var(--sp-3) 0; cursor: pointer; font-weight: 700; color: var(--tt-ink-900); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform var(--d-base) var(--ease-out); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 var(--sp-4); color: var(--tt-ink-700); }

/* Formulaires */
.field { display: grid; gap: 6px; margin: 0 0 var(--sp-4); }
.field label { font-weight: 600; color: var(--tt-ink-900); font-size: .9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--tt-line); border-radius: var(--r-sm); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tt-ink-900); }
.field-row { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .875rem; color: var(--tt-ink-500); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: var(--sp-4); border-radius: var(--r-sm); font-weight: 600; }
.notice-success { background: #E7F4EC; color: #0F5A2C; }
.notice-error { background: var(--tt-red-50); color: var(--tt-red-700); }

/* Contenu éditorial */
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; font-stretch: 85%; margin-top: var(--sp-10); }
.entry-content h3 { font-size: 1.25rem; margin-top: var(--sp-8); }
.entry-content img { border-radius: var(--r-md); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 var(--sp-4); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-6); font-size: .9375rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--tt-line); text-align: left; }
.entry-figure { margin: 0 0 var(--sp-8); }
.entry-figure img { width: 100%; border-radius: var(--r-lg); }

/* Pagination */
.pagination .nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); list-style: none; margin: var(--sp-8) 0 0; padding: 0; border: 0; }
.page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--tt-line); color: var(--tt-ink-900); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--tt-ink-900); border-color: var(--tt-ink-900); color: #fff; }
a.page-numbers:hover { border-color: var(--tt-red-600); color: var(--tt-red-600); }

/* Page 404 */
.page-404 { padding-top: var(--sp-16); }
.page-404 .search { margin: var(--sp-6) 0; justify-self: start; }

/* ---------- 10. Pages : accueil, pages locales, contact ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-8); margin-bottom: var(--sp-8); }
.section-head .h2 { margin-bottom: 0; }
.section-head .lead { margin: var(--sp-4) 0 0; }
.section-dark .kicker { color: #FF6A6F; }
.section-dark .pcard { border-color: transparent; }
/* Cartes blanches dans une section sombre : elles gardent leurs propres couleurs de texte. */
.section-dark .pcard h2, .section-dark .pcard h3 { color: var(--tt-ink-900); }

/* Héros */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(40px, 6vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hero-title { margin-bottom: var(--sp-4); }
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }
.hero-hand { margin: 0 0 var(--sp-4); }
.hero-pills { margin: var(--sp-4) 0 var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; }
.hero-art { width: min(100%, 460px); justify-self: center; aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 959px) { .hero-art { width: min(46%, 210px); order: -1; } .hero-grid { gap: var(--sp-4); } .hero-grid > * { min-width: 0; } }

/* Preuves */
.proofs { background: var(--tt-ink-900); color: #fff; }
.proofs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
@media (min-width: 900px) { .proofs-grid { grid-template-columns: repeat(4, 1fr); } }
.proofs p { margin: 0; display: grid; gap: 2px; }
.proofs strong { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; line-height: 1; font-variant-numeric: tabular-nums; }
.proofs p > span { color: var(--tt-on-night-muted); font-size: .9375rem; }

/* Familles */
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 1100px) { .family-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.family-card { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--sp-5); border: 1px solid var(--tt-line); border-radius: var(--r-md); background: #fff; color: var(--tt-ink-900); text-decoration: none; transition: border-color var(--d-fast), transform var(--d-base) var(--spring), box-shadow var(--d-base) var(--ease-out); }
.family-card:hover { border-color: var(--tt-red-500); transform: translateY(-3px); box-shadow: var(--shadow-1); color: var(--tt-ink-900); }
.family-media { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--sp-3); border-radius: 50%; background: var(--tt-red-50); color: var(--tt-red-600); overflow: hidden; }
.family-media .icon { width: 28px; height: 28px; }
.family-media img { width: 100%; height: 100%; object-fit: cover; }
.family-name { font-weight: 750; font-stretch: 90%; line-height: 1.2; }
.family-count { font-size: .875rem; color: var(--tt-ink-500); }
.family-arrow { position: absolute; top: var(--sp-5); right: var(--sp-5); width: 20px; height: 20px; color: var(--tt-red-600); opacity: 0; transform: translateX(-6px); transition: opacity var(--d-fast), transform var(--d-base) var(--spring); }
.family-card:hover .family-arrow { opacity: 1; transform: none; }

/* Bloc magasin */
.store-block { display: grid; gap: var(--sp-8); align-items: stretch; }
@media (min-width: 960px) { .store-block { grid-template-columns: 1fr 1.1fr; } }
.store-list { display: grid; gap: var(--sp-4); margin: 0 0 var(--sp-6); }
.store-list li { display: flex; gap: var(--sp-3); }
.store-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--tt-red-600); }
.store-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.store-map { position: relative; display: grid; place-items: center; align-content: center; gap: var(--sp-3); min-height: 320px; border-radius: var(--r-lg); background: var(--tt-night); color: #fff; overflow: hidden; text-align: center; padding: var(--sp-6); }
.store-map-art { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; }
.store-map .btn { position: relative; }
.store-map-note { position: relative; margin: 0; font-size: .8125rem; color: var(--tt-on-night-muted); }
.store-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brand-pills .count { font-size: .75rem; color: var(--tt-ink-500); font-weight: 500; }

/* Pages locales et contenus gérés */
.local-hero { padding: var(--sp-4) 0 var(--sp-10); }
.local-hero .pill-list { margin-bottom: 0; }
.local-section { padding: var(--sp-12) 0; border-top: 1px solid var(--tt-line); }
.local-cols { display: grid; gap: var(--sp-8); }
@media (min-width: 960px) { .local-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } }
.local-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; font-stretch: 80%; text-transform: uppercase; }
.local-prose h3 { font-size: 1.2rem; margin-top: var(--sp-6); }
.choice-grid { display: grid; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice-card { padding: var(--sp-6); border: 1px solid var(--tt-line); border-radius: var(--r-md); background: #fff; }
.choice-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.choice-card p { margin: 0; font-size: .9375rem; color: var(--tt-ink-700); }
.areas { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.areas li { padding: 4px 12px; border-radius: var(--r-pill); background: var(--tt-mist); font-size: .875rem; }

/* Contact */
.contact-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--sp-12); } }
.contact-cards { display: grid; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.contact-card { display: flex; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--tt-line); border-radius: var(--r-md); }
.contact-card h2 { font-size: 1rem; margin: 0 0 4px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contact-card p { margin: 0; }
.contact-form-card { padding: var(--sp-6); border-radius: var(--r-lg); background: var(--tt-mist); }
@media (min-width: 768px) { .contact-form-card { padding: var(--sp-10); } }

/* ---------- 11. Accessibilité du mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
