/* =====================================================
   ELECTRONIQUE AUTOMOBILE — Page "Mes outils"
   Charte : #FFD100 | #231F20 | #FFFFFF
   ===================================================== */

.page-outils { background: var(--black-soft); }
.page-outils .header {
  background: rgba(26,23,24,.97);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.page-outils .nav__logo-img { max-height: calc(var(--nav-h) - 8px); }
.nav__link--current { color: var(--yellow) !important; background: rgba(255,209,0,.1) !important; }

/* ── HERO ──────────────────────────────────────────── */
.ot-hero {
  padding: calc(var(--trust-h) + var(--nav-h) + 48px) 0 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,209,0,.12), transparent 70%),
    var(--black-soft);
}
.ot-hero__kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255,209,0,.35);
  border-radius: var(--radius-full);
  padding: 6px 14px; margin-bottom: 18px;
}
.ot-hero__title { font-size: clamp(34px, 7vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.ot-hero__title span { color: var(--yellow); }
.ot-hero__text {
  max-width: 560px; margin: 16px auto 0;
  font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.7);
}
.ot-hero__note { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.4); }
.ot-hero__note a { text-decoration: underline; }

/* ── RÉSEAUX ───────────────────────────────────────── */
.ot-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ot-social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; color: var(--white);
  background: var(--black-card); border: 1px solid rgba(255,255,255,.1);
  transition: transform var(--transition), border-color var(--transition);
}
.ot-social:hover { transform: translateY(-2px); border-color: var(--yellow); }
.ot-social__ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ot-social--yt .ot-social__ico { background: #FF0000; }
.ot-social--tt .ot-social__ico { background: #010101; box-shadow: 0 0 0 2px #EE1D52; }
.ot-social--ig .ot-social__ico { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ── MENU CATÉGORIES COLLANT ───────────────────────── */
.ot-catnav {
  position: sticky;
  top: calc(var(--trust-h) + var(--nav-h));
  z-index: 50;
  background: rgba(35,31,32,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ot-catnav__list {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 12px 24px;
  max-width: 1200px; margin: 0 auto;
  scroll-snap-type: x proximity;
}
.ot-catnav__list::-webkit-scrollbar { display: none; }
.ot-catnav__link {
  flex-shrink: 0; scroll-snap-align: start;
  padding: 9px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  transition: background var(--transition), color var(--transition);
}
.ot-catnav__link:hover { color: var(--white); background: rgba(255,255,255,.12); }
.ot-catnav__link.is-active { background: var(--yellow); color: var(--black); }

/* ── CATÉGORIES & CARTES ───────────────────────────── */
.ot-main { padding: 12px 0 40px; }
.ot-cat { padding-top: 40px; scroll-margin-top: calc(var(--trust-h) + var(--nav-h) + 64px); }
.ot-cat__title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin-bottom: 20px;
}
.ot-cat__title::before { content: ''; width: 6px; height: 28px; border-radius: 3px; background: var(--yellow); }
.ot-cat__count { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.4); }

.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.ot-card {
  display: flex; flex-direction: column;
  background: var(--white); color: var(--black);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ot-card__media {
  position: relative; aspect-ratio: 16 / 10;
  background: #f3f1ec; display: grid; place-items: center; overflow: hidden;
}
.ot-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ot-card__ph {
  width: 76px; height: 76px; border-radius: 20px;
  background: var(--black); color: var(--yellow);
  display: grid; place-items: center;
  font-size: 32px; font-weight: 700;
}
.ot-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--black);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 11px; border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ot-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.ot-card__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.ot-card__desc { font-size: 15px; line-height: 1.55; color: #4a4547; flex: 1; }

.ot-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  border: 2px dashed var(--black); border-radius: var(--radius);
  background: #fff8d6; padding: 10px 12px; font: inherit; color: var(--black);
  transition: background var(--transition);
}
.ot-promo:hover { background: #fff1a8; }
.ot-promo__label { font-size: 12px; color: #5a5557; display: block; }
.ot-promo__code { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.ot-promo__action {
  flex-shrink: 0; font-size: 13px; font-weight: 700;
  background: var(--black); color: var(--yellow);
  padding: 7px 12px; border-radius: var(--radius-full);
}
.ot-promo.is-copied .ot-promo__action { background: #1a8f3c; color: var(--white); }

.ot-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ot-btn {
  flex: 1 1 140px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}
.ot-btn:active { transform: scale(.98); }
.ot-btn--price { background: var(--yellow); color: var(--black); }
.ot-btn--price:hover { background: var(--yellow-dark); }
.ot-btn--video { background: var(--black); color: var(--white); }
.ot-btn--video:hover { background: #3a3536; }

.ot-state { text-align: center; padding: 60px 0; color: rgba(255,255,255,.55); }

/* ── BLOC ATELIER ──────────────────────────────────── */
.ot-atelier { padding: 40px 0 64px; }
.ot-atelier__box {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center;
  background: var(--yellow); color: var(--black);
  border-radius: var(--radius-lg); padding: 40px;
}
.ot-atelier__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ot-atelier__title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; line-height: 1.15; margin: 8px 0 12px; }
.ot-atelier__text { font-size: 15px; line-height: 1.6; }
.ot-atelier__actions { display: flex; flex-direction: column; gap: 10px; }
.ot-atelier__actions .ot-btn { flex: none; }
.ot-btn--dark { background: var(--black); color: var(--yellow); }
.ot-btn--dark:hover { background: #3a3536; }
.ot-btn--ghost { border: 2px solid var(--black); color: var(--black); }
.ot-btn--ghost:hover { background: rgba(0,0,0,.08); }

/* ── MENTION AFFILIATION ───────────────────────────── */
.ot-disclosure {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px 0;
}
.ot-disclosure p {
  max-width: 1200px; margin: 0 auto;
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.55);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .ot-hero { padding-top: calc(var(--trust-h) + var(--nav-h) + 28px); padding-bottom: 24px; }
  .ot-hero__text { font-size: 15px; }
  .ot-catnav__list { padding: 10px 16px; }
  .ot-main .container, .ot-atelier .container { padding: 0 16px; }
  .ot-cat { padding-top: 32px; }
  .ot-grid { grid-template-columns: 1fr; gap: 16px; }
  .ot-atelier__box { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 380px) {
  .ot-social { padding: 9px 12px; font-size: 13px; }
  .ot-card__body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-card, .ot-social, .ot-btn { transition: none; }
  .ot-card:hover, .ot-social:hover { transform: none; }
}
