/*
Theme Name: IT-TELEC Boutique
Author: IT-TELEC
Description: Thème sobre et rapide pour le catalogue B2B IT-TELEC.
Version: 0.1.4
Requires PHP: 8.2
Text Domain: ittelec
*/

:root {
    --ink: #0b1734;
    --navy: #10254d;
    --blue: #1262d3;
    --blue-dark: #0a49a5;
    --cyan: #1ac4d9;
    --sky: #eef6ff;
    --paper: #fff;
    --muted: #61708a;
    --line: #dfe7f1;
    --success: #12805c;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(16, 37, 77, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; color: #00427a; flex: none; }
.brand:hover { color: #00427a; }
.brand-mark { width: 212px; height: 42px; display: flex; align-items: center; flex: none; }
.brand-mark svg { display: block; width: 212px; height: auto; overflow: visible; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 650; font-size: .94rem; }
.site-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
    border: 0; border-radius: 12px; color: #fff; background: var(--blue); font: inherit; font-weight: 750; cursor: pointer; transition: .2s ease;
}
.button:hover, button:hover, input[type="submit"]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); }
.button-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button-ghost:hover { color: var(--blue); background: var(--sky); }
.menu-toggle { display: none; width: 44px; min-height: 44px; padding: 0; font-size: 0; }

.hero { position: relative; overflow: hidden; padding: 88px 0 78px; color: #fff; background: radial-gradient(circle at 82% 15%, rgba(26,196,217,.34), transparent 28%), linear-gradient(130deg, #081a3c 0%, #103c78 64%, #1262d3 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: .75rem; color: #8cecf5; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 650px; margin: 0 0 32px; color: #dce9fb; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { background: #fff; color: var(--blue-dark); }
.hero .button:hover { color: var(--blue-dark); background: #e9fbff; }
.hero .button-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.hero-card strong { display: block; margin-bottom: 7px; font-size: 1.35rem; }
.hero-card p { margin: 0 0 22px; color: #dce9fb; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-card li::before { content: "✓"; color: #8cecf5; font-weight: 900; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 30px; text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-size: 1.45rem; color: var(--navy); }
.trust-item span { color: var(--muted); font-size: .9rem; }

.section { padding: 78px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.13; letter-spacing: -.04em; }
.section-heading p { max-width: 590px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { min-height: 205px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 4px 18px rgba(16,37,77,.04); transition: .2s ease; }
.category-card:hover { color: var(--ink); border-color: #bcd3f4; transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; color: var(--blue); background: var(--sky); font-size: 1.35rem; }
.category-card h3 { margin: 0 0 8px; font-size: 1.16rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.process { color: #fff; background: var(--navy); }
.process .section-heading p { color: #c4d2e7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 28px; color: #8cecf5; font-weight: 850; font-size: .82rem; letter-spacing: .08em; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: #c4d2e7; }

.content-wrap { padding: 55px 0 80px; }
.catalog-universes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.catalog-universes a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; font-size: .88rem; font-weight: 700; }
.catalog-universes a:hover { color: var(--blue-dark); border-color: #bcd3f4; background: var(--sky); }
.catalog-tools { margin: 0 0 32px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 18px rgba(16,37,77,.04); }
.catalog-tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.catalog-tools-heading .eyebrow { margin-bottom: 5px; color: var(--blue); }
.catalog-tools-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.catalog-tools-heading > p { margin: 0; color: var(--muted); font-size: .9rem; }
.catalog-filter-form { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(175px, .75fr)) auto; gap: 12px; align-items: end; }
.catalog-field { display: grid; gap: 6px; }
.catalog-field > span { color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.catalog-filter-actions { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.catalog-filter-actions a { font-size: .86rem; font-weight: 750; text-decoration: underline; }
.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto; float: none; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-visual { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 0 0 18px; border-radius: 14px; color: var(--blue-dark); background: radial-gradient(circle at 75% 20%, rgba(26,196,217,.25), transparent 30%), linear-gradient(145deg, #f5f9ff, #e7f1ff); }
.product-visual-icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(18,98,211,.15); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(16,37,77,.08); font-size: 1.85rem; }
.product-visual-label { max-width: 80%; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 7px; }
.product-badges span { padding: 3px 8px; border-radius: 999px; color: var(--blue-dark); background: var(--sky); font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font-size: 1rem; }
.woocommerce div.product { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product-facts { clear: both; margin: 24px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; }
.product-facts h2 { margin: 0 0 12px; font-size: 1rem; }
.product-facts dl { margin: 0; }
.product-facts dl div { display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.product-facts dl div:first-child { border-top: 0; }
.product-facts dt { color: var(--muted); font-size: .84rem; font-weight: 700; }
.product-facts dd { margin: 0; color: var(--navy); font-size: .88rem; font-weight: 650; }
.ittelec-price-gate { display: block; color: var(--navy); font-weight: 750; font-size: .92rem; }
.ittelec-price-login { font-size: .88rem; text-decoration: underline; }
.stock.in-stock::before { content: "●"; margin-right: 7px; color: var(--success); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], textarea, select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd6e5; border-radius: 10px; background: #fff; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(18,98,211,.14); border-color: var(--blue); }
.ittelec-account-status { margin: 0 0 28px; padding: 22px 24px; border: 1px solid #bcd3f4; border-left: 5px solid var(--blue); border-radius: 14px; background: var(--sky); }
.ittelec-account-status h2 { margin: 0 0 5px; color: var(--navy); font-size: 1.2rem; }
.ittelec-account-status p { margin: 0; color: var(--muted); }
.ittelec-account-status a { display: inline-block; margin-top: 9px; font-weight: 750; text-decoration: underline; }
.ittelec-account-status--approved { border-color: #b9e4d5; border-left-color: var(--success); background: #effaf6; }
.ittelec-account-status--rejected { border-color: #f0c7c7; border-left-color: #b42318; background: #fff4f3; }

.site-footer { padding: 60px 0 26px; color: #c4d2e7; background: #07142d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 45px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { margin-top: 0; }
.site-footer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d9e8fb; }
.site-footer a:hover { color: #8cecf5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.11); font-size: .88rem; }

@media (max-width: 1000px) {
    .hero-grid, .footer-grid { grid-template-columns: 1fr; }
    .category-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .site-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); }
    .site-nav.is-open { display: block; }
    .site-nav ul { align-items: stretch; flex-direction: column; gap: 12px; }
    .menu-toggle { display: inline-flex; }
    .header-actions .button-ghost { display: none; }
    .catalog-filter-form { grid-template-columns: 1fr 1fr; }
    .catalog-field--search { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    .header-inner { gap: 12px; }
    .brand-mark, .brand-mark svg { width: 170px; }
    .brand-mark { height: 34px; }
    .header-actions { margin-left: auto; }
    .hero { padding: 62px 0; }
    .hero-grid { gap: 34px; }
    .hero h1 { font-size: 2.65rem; }
    .trust-grid, .category-grid, .steps, .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: 1fr; }
    .trust-item { border-left: 0; border-top: 1px solid var(--line); }
    .trust-item:first-child { border-top: 0; }
    .section { padding: 58px 0; }
    .section-heading, .footer-bottom { align-items: start; flex-direction: column; }
    .catalog-tools-heading { align-items: start; flex-direction: column; gap: 6px; }
    .catalog-filter-form { grid-template-columns: 1fr; }
    .catalog-field--search { grid-column: auto; }
    .header-actions .button { padding: 0 13px; }
    .product-facts dl div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 360px) {
    .header-actions > .button { display: none; }
}
