/* ===================================================================
   TUNEX IMPORT INTERNATIONAL — Thème premium dark + or
   Palette inspirée du logo : noir profond + or lumineux scintillant.
   =================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #111110;
  --bg-3: #16150f;
  --card: #131211;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.45);
  --text: #ece7d8;
  --muted: #9d967f;

  --gold-1: #f9e9a0;
  --gold-2: #d4af37;
  --gold-3: #a9791c;
  --gold-grad: linear-gradient(135deg, #f9e9a0 0%, #e8c662 35%, #d4af37 60%, #a9791c 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(249,233,160,.18), rgba(212,175,55,.10));

  --radius: 16px;
  --shadow-gold: 0 10px 40px -12px rgba(212, 175, 55, 0.45);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* fond global texturé (lueurs dorées discrètes) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 500px at 80% -10%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(600px 400px at -5% 30%, rgba(212,175,55,.06), transparent 60%),
    var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand__name { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .5px; }

a { color: inherit; text-decoration: none; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: 12px;
  color: var(--gold-2); font-weight: 600; margin-bottom: 14px;
}

/* ===== BOUTONS ===== */
.btn {
  --b: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: none;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: .5px; text-transform: uppercase; position: relative;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn--gold {
  background: var(--gold-grad); color: #1a1407;
  box-shadow: 0 8px 24px -10px rgba(212,175,55,.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); filter: brightness(1.06); }
.btn--ghost {
  background: transparent; color: var(--gold-1);
  border: 1px solid var(--line-strong);
  background-image: var(--gold-grad-soft);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--gold-2); box-shadow: 0 8px 28px -14px rgba(212,175,55,.5); }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--full { width: 100%; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s;
  border-bottom: 1px solid transparent; padding: 16px 0;
}
.nav.scrolled {
  background: rgba(9, 9, 9, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,.9);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
/* Marque = logo à gauche + texte empilé CENTRÉ, aligné verticalement au centre du logo */
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 2px 8px rgba(212,175,55,.4)); }
.brand__text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.brand__name { font-size: 20px; letter-spacing: 6px; color: var(--gold-1); text-indent: 6px; }
.brand__sub { font-size: 9.5px; font-weight: 600; letter-spacing: 3px; color: var(--gold-2); margin-top: 5px; text-indent: 3px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; color: var(--text); font-weight: 400; position: relative; transition: color .3s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold-grad); transition: width .3s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--gold-1); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--gold-2); border-radius: 2px; transition: .3s; }

/* ===== HÉRO ===== */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 0 80px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.22), rgba(212,175,55,.05) 40%, transparent 65%);
  filter: blur(10px);
}
.hero__ring {
  position: absolute; top: 50%; left: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 0 60px rgba(212,175,55,.12) inset, 0 0 80px rgba(212,175,55,.08);
  animation: spin 40s linear infinite;
}
.hero__ring::before {
  content: ""; position: absolute; inset: 60px; border-radius: 50%;
  border: 1px dashed rgba(212,175,55,.20);
}
.hero__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(249,233,160,.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(212,175,55,.7), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(249,233,160,.7), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(212,175,55,.6), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(249,233,160,.6), transparent),
    radial-gradient(1px 1px at 60% 85%, rgba(212,175,55,.6), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { position: relative; max-width: 860px; }
.hero__title { font-size: clamp(38px, 6vw, 76px); line-height: 1.05; margin-bottom: 22px; }
.hero__lead { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 640px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 34px; font-family: "Cinzel", serif; }
.hero__stats span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--gold-2); font-size: 24px; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(212,175,55,.03), transparent); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section__title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section__sub { color: var(--muted); }

