/*
Theme Name: L'Imbattable Destock
Theme URI: https://www.imbattable-destock.fr
Author: L'Imbattable Destock
Description: Theme sur-mesure pour le magasin de destockage L'Imbattable Destock a Bourbonne-les-Bains, repris de l'identite visuelle de l'enseigne (lion bleu, banniere noire, accents bleu/jaune/orange). Vitrine catalogue (sans vente en ligne) : accueil, rayons, infos pratiques.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: imbattable-destock
*/

/* ==========================================================================
   L'Imbattable Destock — design tokens (repris du logo / de la bannière)
   Type: Bangers (titres façon lettrage marqueur, comme le logo) + Work Sans (texte courant)
   Couleurs: noir profond, bleu lion, jaune et orange "étiquette promo"
   Motif: bannières / étiquettes déchirées, légèrement inclinées
   ========================================================================== */

:root {
  --bg: #08090a;
  --bg-panel: #141518;
  --bg-panel-alt: #1b1c20;
  --line: #2a2b2f;

  --white: #f6f5f2;
  --grey: #b7b6b0;

  --blue: #0b7fdd;
  --blue-deep: #075a9e;
  --yellow: #f5cb00;
  --orange: #ea5b0c;

  --font-display: "Bangers", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", Arial, sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 1px;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; max-width: 62ch; color: var(--grey); }

a { color: var(--yellow); text-decoration-thickness: 1.5px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--yellow), var(--orange)) 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  height: 64px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { margin-left: 32px; }
.nav li:first-child { margin-left: 0; }

.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Ribbon labels (motif "bannière déchirée") ---------- */

.ribbon {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  transform: rotate(-1.5deg);
}

.ribbon--blue   { background: var(--blue);   color: var(--white); }
.ribbon--yellow { background: var(--yellow); color: #141312; }
.ribbon--orange { background: var(--orange); color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  border: none;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: #c94d09; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}

.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); }

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(11,127,221,0.30), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(234,91,12,0.26), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content { flex: 1 1 480px; max-width: 620px; }
.hero__visual { flex: 0 1 380px; text-align: center; }

.hero__logo {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 0 46px rgba(11,127,221,0.35));
}

.hero__tag { margin-bottom: 22px; font-size: 13px; }

.hero__title {
  font-size: clamp(38px, 5.6vw, 58px);
  color: var(--white);
}

.hero__title .accent { color: var(--yellow); }

.hero__lead {
  font-size: 18px;
  color: var(--grey);
  margin-top: 16px;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
}

/* ---------- Bannière de marque (photo réelle, pleine largeur, sans texte superposé) ---------- */

.brand-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Page hero (sous-pages) ---------- */

.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(11,127,221,0.28), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(234,91,12,0.22), transparent 55%),
    var(--bg);
  padding: 64px 0 54px;
  border-bottom: 1px solid var(--line);
}

.page-hero__title { font-size: clamp(32px, 5.5vw, 46px); color: var(--orange); }
.page-hero .hero__lead { margin-top: 14px; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }

.section--panel { background: var(--bg-panel); }

.section__title { font-size: clamp(28px, 4.2vw, 36px); color: var(--yellow); }

.section__lead {
  color: var(--grey);
  margin-top: -6px;
  margin-bottom: 40px;
}

/* ---------- Category tag-cards (bannières inclinées) ---------- */

.tag-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 24px;
}

.tag-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  padding: 20px 30px 20px 22px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 15px;
  clip-path: polygon(0 0, 94% 0, 100% 12%, 92% 24%, 100% 36%, 91% 48%, 100% 60%, 92% 72%, 100% 84%, 95% 100%, 0 100%);
}

.tag-card:nth-child(3n+1) { background: var(--blue);   color: var(--white); transform: rotate(-0.6deg); }
.tag-card:nth-child(3n+2) { background: var(--yellow); color: #141312;      transform: rotate(0.6deg); }
.tag-card:nth-child(3n)   { background: var(--orange); color: var(--white); transform: rotate(-0.4deg); }

.tag-card__num { font-size: 13px; opacity: 0.7; min-width: 20px; }

@media (max-width: 560px) {
  .tag-card { transform: none !important; }
}

/* ---------- Info strip (accueil) ---------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.info-strip__block h3 { color: var(--yellow); font-size: 18px; margin-bottom: 10px; }
.info-strip__block p { color: var(--grey); margin-bottom: 6px; }

@media (max-width: 760px) {
  .info-strip { grid-template-columns: 1fr; }
}

/* ---------- Rayon list (catalogue) ---------- */

.rayon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.rayon-row {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rayon-row__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--yellow);
  min-width: 34px;
  padding-top: 3px;
}

.rayon-row__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
  color: var(--white);
  margin: 0 0 4px;
}

.rayon-row__desc { color: var(--grey); margin: 0; font-size: 15px; max-width: 60ch; }

/* ---------- CTA block ---------- */

.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-block h2 { color: var(--white); max-width: 44ch; font-size: 26px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-panel-alt);
  border-top: 4px solid var(--blue);
  padding: 28px 24px;
}

.contact-card:nth-child(2) { border-top-color: var(--yellow); }
.contact-card:nth-child(3) { border-top-color: var(--orange); }

.contact-card h2 { font-size: 19px; color: var(--white); }
.contact-card p { color: var(--grey); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td { padding: 7px 0; font-size: 15px; vertical-align: top; color: var(--grey); }
.hours-table td:first-child { color: var(--white); padding-right: 14px; white-space: nowrap; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  filter: grayscale(0.15) contrast(1.05);
}

@media (max-width: 560px) {
  .map-frame { aspect-ratio: 4 / 5; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  color: var(--grey);
  padding-top: 52px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--yellow), var(--blue)) 1;
}

.site-footer__logo { height: 48px; width: auto; display: block; margin-bottom: 16px; }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.site-footer__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.site-footer p { margin-bottom: 4px; font-size: 14px; }

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  font-size: 13px;
  color: #7a7972;
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
