/* Vitrine EPI Planet Interim — charte défi PME (Rubik + bleu #193A6A) */
:root {
  --navy: #193A6A;
  --navy-light: #2a5490;
  --navy-dark: #0e2344;
  --red: #DC2626;
  --red-dark: #b91c1c;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #333333;
  --muted: #6b7280;
  --dim: #9ca3af;
  --border: #e5e7eb;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(25, 58, 106, 0.06);
  --shadow-hover: 0 10px 30px rgba(25, 58, 106, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Rubik', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP BAR bleu foncé ── */
.topbar { background: var(--navy-dark); color: white; font-size: 13px; }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-link { opacity: 0.9; transition: opacity .2s; }
.topbar-link:hover { opacity: 1; }
.social { display: flex; gap: 10px; }
.social a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: rgba(255,255,255,0.08); transition: background .2s; }
.social a:hover { background: rgba(255,255,255,0.18); }
.topbar-right { display: flex; gap: 8px; }
.topbar-btn {
  padding: 8px 18px; border-radius: 4px; font-weight: 500; font-size: 13px;
  border: 1px solid rgba(255,255,255,0.4); transition: all .2s;
}
.topbar-btn:hover { background: rgba(255,255,255,0.12); border-color: white; }
.topbar-btn-light { background: white; color: var(--navy-dark); border-color: white; }
.topbar-btn-light:hover { background: var(--navy-light); color: white; }

/* ── HEADER PRINCIPAL ── */
.hdr { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.hdr-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hdr-logo { display: inline-block; }
.hdr-logo img { display: block; background: white; }
.hdr-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hdr-nav a { font-weight: 500; font-size: 15px; color: var(--text); position: relative; padding: 6px 0; transition: color .2s; }
.hdr-nav a:hover { color: var(--navy); }
.hdr-active { color: var(--navy) !important; }
.hdr-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -18px;
  height: 3px; background: var(--navy); border-radius: 2px;
}

/* ── BUTTONS ── */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-weight: 500; font-size: 14px; font-family: inherit; border: 2px solid transparent;
  cursor: pointer; transition: all .2s; letter-spacing: 0.3px;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: white; color: var(--navy); border-color: white; }
.btn-secondary:hover { background: var(--navy-dark); color: white; border-color: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); padding: 10px 20px; font-size: 13px; }
.btn-ghost:hover { background: var(--navy); color: white; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: center;
  background-image: url('https://www.planetinterimservices.ch/wp-content/uploads/2025/11/photo-materiel-disposition.jpg');
  background-size: cover; background-position: center;
  padding: 100px 24px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(14,35,68,0.75) 30%, rgba(14,35,68,0.3) 70%); }
.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; width: 100%; color: white; max-width: 650px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 500; line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.5px; }
.hero-sub { font-size: 15px; line-height: 1.7; margin-bottom: 36px; opacity: 0.95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CATALOG ── */
.catalog { padding: 80px 24px; background: var(--bg); }
.catalog-inner { max-width: 1280px; margin: 0 auto; }
.catalog-head { text-align: center; margin-bottom: 40px; }
.catalog-head h2 { font-size: clamp(28px, 3.5vw, 38px); color: var(--navy); font-weight: 500; margin-bottom: 16px; letter-spacing: -0.3px; }
.catalog-desc { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.7; }

.filters {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto 40px; justify-content: center;
}
#search {
  flex: 0 1 340px; padding: 12px 18px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 4px; outline: none; font-family: inherit; background: white;
  transition: border-color .2s;
}
#search:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25,58,106,0.08); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  padding: 8px 18px; border-radius: 4px; border: 1px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; font-family: inherit;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: white; border-color: var(--navy); }

.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.loader { grid-column: 1/-1; padding: 80px; text-align: center; color: var(--muted); font-size: 14px; }

.product {
  background: white; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; cursor: pointer; transition: all .25s; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--navy-light); }
