/* ==========================================================================
   AMAYRAF — Feuille de style dédiée aux fiches techniques individuelles
   ========================================================================== */

:root {
  --navy: #0A1D33;
  --navy-deep: #061220;
  --navy-light: #132D4C;
  --gold: #B7974F;
  --gold-bright: #D4B26F;
  --gold-deep: #8E7033;
  --line-gold: rgba(183, 151, 79, 0.35);
  --text-main: #0F172A;
  --text-muted: #475569;
  --bg-page: #F8FAF8;
  --card-bg: #FFFFFF;
  --wa-green: #25D366;
  --wa-teal: #128C7E;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.detail-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   NAVIGATION COMMUNE
   ========================================================================== */
.detail-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 4px 20px -8px rgba(10, 29, 51, 0.08);
}

.detail-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.detail-nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.detail-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.detail-nav-btn--hub {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid rgba(10, 29, 51, 0.15);
}

.detail-nav-btn--hub:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.detail-nav-btn--quote {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--navy);
  border: 1px solid var(--gold-deep);
}

.detail-nav-btn--quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(183, 151, 79, 0.45);
}

/* ==========================================================================
   FIL D'ARIANE / BREADCRUMB
   ========================================================================== */
.detail-breadcrumb-bar {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(10, 29, 51, 0.06);
  padding: 10px 0;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.detail-breadcrumb a:hover {
  color: var(--gold-deep);
}

.detail-breadcrumb span.current {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ==========================================================================
   HERO FICHE TECHNIQUE
   ========================================================================== */
.detail-hero {
  padding: 36px 0 32px;
}

.detail-hero-header {
  margin-bottom: 24px;
}

.detail-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
}

.detail-badge--tech {
  background: rgba(10, 29, 51, 0.08);
  color: var(--navy);
  border: 1px solid rgba(10, 29, 51, 0.15);
}

.detail-badge--norm {
  background: rgba(183, 151, 79, 0.14);
  color: var(--gold-deep);
  border: 1px solid var(--line-gold);
}

.detail-badge--gold {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.detail-hero-title {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.detail-hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gold-deep);
  font-weight: 600;
  max-width: 860px;
  line-height: 1.5;
}

/* Cadre de l'image principale explicative */
.detail-featured-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px -15px rgba(10, 29, 51, 0.16);
  border: 1px solid var(--line-gold);
  background: #0A1D33;
  margin-bottom: 40px;
  position: relative;
}

.detail-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.detail-featured-media:hover .detail-featured-img {
  transform: scale(1.02);
}

.detail-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 29, 51, 0.90) 0%, rgba(10, 29, 51, 0) 100%);
  color: #FFFFFF;
  padding: 24px 24px 14px;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ==========================================================================
   CORPS DE LA FICHE : CONTENU & SIDEBAR
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
  margin-bottom: 50px;
}

.detail-article {
  background: #FFFFFF;
  border: 1px solid rgba(10, 29, 51, 0.08);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 8px 30px -10px rgba(10, 29, 51, 0.06);
}

.detail-section {
  margin-bottom: 36px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(183, 151, 79, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-h2-icon {
  color: var(--gold);
}

.detail-p {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Listes techniques */
.detail-tech-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-tech-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.detail-tech-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold-deep);
  font-weight: 800;
}

.detail-tech-list strong {
  color: var(--navy);
  display: inline;
}

/* Tableau de Spécifications Techniques */
.detail-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.86rem;
}

.detail-spec-table th,
.detail-spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10, 29, 51, 0.08);
  text-align: left;
}

.detail-spec-table th {
  background: rgba(10, 29, 51, 0.04);
  color: var(--navy);
  font-weight: 700;
  width: 40%;
}

.detail-spec-table td {
  color: var(--text-main);
  font-weight: 600;
}

/* Grille d'applications industrielles */
.detail-usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.detail-usecase-item {
  background: #F8FAFC;
  border: 1px solid rgba(10, 29, 51, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   SIDEBAR : ACTIONS RAPIDES & FORMULAIRE DE COTATION DÉDIÉ
   ========================================================================== */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.detail-action-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line-gold);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(10, 29, 51, 0.10);
}

.detail-action-title {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.detail-action-desc {
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.detail-quick-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.detail-input,
.detail-textarea {
  width: 100%;
  padding: 9px 12px;
  background: #F8FAFC;
  border: 1px solid rgba(10, 29, 51, 0.15);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-main);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.detail-input:focus,
.detail-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 151, 79, 0.18);
}

/* Encadré d'assistance technique */
.detail-help-box {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(18, 140, 126, 0.08) 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 12px;
  padding: 18px;
}

.detail-help-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0D7A3E;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-help-text {
  margin: 0 0 12px;
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   PAGINATION / NAVIGATION SUIVANT - PRÉCÉDENT ENTRE PRESTATIONS
   ========================================================================== */
.detail-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(10, 29, 51, 0.10);
  border-bottom: 1px solid rgba(10, 29, 51, 0.10);
}

.detail-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 29, 51, 0.12);
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.detail-pager-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .detail-article {
    padding: 24px 22px;
  }
}


/* =====================================================================
   PLAN DU SITE UNIFIÉ AMAYRAF (SITEMAP COMPONENT)
   ===================================================================== */
.site-sitemap {
  width: 100%;
  background: #040D18;
  border-top: 1px solid rgba(212, 178, 111, 0.25);
  color: #CBD5E1;
  padding: 44px 20px 28px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.site-sitemap__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.site-sitemap__head {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-sitemap__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.site-sitemap__logo-dot {
  width: 8px;
  height: 8px;
  background: #D4B26F;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 178, 111, 0.6);
  flex-shrink: 0;
}

.site-sitemap__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-sitemap__tagline {
  margin: 0;
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.5;
}

.site-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

@media (max-width: 992px) {
  .site-sitemap__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .site-sitemap__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.site-sitemap__col {
  display: flex;
  flex-direction: column;
}

.site-sitemap__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4B26F;
}

.site-sitemap__heading-bar {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: #D4B26F;
  border-radius: 1px;
}

.site-sitemap__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-sitemap__item {
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-sitemap__link {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-sitemap__link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
  text-decoration: underline;
  text-decoration-color: #D4B26F;
}

.site-sitemap__link--wa:hover {
  color: #25D366;
}

.site-sitemap__link--mail:hover {
  color: #60A5FA;
}

/* Page active / lien inhibé */
.site-sitemap__link--current {
  color: #D4B26F !important;
  font-weight: 700 !important;
  cursor: default !important;
  pointer-events: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(212, 178, 111, 0.12);
  border: 1px solid rgba(212, 178, 111, 0.35);
  border-radius: 4px;
}

.site-sitemap__current-badge {
  color: #22C55E;
  font-size: 0.75rem;
  line-height: 1;
}

.site-sitemap__tag-cur {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: #E2E8F0;
  opacity: 0.85;
}
