/* =========================================================
   Premium details — CGT Alkor refonte 2026
   Finitions transverses : leader mondial, chaque détail compte.
   ========================================================= */

:root {
  --parallax-slow: 0.06;
  --parallax-default: 0.1;
  --parallax-fast: 0.14;
  --premium-line: linear-gradient(90deg, transparent, rgba(97, 177, 188, 0.55) 20%, rgba(232, 218, 196, 0.35) 50%, rgba(97, 177, 188, 0.55) 80%, transparent);
  --premium-glass:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 48%),
    linear-gradient(165deg, rgba(14, 58, 102, 0.32) 0%, rgba(8, 44, 82, 0.58) 100%);
}

/* ---------- Filigrane leader (discret) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Ctext x='50%25' y='54%25' dominant-baseline='middle' text-anchor='middle' fill='%23fff' font-family='Georgia,serif' font-size='13' letter-spacing='0.28em' transform='rotate(-24 120 120)'%3ECGT ALKOR%3C/text%3E%3C/svg%3E");
  background-size: 240px 240px;
}

#main-content {
  position: relative;
  z-index: 1;
}

/* ---------- Breadcrumbs premium ---------- */
.crumb,
.project-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.crumb a,
.project-crumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.crumb a:hover,
.project-crumb a:hover {
  color: var(--accent-soft);
}

.crumb .sep,
.project-crumb .sep {
  opacity: 0.45;
  user-select: none;
}

.crumb [aria-current="page"],
.project-crumb [aria-current="page"] {
  color: var(--accent-soft);
  font-weight: 500;
}

/* ---------- Content hero — enrichissements ---------- */
.content-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 85% 15%, rgba(97, 177, 188, 0.12), transparent 55%),
    radial-gradient(60% 50% at 10% 90%, rgba(232, 218, 196, 0.06), transparent 60%);
}

.content-hero::after {
  content: "";
  position: absolute;
  left: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  bottom: 0;
  height: 1px;
  background: var(--premium-line);
  opacity: 0.65;
}

.content-hero-veil {
  background:
    linear-gradient(180deg, rgba(3, 15, 30, 0.35) 0%, rgba(3, 15, 30, 0.68) 55%, var(--bg-deep) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(3, 15, 30, 0.55), transparent 70%);
}

.content-hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

/* Hero recherche (formulaire intégré) */
.content-hero--search {
  min-height: clamp(320px, 50vw, 480px);
  align-items: flex-end;
}

.content-hero--search .content-hero-inner {
  padding-bottom: clamp(20px, 4vw, 36px);
}

.content-hero--search .search-form-wrap {
  margin: clamp(20px, 3vw, 32px) 0 0;
}

.content-hero--search .search-form-input {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 44, 82, 0.62);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hero article blog */
.content-hero--article {
  min-height: clamp(300px, 48vw, 460px);
}

.content-hero--article .content-hero-title {
  max-width: 22ch;
}

.content-hero--article .blog-article-meta {
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 14px;
}

/* Hero configurateur */
.content-hero--cfg {
  min-height: clamp(240px, 38vw, 360px);
}

/* ---------- Reveal mobile : jamais invisible ---------- */
@media (max-width: 719px) {
  [data-reveal]:not([data-marquee]) {
    opacity: 1 !important;
    transform: none !important;
  }
}

html:not(.motion-enhanced) [data-reveal] {
  animation: premiumFadeUp 0.7s var(--ease-out) both;
  animation-delay: calc(var(--reveal-i, 0) * 0.06s);
}

@keyframes premiumFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ accordion premium ---------- */
.faq-item {
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.faq-item[open]::before {
  opacity: 1;
}

.faq-item summary {
  transition: color 0.25s var(--ease-out);
}

.faq-item[open] summary {
  color: var(--accent-soft);
}

.faq-answer {
  animation: faqOpen 0.4s var(--ease-out);
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Blog cards premium ---------- */
.blog-card {
  position: relative;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.blog-card-body::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 12px;
  background: var(--premium-line);
  opacity: 0.5;
  transition: width 0.45s var(--ease-luxe), opacity 0.35s;
}

.blog-card:hover .blog-card-body::after {
  width: 56px;
  opacity: 0.85;
}

/* ---------- Article long-form premium ---------- */
.blog-article-body blockquote {
  position: relative;
  padding: 18px 20px 18px 22px;
  margin: 24px 0;
  border-left: 0;
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(97, 177, 188, 0.08) 0%, transparent 60%),
    rgba(8, 44, 82, 0.35);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text);
}

.blog-article-body blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 42px;
  line-height: 1;
  color: rgba(97, 177, 188, 0.35);
  font-family: var(--serif);
}

.blog-article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.2em;
  line-height: 0.82;
  padding: 4px 10px 0 0;
  color: var(--accent-soft);
}

.blog-article-featured {
  position: relative;
}

.blog-article-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

/* ---------- Tutoriels vidéo premium ---------- */
.tutorial-video-play {
  background: rgba(3, 15, 30, 0.42);
}

.tutorial-video-play::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: playRing 2.4s var(--ease-out) infinite;
}

.tutorial-video-play::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(97, 177, 188, 0.2);
  animation: playRing 2.4s var(--ease-out) 0.4s infinite;
}

@keyframes playRing {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 0; }
}