/* ===== FILTRES ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 13px;
  font-family: "Montserrat", sans-serif; letter-spacing: .5px; transition: .3s;
}
.filter:hover { color: var(--gold-1); border-color: var(--line-strong); }
.filter.active { color: #1a1407; background: var(--gold-grad); border-color: transparent; font-weight: 600; }

/* ===== GRILLE CARTES ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.grid__loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* bordure dorée animée au survol (dégradé) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-gold); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0d0c; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,11,11,.85));
}
.card__cat {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-1);
  background: rgba(0,0,0,.55); border: 1px solid var(--line-strong);
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 20px; color: var(--gold-1); }
.card__desc { color: var(--muted); font-size: 14px; flex: 1; }
.card__btn { margin-top: 8px; align-self: flex-start; }

/* ===== SPLIT (À PROPOS / GLOBAL) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__text p { color: var(--muted); margin-bottom: 18px; }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 30px; }
.features li { display: flex; gap: 12px; }
.feat__ic { color: var(--gold-2); font-size: 14px; margin-top: 4px; }
.features strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.features p { font-size: 13px; margin: 0; }

/* globe animé */
.split__media { display: grid; place-items: center; min-height: 360px; }
.globe { position: relative; width: 300px; height: 300px; }
.globe__core {
  position: absolute; inset: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(212,175,55,.35), rgba(212,175,55,.05) 60%, transparent 70%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgba(212,175,55,.25);
}
.globe__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: spin 18s linear infinite; }
.globe__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px var(--gold-2); }
.globe__ring--2 { inset: 34px; border-style: dashed; animation-duration: 26s; animation-direction: reverse; }

/* ===== CONTACT ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info p { color: var(--muted); margin-bottom: 24px; }
.contact__list { list-style: none; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list a:hover { color: var(--gold-1); }
.contact__form {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: #0c0c0b; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 13px 14px; font-family: inherit; font-size: 14px; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.field textarea { resize: vertical; }
.form__note { font-size: 13px; text-align: center; min-height: 18px; }
.form__note.ok { color: #7ddc7d; }
.form__note.err { color: #e08585; }
.field.flash input { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 50px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 30px; align-items: center; }
.footer__brand .brand__name { font-size: 26px; letter-spacing: 5px; }
.footer__brand p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .3s; }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { text-align: right; color: var(--muted); font-size: 12px; }
.footer__bar { height: 4px; margin-top: 40px; background: var(--gold-grad); opacity: .8; }

/* ===== ANIMATIONS REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split, .contact { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .footer__legal { text-align: center; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 98px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(9,9,9,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 10px 0;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links a { padding: 14px 24px; width: 100%; }
  .nav__cta { margin: 10px 24px; }
  .nav__burger { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}

/* ===== NOS VALEURS ===== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: var(--line-strong); }
.value__ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-grad-soft); border: 1px solid var(--line-strong); color: var(--gold-1);
  font-size: 22px; margin-bottom: 16px;
}
.value h3 { font-size: 20px; color: var(--gold-1); margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 14px; }

/* ===== BANDE SERVICES ===== */
.services-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(212,175,55,.04); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 24px; }
.service { display: flex; align-items: center; gap: 14px; justify-content: center; }
.service__ic { font-size: 26px; filter: saturate(1.2); }
.service strong { display: block; color: var(--gold-1); font-size: 15px; }
.service p { color: var(--muted); font-size: 13px; margin: 0; }

/* ===== RÉSEAUX SOCIAUX ===== */
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold-1); transition: .3s;
}
.socials a:hover { background: var(--gold-grad); color: #1a1407; transform: translateY(-2px); }

/* ===== FOOTER (enrichi) ===== */
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 36px; }
.footer__col h4 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-1); margin-bottom: 16px; }
.footer__brandcol .brand__name { display: block; font-size: 26px; letter-spacing: 5px; }
.footer__sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--gold-2); margin-top: 6px; text-indent: 3px; }
/* Bloc marque du footer : logo + texte centrés sur un même axe vertical */
.footer__brandcol { text-align: center; }
.footer__brandcol .footer__mark .brand__logo { margin-inline: auto; }
.footer__brandcol .footer__contact { justify-items: center; }
.footer__brandcol .socials { justify-content: center; }
.footer__tag { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.footer__contact { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.footer__contact span { color: var(--text); }
.footer__col .footer__links { display: grid; gap: 10px; }
.footer__col .footer__links a { color: var(--muted); font-size: 14px; transition: color .25s; }
.footer__col .footer__links a:hover { color: var(--gold-1); }
.footer__news p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0; background: #0c0c0b; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 13px;
}
.news input:focus { outline: none; border-color: var(--gold-2); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}

/* ===== BOUTON WHATSAPP FLOTTANT ===== */
#wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #128c4b); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(37,211,102,.6); transition: transform .3s;
}
#wa-float:hover { transform: scale(1.08); }

