/*
 * Theme Name:  OZlaCréation
 * Theme URI:   https://ozlacreation.ca
 * Author:      OZlaCréation
 * Description: Thème e-commerce Web-to-Print — Design & Impression professionnelle. WooCommerce ready.
 * Version:     1.1.0
 * Requires at least: 6.0
 * Tested up to: 6.7
 * WC requires at least: 8.0
 * WC tested up to: 9.0
 * License:     Propriétaire
 * Text Domain: ozlacreation
 */

:root {
  --blue: #031776;
  --blue-2: #1739b6;
  --yellow: #ffb129;
  --ink: #101828;
  --muted: #5f6b7a;
  --line: #e5e9f2;
  --soft: #f7f8fc;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(3,23,118,.10);
  --container: min(1240px, calc(100% - 40px));

  /* Alias pour WooCommerce & Spectra */
  --purple: #031776;
  --pink: #ffb129;
  --dark: #ffffff;
  --dark-2: #f7f8fc;
  --dark-3: #e5e9f2;
  --dark-card: #ffffff;
  --border: #e5e9f2;
  --text: #101828;
  --text-muted: #5f6b7a;
  --grad-main: linear-gradient(135deg, #031776 0%, #ffb129 100%);
  --font: Inter, Arial, Helvetica, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: var(--container); margin: auto; }

/* BARRE D'ANNONCE */
.announcement {
  background: var(--blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
}
.announcement a { color: var(--yellow); text-decoration: underline; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: .25s;
}
.site-header.scrolled { box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.header-main {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 82px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue);
  white-space: nowrap;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--blue);
  font-weight: 1000;
  box-shadow: 0 7px 18px rgba(255,177,41,.32);
}

/* BARRE DE RECHERCHE */
.search {
  display: flex;
  border: 2px solid #cfd5e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.search:focus-within { border-color: var(--blue); }
.search input {
  border: 0; outline: 0; padding: 14px 16px; flex: 1; min-width: 0;
  color: var(--ink);
}
.search button {
  border: 0; background: var(--blue); color: #fff;
  padding: 0 20px; cursor: pointer; font-weight: 800;
}

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 12px; }
.action-link {
  display: flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 750; color: #334155;
  padding: 9px 11px; border-radius: 8px;
}
.action-link:hover { background: var(--soft); }
.cart {
  background: var(--yellow); color: var(--blue);
  font-weight: 900; padding: 11px 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* HAMBURGER MOBILE */
.menu-toggle {
  display: none; border: 0; background: #fff;
  width: 44px; height: 44px; border-radius: 8px;
  padding: 10px; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--blue);
  margin: 5px 0; border-radius: 2px;
}

/* NAVIGATION CATÉGORIES */
.category-nav { border-top: 1px solid var(--line); background: #fff; }
.category-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
  overflow: auto; scrollbar-width: none;
}
.category-nav ul::-webkit-scrollbar { display: none; }
.category-nav a, .category-nav li a {
  display: block; padding: 14px 13px;
  font-size: .88rem; font-weight: 760; white-space: nowrap;
  color: #344054; border-bottom: 3px solid transparent;
  text-decoration: none;
}
.category-nav a:hover, .category-nav li a:hover { color: var(--blue); border-color: var(--yellow); }

/* HERO SECTION */
.hero {
  background: linear-gradient(115deg, #f4f6ff 0%, #fff9ec 100%);
  padding: 48px 0 54px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 54px; align-items: center;
}
.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  font-size: .77rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--blue);
}
.hero h1 strong { display: block; color: #bd6500; margin-top: 13px; }
.hero p {
  color: #475467;
  font-size: 1.13rem;
  max-width: 650px;
  margin: 25px 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 7px;
  font-weight: 900; border: 2px solid transparent;
  transition: .2s; cursor: pointer; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-light { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-accent { background: var(--yellow); color: var(--blue); }
.hero-benefits {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; gap: 22px; flex-wrap: wrap;
  color: #344054; font-size: .9rem; font-weight: 720;
}
.hero-benefits li::before { content: "✓"; color: #087443; margin-right: 7px; font-weight: 1000; }
.hero-art {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

/* SECTIONS PRINCIPALES */
.home-section { padding: 76px 0; }
.home-section.alt { background: var(--soft); }
.heading-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
h2 {
  color: var(--blue);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0;
}
.text-link { font-weight: 900; color: var(--blue); text-decoration: none; }

/* GRILLE CATÉGORIES VISUELLES */
.visual-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  min-height: 100%;
  transition: .22s;
  text-decoration: none;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-visual {
  height: 180px;
  background: linear-gradient(145deg, #eef1ff, #fff4d7);
  padding: 28px;
  display: grid; place-items: center;
}
.category-visual svg { width: 100%; height: 100%; }
.category-title {
  display: block; padding: 18px 18px 21px;
  color: var(--blue); font-weight: 900; font-size: 1rem;
}

/* COLLECTIONS / PROJETS */
.collection-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.collection-card {
  position: relative; min-height: 315px; border-radius: var(--radius);
  overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  box-shadow: var(--shadow); text-decoration: none;
}
.collection-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,23,118,.92), rgba(3,23,118,.05) 70%);
}
.collection-card:nth-child(1) { background: linear-gradient(135deg, #7e95ff, #031776); }
.collection-card:nth-child(2) { background: linear-gradient(135deg, #f6b94b, #7a3500); }
.collection-card:nth-child(3) { background: linear-gradient(135deg, #576fb9, #14265d); }
.collection-card:nth-child(4) { background: linear-gradient(135deg, #f5d28a, #9a5700); }
.collection-art { position: absolute; inset: 20px 20px 115px; display: grid; place-items: center; }
.collection-art svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 20px rgba(0,0,0,.2)); }
.collection-copy { position: relative; z-index: 2; padding: 24px; }
.collection-copy strong { display: block; font-size: 1.24rem; line-height: 1.15; margin-bottom: 8px; }
.collection-copy span { display: block; font-size: .9rem; opacity: .9; }
.collection-copy em { display: block; margin-top: 12px; color: var(--yellow); font-style: normal; font-weight: 900; }

/* GRILLE PRODUITS */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  overflow: hidden; transition: .22s; text-decoration: none;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { height: 220px; background: #f3f5fa; padding: 25px; display: grid; place-items: center; }
.product-body { padding: 18px; }
.product-body strong { display: block; color: var(--blue); font-size: 1.08rem; }
.product-body span { color: var(--muted); font-size: .9rem; }
.product-body b { display: block; margin-top: 12px; color: #101828; }

/* PERSONNALISATION / PROCESS */
.personalization { background: var(--blue); color: #fff; padding: 80px 0; }
.personalization-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.personalization h2 { color: #fff; }
.personalization p { color: #d8ddf4; font-size: 1.05rem; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.process li {
  display: grid; grid-template-columns: 50px 1fr; gap: 17px;
  background: #fff; color: var(--ink); padding: 19px; border-radius: 14px;
}
.process li > span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--blue); font-weight: 1000; font-size: 1.1rem;
}
.process strong { color: var(--blue); }
.process p { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }

/* OUTILS / SERVICES CRÉATIFS */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 25px; background: #fff; transition: .2s; text-decoration: none;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #eef1ff; color: var(--blue); font-weight: 1000; margin-bottom: 18px;
}
.tool-card strong { display: block; color: var(--blue); font-size: 1.08rem; }
.tool-card p { color: var(--muted); font-size: .92rem; }
.tool-card em { font-style: normal; color: var(--blue); font-weight: 900; }

/* BANNIÈRE ENTREPRISE */
.business-banner { padding: 24px 0 72px; }
.business-inner {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; border-radius: 24px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
}
.business-inner h2 { color: #fff; font-size: 2.25rem; }
.business-inner p { color: #dce2ff; margin-bottom: 0; }

/* CONFIANCE */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 35px 0 62px;
}
.trust-grid article { display: grid; grid-template-columns: 32px 1fr; gap: 11px; }
.trust-grid article > span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f7ef; color: #087443; font-weight: 1000;
}
.trust-grid strong { display: block; color: var(--blue); }
.trust-grid p { color: var(--muted); font-size: .87rem; margin: 4px 0 0; }

/* FOOTER */
footer { background: #0e1c50; color: #fff; padding: 55px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 45px; }
footer h3, footer h4 { margin-top: 0; color: #fff; }
footer p, footer a { color: #d2d8ed; font-size: .9rem; }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 38px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: #bfc7e2; font-size: .82rem;
}

.no-results {
  display: none; margin-top: 25px; padding: 22px; border-radius: 12px;
  background: #fff4d8; color: #6d4300; font-weight: 800;
}
.reveal { opacity: 0; transform: translateY(20px); transition: .55s; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1020px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-actions .desktop-only { display: none; }
  .visual-grid, .collection-grid, .product-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .personalization-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 760px; margin: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1240px); }
  .announcement { font-size: .78rem; }
  .header-main { grid-template-columns: 1fr auto; gap: 12px; min-height: 68px; }
  .header-main .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .header-actions .action-link, .header-actions .cart { display: none; }
  .menu-toggle { display: block; }
  .category-nav {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    background: #fff; z-index: 100;
    transform: translateX(100%); transition: .25s;
    padding: 90px 24px 30px;
  }
  .category-nav.open { transform: none; }
  .category-nav ul { display: grid; gap: 4px; }
  .category-nav a, .category-nav li a { font-size: 1.05rem; padding: 13px 0; }
  .hero { padding-top: 35px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 2.75rem; }
  .home-section { padding: 58px 0; }
  .visual-grid, .collection-grid, .product-grid, .tool-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .heading-row { align-items: flex-start; flex-direction: column; }
  .business-inner { align-items: flex-start; flex-direction: column; padding: 30px; }
  .business-inner h2 { font-size: 1.85rem; }
  .collection-card { min-height: 285px; }
}
