/* ============================================================
   Technologia — Header + Footer codés (v4)
   Mobile-first. Classes préfixées .tec- (n'écrase jamais Blocksy/Woo).
   Consomme les tokens :root --tec-* (technologia-tokens.css).
   ============================================================ */

.tec-body { margin: 0; }

/* Accessibilité : lien d'évitement */
.tec-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--tec-navy); color: #fff; padding: 10px 16px;
	border-radius: 0 0 var(--tec-radius-md) 0; font-family: var(--tec-font-sans);
}
.tec-skip-link:focus { left: 0; }

/* ---- Header sticky ------------------------------------------ */
.tec-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--tec-line-200, #E7EBF0);
}
/* Le header est volontairement plus large (1240) que les sections de contenu
   (1200) — conforme à la maquette de référence. */
.tec-header-inner {
	max-width: 1240px;
	margin: 0 auto; padding: 13px var(--tec-gutter, 20px);
	min-height: 56px;
	display: flex; align-items: center; gap: 12px;
}

/* Logo */
.tec-logo { display: flex; align-items: center; flex: 0 0 auto; }
.tec-logo img, .tec-logo .custom-logo { height: 24px; width: auto; display: block; }
.tec-logo-link { display: inline-flex; }

/* ---- Burger (mobile) --------------------------------------- */
.tec-burger {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 42px; height: 42px; padding: 9px; margin: -4px 0;
	background: none; border: 0; cursor: pointer; border-radius: var(--tec-radius-md);
	flex: 0 0 auto;
}
.tec-burger-bar { display: block; height: 2px; width: 100%; background: var(--tec-navy); border-radius: 2px; transition: transform var(--tec-dur-base) var(--tec-ease-out), opacity var(--tec-dur-base); }
.tec-burger[aria-expanded="true"] .tec-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tec-burger[aria-expanded="true"] .tec-burger-bar:nth-child(2) { opacity: 0; }
.tec-burger[aria-expanded="true"] .tec-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Navigation desktop ------------------------------------ */
.tec-nav { display: none; }
.tec-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tec-menu a {
	display: inline-block; padding: 9px 12px; border-radius: var(--tec-radius-md);
	font-family: var(--tec-font-sans); font-weight: 700; font-size: 14.5px;
	color: var(--tec-navy); text-decoration: none; white-space: nowrap;
	transition: background var(--tec-dur-fast), color var(--tec-dur-fast);
}
/* Survol : la COULEUR seule porte l'état (maquette de référence) — jamais une
   pastille de fond derrière l'onglet. */