@media (max-width: 900px) {
  .values, .services { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== PAGE LÉGALE (CGV…) ===== */
.legalbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(9,9,9,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.legalbar .back { color: var(--gold-1); font-size: 14px; }
.legalbar .back:hover { color: var(--gold-2); }
.legal { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.legal .crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.legal .crumb a { color: var(--gold-2); }
.legal h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 6px; }
.legal .updated { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.legal h2 { font-size: 19px; color: var(--gold-1); margin: 30px 0 10px; scroll-margin-top: 80px; }
.legal h3 { font-size: 15px; color: var(--text); margin: 18px 0 6px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.legal ul { margin: 8px 0 8px; padding-inline-start: 20px; }
.legal a { color: var(--gold-2); }
.legal .note {
  background: var(--bg-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold-2);
  border-radius: 10px; padding: 14px 18px; margin: 18px 0; color: var(--text); font-size: 14px;
}
.legal .mentions { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.legal .mentions p { color: var(--text); margin: 3px 0; }

/* Points de vente */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.pos-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.pos-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.pos-card h3 { font-size: 16px; color: var(--gold-1); margin-bottom: 12px; }
.pos-card ul { list-style: none; display: grid; gap: 7px; padding: 0; }
.pos-card li { color: var(--muted); font-size: 13.5px; position: relative; padding-inline-start: 15px; }
.pos-card li::before { content: "•"; color: var(--gold-2); position: absolute; inset-inline-start: 0; }

/* FAQ (accordéon) */
.faq-list { display: grid; gap: 12px; margin-top: 26px; max-width: 820px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; transition: border-color .3s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { cursor: pointer; padding: 17px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-2); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-1); }
.faq-a { padding: 0 0 17px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ===== LOGO (boussole-pin doré) — affiché AVEC le texte de marque à droite ===== */
.brand__logo { height: 66px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.footer__mark { display: block; margin-bottom: 12px; }
.footer__mark .brand__logo { height: 92px; max-width: 130px; }
.legalbar .brand__logo { height: 40px; max-width: 90px; }
.gate .brand__logo { height: 80px; margin: 0 auto; }
/* Le texte de marque (TUNEX / IMPORT INTERNATIONAL) reste affiché à droite du logo. */

/* ===== GALERIE : badge + lightbox ===== */
.card__media { cursor: pointer; }
.card__count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .5px; color: #1a1407; font-weight: 700;
  background: var(--gold-grad); padding: 4px 10px; border-radius: 999px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); padding: 30px;
}
.lightbox.open { display: flex; }
.lb__img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.8); border: 1px solid var(--line-strong); }
.lb__close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--gold-1);
  font-size: 30px; cursor: pointer; line-height: 1; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(212,175,55,.12);
  border: 1px solid var(--line-strong); color: var(--gold-1); width: 50px; height: 50px; border-radius: 50%;
  font-size: 30px; cursor: pointer; transition: .25s; }
.lb__nav:hover { background: var(--gold-grad); color: #1a1407; }
.lb__prev { left: 20px; } .lb__next { right: 20px; }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted);
  font-size: 13px; letter-spacing: 1px; }
@media (max-width: 560px) { .lb__nav { width: 40px; height: 40px; font-size: 24px; } }

/* ===================================================================
   SÉLECTEUR DE LANGUE
   =================================================================== */