.tutorial-category-name {
  position: relative;
  display: inline-block;
}

.tutorial-category-name::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  background: var(--premium-line);
}

/* ---------- Recherche premium ---------- */
.search-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: rgba(8, 44, 82, 0.28);
}

.search-empty {
  position: relative;
  overflow: hidden;
}

.search-empty::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(97, 177, 188, 0.06), transparent 60%);
  animation: ambientMesh 18s linear infinite;
  pointer-events: none;
}

@keyframes ambientMesh {
  to { transform: rotate(360deg); }
}

.search-category-cards .hub-card {
  transition: transform 0.45s var(--ease-luxe), border-color 0.35s, box-shadow 0.35s;
}

.search-category-cards .hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Fiche produit premium ---------- */
.page-product-detail .product-hero {
  margin-top: calc(-1 * clamp(8px, 2vw, 16px));
}

.page-product-detail .product-detail {
  padding-top: 0;
}

.product-hero {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(28px, 5vw, 48px);
  padding: clamp(24px, 4vw, 40px) 0 0;
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  inset: -20% 0 0;
  z-index: -2;
  filter: blur(48px) saturate(1.2);
  opacity: 0.45;
  transform: scale(1.08);
}

.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(3, 15, 30, 0.6) 40%, var(--bg-deep) 100%),
    radial-gradient(80% 60% at 70% 0%, rgba(97, 177, 188, 0.1), transparent 60%);
}

.product-hero-veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--premium-line);
  opacity: 0.5;
}

.product-gallery-main {
  position: relative;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(97, 177, 188, 0.08);
}

.product-gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--specular-top);
  border-radius: inherit;
}

.product-gallery-main::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(97, 177, 188, 0.6);
  opacity: 0.85;
}

.product-info-panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(97, 177, 188, 0.18);
  background: var(--premium-glass);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-info-panel .product-title {
  margin-top: 0;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(97, 177, 188, 0.28);
  background: rgba(97, 177, 188, 0.08);
}

.product-badge--fr {
  color: var(--warm);
  border-color: rgba(232, 218, 196, 0.25);
  background: rgba(232, 218, 196, 0.06);
}

.product-swatch img {
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.35s;
}

.product-swatch:hover img {
  transform: scale(1.02);
  box-shadow: var(--glow);
}

.product-videos .eyebrow {
  display: block;
  margin-bottom: 4px;
}

.product-videos-grid video {
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.35s var(--ease-out);
}

.product-videos-grid video:hover {
  box-shadow: var(--shadow-card-hover);
}

.product-similar .section-head {
  position: relative;
  padding-bottom: clamp(16px, 3vw, 24px);
}

.product-similar .section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(120px, 30%);
  height: 2px;
  background: var(--premium-line);
}

/* ---------- Content hub premium ---------- */
.content-hub-section {
  position: relative;
  padding-top: clamp(8px, 2vw, 16px);
}

.content-hub-section::before {
  content: "";
  display: block;
  width: min(100%, 480px);
  height: 1px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  background: var(--premium-line);
  opacity: 0.45;
}

.content-hub-head {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto clamp(24px, 4vw, 36px);
}

.content-hub-head .eyebrow {
  justify-content: center;
}

.content-hub-head p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.hub-card {
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 30% 0%, rgba(97, 177, 188, 0.12), transparent 55%);
  transition: opacity 0.45s var(--ease-out);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card .ic {
  transition: transform 0.45s var(--ease-spring), color 0.25s;
}

.hub-card:hover .ic {
  transform: scale(1.08);
  color: var(--accent-soft);
}

/* ---------- Content CTA premium ---------- */
.content-cta {
  position: relative;
  overflow: hidden;
}

.content-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(97, 177, 188, 0.05), transparent 40%);
  animation: ambientMesh 24s linear infinite;
  pointer-events: none;
}

/* ---------- Configurateur head ---------- */
.content-hero--cfg .cfg-head {
  width: 100%;
  padding: 0;
}

.content-hero--cfg .cfg-head::after {
  display: none;
}

.cfg-head:not(.content-hero-inner)::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  background: var(--premium-line);
  opacity: 0.4;
}

/* ---------- Pagination blog ---------- */
.blog-pagination a {
  position: relative;
  padding: 8px 4px;
}

.blog-pagination a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.blog-pagination a:hover::after {
  transform: scaleX(1);
}

/* ---------- Boutons & liens ---------- */
.btn-link {
  transition: color 0.25s, gap 0.25s;
}

.btn-link svg {
  transition: transform 0.35s var(--ease-out);
}

.btn-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Section divider utility ---------- */
.premium-divider {
  width: min(100%, 640px);
  height: 1px;
  margin: clamp(32px, 5vw, 56px) auto;
  background: var(--premium-line);
  opacity: 0.45;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .search-empty::before,
  .content-cta::before,
  .tutorial-video-play::before,
  .tutorial-video-play::after {
    animation: none;
  }

  html:not(.motion-enhanced) [data-reveal] {
    animation: none;
  }

  .faq-answer {
    animation: none;
  }
}

/* Drawer mobile — aligné sur la nav desktop */
.drawer-section-label {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.drawer-sub a {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-2);
}

.drawer-sub a span {
  font-weight: 500;
}

.drawer-section-other {
  margin-top: 4px;
}
