/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   Thème enfant Electro — 2M InfoTech (Mohammadia, Alger)
 Author:        DIGIZONE
 Author URI:    https://digizonedz.com/
 Template:      electro
 Version:       1.0.0
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:   electro-child
*/

/* ==================================================================
   Tokens 2M InfoTech
   Teal 2M (logo) · Encre · Ardoise · Brume · Ambre (prix / badges)
   ================================================================== */
:root {
	--it-teal: #1B95A6;
	--it-teal-dark: #12707E;
	--it-teal-soft: #E3F3F5;
	--it-ink: #0B1F2A;
	--it-ink-2: #12303D;
	--it-slate: #22313B;
	--it-muted: #5B6B75;
	--it-mist: #F3F6F8;
	--it-line: #DCE5E9;
	--it-amber: #F5A524;
	--it-white: #FFFFFF;
	--it-font-title: "Rajdhani", "Inter", system-ui, sans-serif;
	--it-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--it-font-ar: "Tajawal", "Inter", system-ui, sans-serif;
	--it-radius: 14px;
	--it-shadow: 0 10px 30px rgba(11, 31, 42, 0.12);
	--it-shadow-lg: 0 24px 60px rgba(11, 31, 42, 0.22);
}

/* ==================================================================
   Typographie globale
   ================================================================== */
body {
	font-family: var(--it-font-body) !important; /* chaîne de repli garantie même si Google Fonts échoue */
	color: var(--it-slate);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.section-title,
.products-carousel-tabs .nav-link,
.products-2-1-2-block .section-title,
.woocommerce-loop-product__title,
.product_title,
.price {
	font-family: var(--it-font-title) !important;
	letter-spacing: 0.005em;
}
.section-title {
	font-weight: 700;
	font-size: 1.35rem;
	text-transform: none;
	color: var(--it-ink);
}
.woocommerce-loop-product__title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.35;
}
.price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	font-weight: 700;
	color: var(--it-ink);
}
.woocommerce div.product p.price {
	font-size: 1.9rem;
}

/* Arabe : Tajawal, sans changer les chiffres/marques latines */
body.rtl,
body.it-lang-ar,
body.it-lang-ar h1, body.it-lang-ar h2, body.it-lang-ar h3, body.it-lang-ar h4,
body.it-lang-ar .section-title,
body.it-lang-ar .woocommerce-loop-product__title,
body.it-lang-ar .product_title,
body.it-lang-ar .it-hero__title,
body.it-lang-ar .it-h2,
body.it-lang-ar .it-btn {
	font-family: var(--it-font-ar);
}
body.it-lang-ar .it-hero__title { font-weight: 800; }

/* ==================================================================
   En-tête
   ================================================================== */