.lang { display: inline-flex; gap: 4px; align-items: center; margin-inline-start: 6px; }
.lang button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 10px; min-width: 34px; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .5px; transition: .25s; line-height: 1;
}
.lang button:hover { color: var(--gold-1); border-color: var(--line-strong); }
.lang button.active { color: #1a1407; background: var(--gold-grad); border-color: transparent; }
.legalbar .lang { margin-inline-start: 0; }
/* Barre légale : permettre l'ajout du sélecteur sans casser l'alignement */
.legalbar__actions { display: flex; align-items: center; gap: 14px; }

/* ===================================================================
   RTL (arabe) — police + ajustements directionnels
   =================================================================== */
html[dir="rtl"] body { font-family: "Cairo", "Montserrat", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .brand__name, html[dir="rtl"] .section__title,
html[dir="rtl"] .hero__title, html[dir="rtl"] .hero__stats strong {
  font-family: "Cairo", serif; letter-spacing: 0;
}
/* La marque latine reste en Cinzel même en RTL (nom propre "TUNEX") */
html[dir="rtl"] .brand__name { font-family: "Cinzel", serif; }
/* Soulignement animé des liens du menu : passe à droite */
html[dir="rtl"] .nav__links a:not(.nav__cta)::after { left: auto; right: 0; }
/* Le sous-titre de marque garde un espacement raisonnable */
html[dir="rtl"] .brand__sub { letter-spacing: 1px; }
/* Légère correction d'alignement pour les listes/colonnes footer */
html[dir="rtl"] .footer__legal { text-align: left; }
/* Bouton WhatsApp flottant : passe à gauche en RTL */
html[dir="rtl"] #wa-float { right: auto; left: 22px; }
/* Lightbox : inverser les flèches */
html[dir="rtl"] .lb__prev { left: auto; right: 20px; }
html[dir="rtl"] .lb__next { right: auto; left: 20px; }
/* Catégorie/compteur des cartes : inverser les coins */
html[dir="rtl"] .card__cat { left: auto; right: 12px; }
html[dir="rtl"] .card__count { right: auto; left: 12px; }

/* ===================================================================
   VIDÉO PRODUIT (à la place de la photo)
   =================================================================== */
.card__vid {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; background: #0d0d0c;
}
.card:hover .card__vid { transform: scale(1.06); }
/* Petite pastille « lecture » au centre de la carte vidéo */
.card__playicon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: rgba(0,0,0,.45); border: 1px solid var(--line-strong);
  color: var(--gold-1); font-size: 20px; padding-inline-start: 3px;
  backdrop-filter: blur(2px);
}
/* Vidéo en grand dans la lightbox */
.lb__video {
  max-width: 88vw; max-height: 86vh; border-radius: 10px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.8);
  border: 1px solid var(--line-strong); background: #000;
}

/* ===================================================================
   THÈME CLAIR — bascule via [data-theme="light"] sur <html>.
   Défaut = sombre. Bouton .theme-toggle injecté près du sélecteur de langue.
   =================================================================== */