.product-img {
  aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-img img { max-width: 78%; max-height: 78%; object-fit: contain; transition: transform .3s; }
.product:hover .product-img img { transform: scale(1.05); }
.product-out { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(107,114,128,0.9); color: white; font-weight: 500; font-size: 13px; letter-spacing: 0.5px; }

.product-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500;
  margin-bottom: 8px;
}
.product-name {
  font-size: 16px; font-weight: 500; color: var(--navy); line-height: 1.35;
  min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.product-mfg {
  font-size: 12px; color: var(--dim); font-style: italic; font-weight: 400;
  min-height: 18px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-sizes {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  min-height: 48px; align-items: center;
}
.product-sizes span {
  font-size: 10px; padding: 3px 8px; background: var(--bg-soft); border-radius: 3px; color: var(--navy); font-weight: 500;
  line-height: 1.4;
}
.product-sizes span.size-out {
  color: var(--dim); text-decoration: line-through; opacity: 0.6;
  background: #f3f4f6;
}
.product-no-size {
  font-size: 11px; color: var(--dim); font-style: italic;
}

/* Prix indicatif */
.product-price {
  font-size: 15px; font-weight: 500; color: var(--red);
  margin-bottom: 8px;
}
.product-price .price-indicatif {
  font-size: 10px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-left: 4px;
}
.product-price-spacer { min-height: 0; }

/* Goodie badge */
.product-goodie { position: relative; }
.product-goodie .product-img { background: linear-gradient(135deg, #fef3c7 0%, var(--bg-soft) 100%); }
.product-badge-goodie {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #DC2626, #991b1b); color: white;
  font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.3); letter-spacing: 0.3px;
}
.modal-badge-goodie {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, #DC2626, #991b1b); color: white;
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.modal-img { position: relative; }

/* Modal prix */
.modal-price {
  font-size: 22px; font-weight: 500; color: var(--red); margin-bottom: 16px;
}
.modal-price .price-indicatif {
  font-size: 11px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-left: 6px;
}

/* Modal tailles grisées */
.modal-info .sizes span.size-out {
  color: var(--dim); text-decoration: line-through; opacity: 0.6;
  background: #f3f4f6;
}
.size-legend { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 8px; margin-bottom: 24px; }

.catalog-note {
  margin-top: 40px; padding: 20px 24px; background: #fef3c7; border-left: 4px solid #f59e0b;
  border-radius: 4px; font-size: 14px; color: var(--text); line-height: 1.6;
  display: flex; gap: 16px; align-items: flex-start;
}
.note-icon { font-size: 20px; flex-shrink: 0; }

/* ── SHOP ── */
.shop { background: var(--bg-soft); padding: 80px 24px; }
.shop-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; }
@media (max-width: 900px) { .shop-inner { grid-template-columns: 1fr; gap: 40px; } }
.shop-left h2 { font-size: clamp(28px, 3.5vw, 38px); color: var(--navy); font-weight: 500; margin-bottom: 28px; letter-spacing: -0.3px; }
.shop-addr { font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.shop-addr strong { font-size: 20px; color: var(--navy); font-weight: 500; }
.shop-hours { margin-bottom: 32px; }
.shop-hours h3 { font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 500; }
.shop-hours ul { list-style: none; }
.shop-hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(25,58,106,0.08); font-size: 15px; }
.shop-hours li:last-child { border: none; }
.shop-hours li span:first-child { font-weight: 500; color: var(--navy); }
.shop-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 6px; box-shadow: var(--shadow); }

/* ── FOOTER ── */
.ftr { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding: 60px 24px 24px; }
.ftr-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .ftr-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .ftr-inner { grid-template-columns: 1fr; } }
.ftr-brand img { background: white; padding: 14px 18px; border-radius: 6px; margin-bottom: 16px; display: inline-block; }
.ftr-brand p { color: rgba(255,255,255,0.75); font-size: 14px; margin-top: 12px; }
.ftr-col h4 { font-size: 14px; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; font-weight: 500; }
.ftr-col p { font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.ftr-col p span { display: inline-block; margin-right: 6px; }
.ftr-col ul { list-style: none; }
.ftr-col ul li { margin-bottom: 10px; }
.ftr-col ul a, .ftr-col p a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color .2s; }
.ftr-col ul a:hover, .ftr-col p a:hover { color: white; }
.ftr-map-btn {
  display: inline-block; padding: 10px 18px; background: var(--navy-light); color: white;
  border-radius: 4px; font-size: 13px; font-weight: 500; transition: background .2s;
}
.ftr-map-btn:hover { background: var(--navy); color: white !important; }
.ftr-bottom {
  max-width: 1280px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 8px;
}

/* ── MODAL ── */
.modal { position: fixed; inset: 0; background: rgba(14,35,68,0.8); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card {
  background: white; border-radius: 8px; max-width: 900px; width: 100%; max-height: 92vh;
  overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: white; border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal-close:hover { background: var(--navy); color: white; border-color: var(--navy); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 780px) { .modal-body { grid-template-columns: 1fr; } }
.modal-img { aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.modal-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.modal-info { padding: 40px; }
.modal-info .cat-tag { display: inline-block; padding: 4px 10px; background: var(--bg-soft); color: var(--navy); border-radius: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; margin-bottom: 14px; }
.modal-info h2 { color: var(--navy); margin-bottom: 6px; font-size: 26px; font-weight: 500; line-height: 1.3; }
.modal-info .mfg { color: var(--muted); font-size: 13px; margin-bottom: 20px; font-style: italic; }
.modal-info .desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 24px; }
.modal-info .size-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.modal-info .sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.modal-info .sizes span { padding: 6px 12px; background: var(--bg-soft); border-radius: 3px; font-size: 13px; font-weight: 500; color: var(--navy); }
.modal-info .shop-cta {
  padding: 18px 20px; background: rgba(25,58,106,0.05); border-left: 3px solid var(--navy); border-radius: 3px;
  font-size: 13px; color: var(--text); line-height: 1.6;
}
.modal-info .shop-cta strong { color: var(--navy); display: block; margin-bottom: 4px; }

/* ── Responsive mobile ── */
@media (max-width: 780px) {
  .topbar-inner { justify-content: center; font-size: 12px; }
  .topbar-left { gap: 12px; justify-content: center; }
  .hdr-inner { flex-direction: column; gap: 16px; }
  .hdr-nav { gap: 16px; justify-content: center; font-size: 13px; }
  .hdr-active::after { bottom: -6px; }
  .hero { min-height: 400px; padding: 60px 24px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(14,35,68,0.8), rgba(14,35,68,0.6)); }
  .catalog { padding: 50px 20px; }
  .catalog-head { margin-bottom: 28px; }
}