.tec-menu a:hover, .tec-menu .current-menu-item > a { background: none; color: var(--tec-agent-ink, #0B7BA6); }
/* Les liens du menu ne retombent jamais sur le bleu par défaut du navigateur. */
.tec-menu a:link, .tec-menu a:visited { color: var(--tec-navy); text-decoration: none; }
/* Sous-menus (méga/déroulant) */
.tec-menu li { position: relative; }
.tec-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 6px 0 0; padding: 8px;
	background: #fff; border: 1px solid var(--tec-line-200); border-radius: var(--tec-radius-lg);
	box-shadow: var(--tec-shadow-lg); display: none; z-index: 120;
}
.tec-menu li:hover > .sub-menu, .tec-menu li:focus-within > .sub-menu { display: block; }
.tec-menu .sub-menu a { display: block; font-weight: 500; color: var(--tec-navy); }
.tec-menu .sub-menu a:hover { background: var(--tec-surface-tint, #EAF1F8); color: var(--tec-agent-ink, #0B7BA6); }

/* Caret ▾ sur les items à sous-menu (Univers, Aide & Contact) */
.tec-menu .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 7px; }
.tec-menu .menu-item-has-children > a::after {
	content: ""; flex: none; width: 6px; height: 6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .65;
	transition: transform var(--tec-dur-fast);
}
.tec-menu .menu-item-has-children:hover > a::after,
.tec-menu .menu-item-has-children:focus-within > a::after { transform: translateY(1px) rotate(-135deg); opacity: 1; }

/* Emphase « Offres » (deals) — graisse plus légère que les autres items,
   conforme à la maquette : c'est la COULEUR qui porte l'emphase, pas le gras. */
.tec-menu .tec-offres > a { color: var(--tec-agent-ink, #0B7BA6); font-weight: 600; }

/* ---- Barre agent (recherche produits) ---------------------- */
.tec-header .tec-agentbar {
	display: none; align-items: center; gap: 8px; flex: 1 1 auto;
	max-width: 460px; margin: 0 auto;
	background: #fff; border: 2px solid var(--tec-line-300, #D8DEE6);
	border-radius: var(--tec-radius-pill, 999px);
	padding: 4px 6px 4px 12px;
	transition: border-color var(--tec-dur-base), box-shadow var(--tec-dur-base);
}
.tec-header .tec-agentbar:focus-within {
	border-color: var(--tec-agent-signal, #00C2FF);
	box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15), var(--tec-shadow-signal);
	animation: tec-agentbar-glow 0.6s ease-out;
}
.tec-header .tec-agentbar .woocommerce-product-search,
.tec-header .tec-agentbar form { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; margin: 0; }
.tec-header .tec-agentbar .search-field,
.tec-header .tec-agentbar input[type="search"] {
	flex: 1 1 auto; border: 0; outline: 0; background: transparent;
	font-family: var(--tec-font-sans); font-size: 16px; color: var(--tec-ink-700);
	min-width: 0; padding: 6px 0;
}
.tec-header .tec-agentbar button[type="submit"] {
	flex: 0 0 auto; width: 34px; height: 34px; border: 0; cursor: pointer;
	border-radius: var(--tec-radius-pill); color: #fff; font-size: 0;
	background: var(--tec-cta-grad, linear-gradient(135deg,#4BA9DE,#273F7E));
	position: relative;
	transition: transform var(--tec-dur-base), box-shadow var(--tec-dur-base);
}
.tec-header .tec-agentbar button[type="submit"]::after {
	content: "→"; font-size: 18px; position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	transition: transform var(--tec-dur-base);
}
.tec-header .tec-agentbar button[type="submit"]:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(75, 169, 222, 0.4);
}
.tec-header .tec-agentbar button[type="submit"]:hover::after {
	transform: translateX(2px);
}
.tec-header .tec-agentbar .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Actions (compte + wishlist + panier) ----------------------------- */
.tec-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.tec-icon-btn, .tec-cart, .tec-wishlist {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: var(--tec-radius-md);
	color: var(--tec-navy); text-decoration: none;
	transition: background var(--tec-dur-fast);
}
.tec-icon-btn:hover, .tec-cart:hover, .tec-wishlist:hover { background: var(--tec-surface-tint, #EAF1F8); }
.tec-cart-count, .tec-wishlist-count {
	position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--tec-font-sans); font-size: 10px; font-weight: 700; line-height: 1;
	color: #fff; border-radius: var(--tec-radius-pill);
	background: var(--tec-agent-signal, #00C2FF);
}
.tec-cart-count--empty, .tec-wishlist-count--empty { display: none; }

/* ---- Nœud « t » -------------------------------------------- */
.tec-node { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tec-node--sm { width: 24px; height: 24px; }
.tec-node-core { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 2; }
.tec-node-halo {
	position: absolute; inset: -40%; border-radius: 50%; z-index: 1;
	background: var(--tec-agent-halo, radial-gradient(circle, rgba(0,194,255,.22) 0%, rgba(0,194,255,0) 70%));
	transition: all var(--tec-dur-base);
}
.tec-node--light .tec-node-core { filter: brightness(0) invert(1); }
/* Nœud qui pense : animation fluide du halo */
.tec-header .tec-agentbar .tec-node.is-thinking .tec-node-halo {
	animation: tec-pulse-smooth 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Animation pulse fluide du halo (dual-ring effect) */
@keyframes tec-pulse-smooth {
	0% { transform: scale(0.9); opacity: 0.6; }
	50% { transform: scale(1.4); opacity: 0.3; }
	100% { transform: scale(0.9); opacity: 0.6; }
}

/* ---- Tiroir mobile (burger) -------------------------------- */
.tec-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
	width: min(86vw, 340px); background: #fff;
	transform: translateX(-100%); transition: transform var(--tec-dur-slow) var(--tec-ease-out);
	display: flex; flex-direction: column; padding: 16px;
	box-shadow: var(--tec-shadow-xl); overflow-y: auto;
}
.tec-drawer.is-open { transform: translateX(0); }
.tec-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tec-drawer-title { font-family: var(--tec-font-display); font-weight: 700; color: var(--tec-navy); font-size: var(--tec-fs-h3); }
.tec-drawer-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0;
	background: none; border: 0; font-size: 30px; line-height: 1;
	color: var(--tec-ink-500); cursor: pointer; border-radius: var(--tec-radius-md);
}
.tec-drawer-agent { margin-bottom: 16px; }
.tec-drawer-agent .woocommerce-product-search, .tec-drawer-agent form { display: flex; gap: 6px; }
.tec-drawer-agent .search-field, .tec-drawer-agent input[type="search"] {
	flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 16px;
	border: 1px solid var(--tec-line-300); border-radius: var(--tec-radius-md); background: #fff;
}
.tec-drawer-agent button[type="submit"] { border: 0; border-radius: var(--tec-radius-md); padding: 0 14px; color: #fff; background: var(--tec-cta-grad); cursor: pointer; }
.tec-drawer-menu, .tec-drawer-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.tec-drawer-menu > li { border-bottom: 1px solid var(--tec-line-200); }
.tec-drawer-menu a { display: block; padding: 13px 4px; text-decoration: none; color: var(--tec-navy); font-weight: 600; font-family: var(--tec-font-sans); }
.tec-drawer-menu .sub-menu a { padding-left: 18px; font-weight: 500; color: var(--tec-ink-500); }
.tec-drawer-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(10,16,32,.5); border: 0; }
.tec-drawer-scrim[hidden] { display: none; }

/* Verrou de scroll quand le tiroir est ouvert */
body.tec-drawer-open { overflow: hidden; }

/* ============================================================
   FOOTER — noir premium (maquette « Home Sombre v4 », section
   OMNICANAL + FOOTER). Valeurs reprises telles quelles.
   Un seul trait de séparation : celui de la zone basse.
   ============================================================ */
.tec-footer { background: #060A12; color: #EAF0F8; font-family: var(--tec-font-sans); border-top: 1px solid rgba(255,255,255,.07); }
.tec-footer-inner { width: 100%; max-width: var(--tec-container-wide, 1200px); margin: 0 auto; padding: clamp(30px,4vw,48px) clamp(16px,4vw,40px) clamp(22px,3vw,28px); }

/* Les liens du footer ne prennent jamais le bleu par défaut du navigateur. */
.tec-footer a { color: rgba(255,255,255,.74); text-decoration: none; }
.tec-footer a:hover, .tec-footer a:focus-visible { color: #fff; }

/* ---- Carte omnicanal --------------------------------------- */
.tec-omni {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
	border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
	padding: clamp(15px,2.2vw,19px) clamp(20px,3vw,30px); margin-bottom: 6px;
}
.tec-omni-title {
	display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
	text-align: center;
	font-family: var(--tec-font-display); font-size: clamp(15px,1.8vw,18px);
	font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: #fff;
}
.tec-omni-brand { color: var(--tec-agent-signal, #00C2FF); }
/* Nœud = halo diffus + marque détourée. Jamais une pastille pleine. */
.tec-omni-node { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; }
.tec-omni-halo {
	position: absolute; width: 44px; height: 44px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0,194,255,.4), rgba(0,194,255,0) 70%);
}
.tec-omni-mark {
	position: relative; z-index: 2; height: 16px; width: auto; display: block;
	filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,194,255,.9));
}

.tec-omni-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.tec-social { display: inline-flex; }
.tec-social-badge {
	width: 50px; height: 50px; border-radius: 50%;
	background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.16);
	display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35);
	transition: transform .18s var(--tec-ease-out), box-shadow .18s var(--tec-ease-out), background .18s var(--tec-ease-out);
}
.tec-social:hover .tec-social-badge, .tec-social:focus-visible .tec-social-badge {
	transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.45); background: rgba(255,255,255,.09);
}

/* ---- Zone principale --------------------------------------- */
.tec-footer-main { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 28px; }
.tec-footer-brand { max-width: 250px; }
.tec-footer-logo { height: 26px; width: auto; margin-bottom: 12px; display: block; }
.tec-footer-baseline { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.74); line-height: 1.55; }
.tec-footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; font-size: 13px; }
.tec-footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.tec-footer-contact .tec-fico { color: #7FD6F2; flex: none; }

.tec-footer-h {
	display: inline-flex; align-items: center; gap: 7px; margin: 0 0 13px;
	font-family: var(--tec-font-sans); font-size: 11px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.58);
}
.tec-footer-h-ico { display: inline-flex; color: #7FD6F2; }
.tec-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tec-footer-links a { transition: color var(--tec-dur-fast, .15s); }

/* ---- Zone basse -------------------------------------------- */
.tec-footer-bottom {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
}
.tec-footer-trust {
	display: flex; align-items: center; justify-content: center; gap: 14px 26px; flex-wrap: wrap;
	font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.74);
}
.tec-trust-item { display: inline-flex; align-items: center; gap: 7px; }
.tec-trust-item .tec-fico { color: #7FD6F2; flex: none; }
.tec-footer-legal {
	margin: 0; display: flex; align-items: center; justify-content: center;
	gap: 8px 16px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255,255,255,.5);
}
.tec-footer-sep { opacity: .45; }
/* Drapeau : SVG (l'emoji 🇹🇳 se replie en « TN » sur Windows). */
.tec-flag { display: inline-block; vertical-align: -1px; margin-left: 2px; }

/* ---- Widget flottant WhatsApp (plugin nta) ------------------
   Sa bulle blanche cassait le noir premium. On l'habille en sombre
   (il reste masqué sur la Home via home.css). Réversible, sans toucher
   au plugin. */
#wa .wa__btn_popup_txt {
	background: #0C1730; color: #EAF0F8;
	border: 1px solid rgba(0,194,255,.28); border-radius: var(--tec-radius-pill, 999px);
	box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
#wa .wa__btn_popup_txt span { color: #EAF0F8; }
#wa .wa__btn_popup_icon {
	background: #0C1730 !important;
	border: 1px solid rgba(0,194,255,.28);
	color: var(--tec-agent-signal, #00C2FF);
	box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
#wa .wa__popup_chat_box { background: #0C1730; border: 1px solid rgba(0,194,255,.28); }
#wa .wa__popup_content { background: #0C1730; }
#wa .wa__popup_notice, #wa .wa__popup_content_item { color: rgba(255,255,255,.74); }

/* ============================================================
   Desktop ≥ 1040px : nav + barre agent visibles, burger caché
   ============================================================ */
@media (min-width: 1040px) {
	.tec-header-inner { min-height: 66px; gap: 18px; padding: 13px 40px; }
	.tec-burger { display: none; }
	.tec-nav { display: block; }
	.tec-header .tec-agentbar { display: flex; }
	/* Boîtes d'icônes compactes au desktop (maquette : ~30px, pas 42px). Les
	   42px sont conservés en mobile pour rester une cible tactile correcte. */
	.tec-actions { gap: 0; }
	.tec-icon-btn, .tec-cart, .tec-wishlist { width: 30px; height: 30px; }
}

/* ---- Animations -------------------------------------------- */
/* Glow d'activation de la barre agent */
@keyframes tec-agentbar-glow {
	0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.4), var(--tec-shadow-signal); }
	50% { box-shadow: 0 0 0 6px rgba(0, 194, 255, 0.1), var(--tec-shadow-signal); }
	100% { box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15), var(--tec-shadow-signal); }
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
	.tec-drawer, .tec-burger-bar, .tec-header .tec-agentbar { transition: none; }
	.tec-social-badge, .tec-footer-links a { transition: none; }
	.tec-social:hover .tec-social-badge, .tec-social:focus-visible .tec-social-badge { transform: none; }
	.tec-header .tec-agentbar .tec-node.is-thinking .tec-node-halo { animation: none; }
	.tec-header .tec-agentbar:focus-within { animation: none; }
}