.header-v1 .top-bar { background: var(--it-ink); color: #cfe0e5; }
.header-v1 .top-bar a { color: #cfe0e5; }
.header-v1 .top-bar .menu-item > a:hover { color: #fff; }
.header-logo img, .header-logo .img-header-logo, .header-logo-link img { height: 96px !important; max-height: 96px !important; width: auto !important; max-width: none !important; }
.handheld-header .header-logo img, .handheld-header-v2 .header-logo img { height: 46px !important; max-height: 46px !important; }
/* Sur l'accueil, le menu Rayons est déployé (270 px) : le hero commence à sa droite */
@media (min-width: 992px) {
	/* bord droit du menu déployé = (100vw - conteneur)/2 + 270 px ; on ajoute 12 px de respiration */
	.home-v1-slider .it-hero { margin-inline-start: calc(50vw - 196px); }
}
@media (min-width: 1200px) {
	.home-v1-slider .it-hero { margin-inline-start: calc(50vw - 303px); }
}
.header-support-info .support-number strong { color: var(--it-teal); }
.navbar-search .input-group .btn,
.navbar-search .input-group .btn:hover { background: var(--it-teal); border-color: var(--it-teal); color: #fff; }
.navbar-search .form-control { border-color: var(--it-teal); }
.departments-menu-v2-title { font-family: var(--it-font-title); font-weight: 700; letter-spacing: 0.02em; }
.secondary-nav-menu .nav-inline > .menu-item > a { font-weight: 600; }

/* Icônes du menu Rayons */
.it-mi { width: 1.25em; margin-inline-end: 0.55em; text-align: center; color: var(--it-teal); opacity: 0.9; }
.departments-menu-v2 .yamm > li > a .it-mi,
.departments-menu-v2 li > a .it-mi { display: inline-block; }

/* ==================================================================
   Composants maison
   ================================================================== */
.it-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em;
	font-family: var(--it-font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--it-teal-dark); margin: 0 0 0.75rem;
}
.it-eyebrow--light { color: #8fdce8; }
body.it-lang-ar .it-eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.it-sq { display: inline-block; width: 9px; height: 9px; background: var(--it-teal); box-shadow: 0 0 0 3px rgba(27, 149, 166, 0.22); }
.it-h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; line-height: 1.15; color: var(--it-ink); margin: 0 0 0.75rem; }

.it-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 48px; padding: 0.7em 1.35em; border-radius: 10px;
	font-family: var(--it-font-body); font-weight: 600; font-size: 0.98rem; line-height: 1.1;
	text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	border: 2px solid transparent;
}
.it-btn svg { width: 1.1em; height: 1.1em; }
.it-btn:hover { transform: translateY(-1px); text-decoration: none; }
.it-btn:focus-visible { outline: 3px solid var(--it-amber); outline-offset: 2px; }
.it-btn--primary { background: var(--it-teal); color: #fff !important; box-shadow: 0 8px 20px rgba(27, 149, 166, 0.35); }
.it-btn--primary:hover { background: var(--it-teal-dark); color: #fff; }
.it-btn--ghost { background: transparent; color: var(--it-ink) !important; border-color: var(--it-line); }
.it-btn--ghost:hover { border-color: var(--it-teal); color: var(--it-teal-dark) !important; }
.it-btn--light { color: #fff !important; border-color: rgba(255, 255, 255, 0.35); }
.it-btn--light:hover { border-color: #fff; color: #fff !important; background: rgba(255, 255, 255, 0.06); }
.it-badge {
	display: inline-block; padding: 0.3em 0.7em; border-radius: 6px;
	background: var(--it-amber); color: var(--it-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
body.it-lang-ar .it-badge { letter-spacing: 0; font-size: 0.85rem; }

/* ==================================================================
   Hero — encre + grille pixel (motif du logo)
   ================================================================== */
.home-v1-slider { margin-bottom: 1.25rem; }
.it-hero {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: var(--it-radius);
	background:
		radial-gradient(120% 90% at 85% 15%, rgba(27, 149, 166, 0.45) 0%, rgba(27, 149, 166, 0) 55%),
		linear-gradient(135deg, var(--it-ink-2) 0%, var(--it-ink) 60%);
	color: #fff;
	min-height: 420px;
}
.it-hero__grid {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(rgba(143, 220, 232, 0.13) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 220, 232, 0.13) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 60%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 80% at 20% 60%, #000 0%, transparent 70%);
}
.it-hero__squares { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.it-hero__squares i {
	position: absolute; display: block; border: 1.5px solid rgba(143, 220, 232, 0.55); background: rgba(27, 149, 166, 0.12);
	animation: it-float 9s ease-in-out infinite;
}
.it-hero__squares i:nth-child(1) { width: 14px; height: 14px; left: 6%;  top: 18%; animation-delay: 0s; }
.it-hero__squares i:nth-child(2) { width: 22px; height: 22px; left: 12%; top: 70%; animation-delay: -2s; }
.it-hero__squares i:nth-child(3) { width: 9px;  height: 9px;  left: 30%; top: 82%; animation-delay: -4s; }
.it-hero__squares i:nth-child(4) { width: 18px; height: 18px; left: 48%; top: 12%; animation-delay: -1s; }
.it-hero__squares i:nth-child(5) { width: 11px; height: 11px; left: 62%; top: 88%; animation-delay: -6s; }
.it-hero__squares i:nth-child(6) { width: 26px; height: 26px; left: 90%; top: 78%; animation-delay: -3s; }
.it-hero__squares i:nth-child(7) { width: 8px;  height: 8px;  left: 95%; top: 12%; animation-delay: -5s; }
@keyframes it-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .it-hero__squares i { animation: none; } }

.it-hero__inner {
	position: relative; display: grid; gap: 1.75rem;
	padding: 2rem 1.35rem 1.75rem;
}
.it-hero__title {
	font-size: clamp(2rem, 6.2vw, 3.5rem); font-weight: 700; line-height: 1.02; color: #fff; margin: 0 0 1rem;
	text-wrap: balance;
}
.it-hero__title em { font-style: normal; color: #8fdce8; }
.it-hero__sub { font-size: 1.05rem; line-height: 1.55; color: #c9dde3; max-width: 34rem; margin: 0 0 1.4rem; }
.it-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.it-hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.88rem; color: #a9c4cc; }
.it-hero__points li { position: relative; padding-inline-start: 1.1em; }
.it-hero__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 7px; height: 7px; background: var(--it-teal); }

.it-hero__card {
	position: relative; display: grid; gap: 0.35rem; justify-items: start;
	padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; background: #fff; color: var(--it-ink);
	box-shadow: var(--it-shadow-lg); text-decoration: none;
	transform: rotate(-1.2deg); transition: transform 0.25s ease, box-shadow 0.25s ease;
	max-width: 420px; width: 100%; justify-self: center;
}
.it-hero__card:hover { transform: rotate(0deg) translateY(-4px); text-decoration: none; color: var(--it-ink); }
.it-hero__card .it-badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; }
.it-hero__card-img { display: block; width: 100%; aspect-ratio: 1 / 1; background: #fff; border-radius: 10px; overflow: hidden; }
.it-hero__card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.it-hero__card-name { font-family: var(--it-font-title); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.it-hero__card-price { font-family: var(--it-font-title); font-weight: 700; font-size: 1.5rem; color: var(--it-teal-dark); }
.it-hero__card-price .amount { color: inherit; }
.it-hero__card-link { font-size: 0.85rem; font-weight: 600; color: var(--it-teal-dark); }

@media (min-width: 768px) {
	.it-hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 2.75rem 2.5rem; }
	.it-hero__card { justify-self: end; }
}
@media (min-width: 1200px) {
	.it-hero { min-height: 520px; }
	.it-hero__inner { padding: 3.5rem 3.5rem; gap: 3rem; }
}

/* ==================================================================
   Bandeau de réassurance
   ================================================================== */
.it-features { margin: 0 0 1.75rem; }
.it-features__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
}
.it-features__item {
	display: flex; gap: 0.8rem; align-items: center;
	padding: 0.9rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--it-line);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.it-features__item:hover { border-color: var(--it-teal); box-shadow: 0 6px 18px rgba(27, 149, 166, 0.12); }
.it-features__icon {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
	display: grid; place-items: center; background: var(--it-teal-soft); color: var(--it-teal-dark);
}
.it-features__icon svg { width: 24px; height: 24px; }
.it-features__body { display: grid; gap: 0.1rem; min-width: 0; }
.it-features__body strong { font-size: 0.95rem; color: var(--it-ink); line-height: 1.2; }
.it-features__body span { font-size: 0.82rem; color: var(--it-muted); line-height: 1.3; }
@media (min-width: 992px) {
	.it-features__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==================================================================
   Blocs Electro — finitions
   ================================================================== */
.da-block .da-inner { border-radius: 12px; border: 1px solid var(--it-line); background: #fff; }
.da-block .da-text { font-family: var(--it-font-title); font-size: 1.25rem; line-height: 1.2; color: var(--it-ink); }
.da-block .da-text strong { color: var(--it-teal-dark); }
.da-block .da-action { color: var(--it-teal-dark); font-weight: 600; }
.home-v1-deals-and-tabs .section-title,
.home-v1-products-2-1-2 .section-title { position: relative; padding-inline-start: 1.1rem; }
.home-v1-deals-and-tabs .section-title::before,
.home-v1-products-2-1-2 .section-title::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 0.32em; width: 10px; height: 10px; background: var(--it-teal);
}
.products-carousel-tabs .nav-tabs .nav-link { font-weight: 600; }
ul.products li.product .product-outer { border-radius: 12px; }
.woocommerce ul.products li.product .button,
.woocommerce a.button.add_to_cart_button { font-weight: 600; }

/* ==================================================================
   Section magasin
   ================================================================== */
.it-store { margin: 2rem 0 1rem; padding: 1.5rem; border-radius: var(--it-radius); background: var(--it-mist); }
.it-store__grid { display: grid; gap: 1.5rem; }
.it-store__lead { color: var(--it-muted); line-height: 1.6; margin: 0 0 1rem; }
.it-store__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.it-store__list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; color: var(--it-ink); }
.it-store__list svg { width: 20px; height: 20px; color: var(--it-teal); flex: 0 0 20px; }
.it-store__list a { color: var(--it-ink); }
.it-store__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.it-store__map { border-radius: 12px; overflow: hidden; background: #dfe7ea; min-height: 280px; box-shadow: var(--it-shadow); }
.it-store__map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (min-width: 992px) {
	.it-store { padding: 2.25rem; }
	.it-store__grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
	.it-store__map, .it-store__map iframe { min-height: 360px; }
}

/* ==================================================================
   Page contact
   ================================================================== */
.it-contact { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.it-contact__cards { display: grid; gap: 0.75rem; }
.it-contact__card {
	display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 0.75rem;
	padding: 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--it-line); color: var(--it-ink); text-decoration: none;
}
.it-contact__card svg { grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--it-teal); align-self: center; }
.it-contact__card strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--it-muted); }
body.it-lang-ar .it-contact__card strong { letter-spacing: 0; text-transform: none; }
.it-contact__card span { font-size: 1.05rem; font-weight: 600; }
a.it-contact__card:hover { border-color: var(--it-teal); }
@media (min-width: 768px) {
	.it-contact__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ==================================================================
   Fiche produit : réassurance
   ================================================================== */
.it-reassure { list-style: none; margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: 10px; background: var(--it-mist); display: grid; gap: 0.45rem; }
.it-reassure li { position: relative; padding-inline-start: 1.3em; font-size: 0.9rem; color: var(--it-slate); }
.it-reassure li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 8px; height: 8px; background: var(--it-teal); }

/* ==================================================================
   Pied de page
   ================================================================== */
.footer-widgets { background: var(--it-ink); color: #c9dde3; }
.footer-widgets a { color: #c9dde3; }
.footer-widgets a:hover { color: #fff; }
.footer-widgets .widget-title,
.footer-widgets .widget-title span { color: #fff; font-family: var(--it-font-title); font-weight: 700; }
.footer-widgets .footer-call-us .call-us-text span,
.footer-address-title { color: #8fdce8; }
.footer-widgets .footer-address { color: #c9dde3; }
.footer-logo img { max-height: 70px; width: auto; }
.copyright-bar { background: #061219; color: #8fa5ad; }
.copyright-bar a { color: #c9dde3; }
.footer-widgets .widget_nav_menu ul li a { display: block; padding: 0.15rem 0; }

/* ==================================================================
   Accessibilité / focus
   ================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--it-amber); outline-offset: 2px; }