html[data-theme="light"] {
  /* ===== Identité TUNEX — JAUNE / NOIR / OR (couverture du catalogue) ===== */
  --bg: #f4ce3c;             /* jaune de marque */
  --bg-2: #ffffff;
  --bg-3: #f8dd80;
  --card: #fffdf6;           /* crème : les produits ressortent sur le jaune */
  --line: rgba(26, 22, 8, 0.16);
  --line-strong: rgba(26, 22, 8, 0.42);
  --text: #201d14;           /* anthracite (≈ logo) */
  --muted: #5c5330;
  --gold-1: #6f5210;         /* or foncé lisible sur jaune */
  --gold-2: #8a6714;
  --gold-3: #5c440d;
  --gold-grad: linear-gradient(135deg, #7a5a12 0%, #9c7614 45%, #6a4d0d 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(120,88,16,.14), rgba(120,88,16,.06));
  --shadow-gold: 0 14px 40px -16px rgba(60, 44, 8, 0.35);
}
/* Fond global : jaune uni, chaleur discrète */
html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 620px at 84% -14%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(760px 520px at -10% 112%, rgba(0,0,0,.05), transparent 60%),
    var(--bg);
}
/* Titres anthracite (comme la couverture) */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .brand__name,
html[data-theme="light"] .card__title { color: #201d14; }
html[data-theme="light"] .brand__sub { color: var(--gold-3); }
html[data-theme="light"] .nav__links a { color: #241f14; }
/* CTA nav = pill noir → texte doré (spécificité > .nav__links a) */
html[data-theme="light"] .nav__links a.nav__cta { color: #f4d571; }
/* Logo de marque (en-tête/pied) : gunmetal (logo2.svg) en thème clair,
   doré (svg inline) en thème sombre. Les angles noirs gardent leur logo doré. */
.brand__logo--gun { display: none; }                                  /* sombre : gunmetal masqué */
html[data-theme="light"] .brand__logo--gold { display: none; }         /* clair : doré masqué */
html[data-theme="light"] .brand__logo--gun { display: block; }         /* clair : gunmetal affiché */
/* halo doré du .brand__mark neutralisé en thème clair (logo gunmetal) */
html[data-theme="light"] .brand__mark { filter: drop-shadow(0 2px 6px rgba(0,0,0,.28)); }
/* Nav translucide jaune au scroll */
html[data-theme="light"] .nav.scrolled {
  background: rgba(244, 206, 60, .92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -22px rgba(0,0,0,.35);
}
/* Boutons : NOIR + OR (contraste fort sur jaune) */
html[data-theme="light"] .btn--gold {
  background: #17140d; color: #f4d571;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.5);
}
html[data-theme="light"] .btn--gold:hover { filter: brightness(1.12); }
/* Décor doré du héros adouci sur jaune */
html[data-theme="light"] .hero__glow { background: radial-gradient(circle, rgba(255,255,255,.4), rgba(255,255,255,.06) 45%, transparent 66%); }
html[data-theme="light"] .hero__ring { border-color: rgba(60,44,8,.16); box-shadow: 0 0 60px rgba(60,44,8,.05) inset; }
html[data-theme="light"] .hero__ring::before { border-color: rgba(60,44,8,.18); }
html[data-theme="light"] .hero__stars { opacity: .22; }
html[data-theme="light"] .legalbar { background: rgba(244,206,60,.94); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .news input { background: #fffdf7; color: var(--text); }
html[data-theme="light"] .card { background: var(--card); }
html[data-theme="light"] .card__media,
html[data-theme="light"] .card__vid { background: #f3ecd6; }
html[data-theme="light"] .card__cat { background: rgba(23,20,13,.82); color: #f4d571; border-color: transparent; }
@media (max-width: 720px) {
  html[data-theme="light"] .nav__links { background: rgba(244,206,60,.98); }
}

/* ===== ANGLES (style couverture) — en-tête & pied =====
   Thème clair  : angle NOIR + logo DORÉ.
   Thème sombre : inversé → angle DORÉ + logo GUNMETAL. */
.corner-badge {
  display: block; position: fixed; z-index: 90; pointer-events: none;
  width: 132px; height: 132px;
}
.corner-badge img {
  position: absolute; width: auto; height: 52px; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.corner-badge--tr { top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner-badge--tr img { top: 12px; right: 12px; }
.corner-badge--bl { bottom: 0; left: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner-badge--bl img { bottom: 12px; left: 12px; }
/* Couleur de l'angle selon le thème */
html[data-theme="light"] .corner-badge { background: #121110; }                                     /* noir */
html[data-theme="dark"]  .corner-badge { background: linear-gradient(135deg, #f9e9a0 0%, #e8c662 40%, #d4af37 70%, #a9791c 100%); } /* doré */
/* Logo dans l'angle : doré en clair, gunmetal en sombre */
.corner-logo--gun { display: none; }
html[data-theme="light"] .corner-logo--gun  { display: none; }
html[data-theme="dark"]  .corner-logo--gold { display: none; }
html[data-theme="dark"]  .corner-logo--gun  { display: block; }
/* Dégager les contrôles de la nav et le copyright des angles (2 thèmes) */
@media (min-width: 721px) {
  .nav__inner { padding-inline-end: 92px; }
  .footer__bottom > p:first-child { padding-inline-start: 118px; }
}
/* Mobile : garder l'angle bas, masquer l'angle haut (évite le burger) */
@media (max-width: 720px) {
  .corner-badge { width: 96px; height: 96px; }
  .corner-badge img { height: 40px; }
  .corner-badge--tr { display: none; }
  .footer__bottom { padding-bottom: 90px; }
}

/* ===== BOUTON BASCULE DE THÈME ===== */
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; cursor: pointer; background: transparent;
  border: 1px solid var(--line); color: var(--gold-2);
  font-size: 15px; line-height: 1; padding: 0; transition: .25s;
}
.theme-toggle:hover { color: var(--gold-1); border-color: var(--line-strong); transform: translateY(-1px); }
