/* ═══════════════════════════════════════════════════════════════
   AUTO-DETAIL — Fiche détaillée d'automatisation CA-TECH
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────── */
.ad-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 70px) 6% 90px;
  background: linear-gradient(160deg,#020b18 0%,#050d1a 50%,#060f20 100%);
  position: relative;
  overflow: hidden;
}
.ad-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,.04) 1px, transparent 1px),
    linear-gradient(90deg,rgba(0,102,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 10%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 10%, transparent 100%);
}
.ad-halo {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(80px);
}
.ad-halo-1 {
  width: 700px; height: 700px; top: -200px; right: -100px;
  background: radial-gradient(circle,rgba(0,102,255,.18) 0%,transparent 70%);
}
.ad-halo-2 {
  width: 500px; height: 500px; bottom: -100px; left: -80px;
  background: radial-gradient(circle,rgba(0,200,255,.08) 0%,transparent 65%);
}
.ad-hero-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; width: 100%;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.ad-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .73rem; color: rgba(255,255,255,.4); margin-bottom: 2.5rem;
}
.ad-breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.ad-breadcrumb a:hover { color: var(--cyan); }
.ad-breadcrumb-sep { color: rgba(255,255,255,.2); }

/* ── KICKER ─────────────────────────────────────────────────── */
.ad-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1.5rem;
}
.ad-kicker::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg,var(--blue),var(--cyan)); border-radius: 2px;
}

/* ── FLOW ───────────────────────────────────────────────────── */
.ad-flow {
  display: flex; align-items: center;
  gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.ad-app-node { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.ad-app-icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden;
  background: rgba(0,0,0,.25);
}
.ad-app-icon::before {
  content: ''; position: absolute; inset: 0;
  background: var(--app-c,#0066FF); opacity: .18;
}
.ad-app-icon svg {
  width: 24px; height: 24px; position: relative; z-index: 1;
  color: var(--app-c,#0066FF); stroke: currentColor;
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ad-app-name {
  font-size: .63rem; font-weight: 600; color: rgba(255,255,255,.5);
  text-align: center; max-width: 68px; line-height: 1.2;
}
.ad-flow-arrow {
  color: var(--blue); padding: 0 .2rem;
  animation: ad-pulse 2.2s ease-in-out infinite;
}
.ad-flow-arrow svg { width: 18px; height: 18px; }
@keyframes ad-pulse {
  0%,100% { opacity: .35; transform: translateX(0); }
  50%      { opacity: 1;   transform: translateX(3px); }
}

/* ── HERO COPY ──────────────────────────────────────────────── */
.ad-hero h1 {
  font-size: clamp(2rem,4vw,3.2rem); font-weight: 900; color: #fff;
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.2rem;
}
.ad-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg,#fff 20%,var(--cyan) 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ad-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.6); line-height: 1.8;
  max-width: 640px; margin-bottom: 2.5rem;
}
.ad-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── STATS BAR ──────────────────────────────────────────────── */
.ad-stats {
  display: flex; gap: 3rem; padding: 2.2rem 6%;
  background: rgba(0,102,255,.06);
  border-top: 1px solid rgba(0,102,255,.12);
  border-bottom: 1px solid rgba(0,102,255,.12);
  justify-content: center; flex-wrap: wrap;
}
.ad-stat { text-align: center; }
.ad-stat-num {
  font-family: 'Rajdhani',sans-serif; font-size: 2.1rem; font-weight: 700;
  color: #fff; display: block; line-height: 1; margin-bottom: .25rem;
}
.ad-stat-num em { font-style: normal; color: var(--cyan); }
.ad-stat-label { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .4px; }

/* ── SHARED SECTION ─────────────────────────────────────────── */
.ad-section { padding: 96px 6%; position: relative; }
.ad-section-dark { background: #0a0f1e; }
.ad-section-dark::before {
  content: ''; position: absolute; top: -180px; left: 50%;
  transform: translateX(-50%); width: 800px; height: 400px;
  background: radial-gradient(ellipse at center,rgba(0,102,255,.08) 0%,transparent 70%);
  pointer-events: none;
}
.ad-section-header { text-align: center; margin-bottom: 60px; }
.ad-section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: .9rem;
}
.ad-section-label::before,.ad-section-label::after {
  content: ''; display: block; width: 20px; height: 2px;
  background: linear-gradient(90deg,var(--blue),var(--cyan)); border-radius: 2px;
}
.ad-section-title {
  font-size: clamp(1.7rem,2.8vw,2.3rem); font-weight: 900; color: #fff;
  letter-spacing: -.025em; line-height: 1.12; margin-bottom: .75rem;
}
.ad-section-title em {
  font-style: normal;
  background: linear-gradient(135deg,#fff 30%,var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ad-section-desc {
  font-size: .92rem; color: rgba(255,255,255,.5); line-height: 1.8;
  max-width: 540px; margin: 0 auto;
}

/* ── STEPS ──────────────────────────────────────────────────── */
.ad-steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; max-width: 960px; margin: 0 auto;
}
.ad-step {
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; transition: border-color .3s,background .3s;
}
.ad-step:hover { background: rgba(255,255,255,.05); border-color: rgba(0,102,255,.3); }
.ad-step-num {
  font-family: 'Rajdhani',sans-serif; font-size: 3rem; font-weight: 700;
  color: rgba(0,102,255,.18); line-height: 1; margin-bottom: .6rem; display: block;
}
.ad-step-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,102,255,.1); border: 1px solid rgba(0,102,255,.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: .9rem;
}
.ad-step-icon svg {
  width: 19px; height: 19px; stroke: var(--blue);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ad-step h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .45rem; }
.ad-step p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; margin: 0; }

/* ── BENEFITS ───────────────────────────────────────────────── */
.ad-benefits {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.2rem; max-width: 960px; margin: 0 auto;
}
.ad-benefit {
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .3s;
}
.ad-benefit:hover { border-color: rgba(0,102,255,.25); }
.ad-benefit-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.ad-benefit-icon svg {
  width: 17px; height: 17px; stroke: var(--cyan);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ad-benefit h4 { font-size: .88rem; font-weight: 700; color: #fff; }
.ad-benefit p { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.65; margin: 0; }

/* ── FOR WHO ────────────────────────────────────────────────── */
.ad-who-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; max-width: 860px; margin: 0 auto;
}
.ad-who-card {
  padding: 1.25rem 1rem; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; transition: border-color .3s;
}
.ad-who-card:hover { border-color: rgba(0,102,255,.2); }
.ad-who-icon { font-size: 1.6rem; margin-bottom: .5rem; display: block; }
.ad-who-card strong { display: block; font-size: .82rem; color: #fff; margin-bottom: .3rem; }
.ad-who-card p { font-size: .75rem; color: rgba(255,255,255,.45); line-height: 1.4; margin: 0; }

/* ── CTA FINAL ──────────────────────────────────────────────── */
.ad-cta {
  padding: 110px 6%;
  background: linear-gradient(115deg,#0a0f1e 0%,#08224d 45%,#0043b8 78%,#0066FF 100%);
  position: relative; overflow: hidden; text-align: center;
}
.ad-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 70px 70px; pointer-events: none;
}
.ad-cta::after {
  content: ''; position: absolute; top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle,rgba(0,212,255,.15) 0%,transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.ad-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.ad-cta-inner h2 {
  font-size: clamp(1.8rem,3.5vw,2.7rem); font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 1rem;
}
.ad-cta-inner h2 strong {
  background: linear-gradient(135deg,#fff 30%,var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ad-cta-inner p { font-size: .98rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 2.5rem; }
.ad-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width:900px) {
  .ad-steps { grid-template-columns: 1fr; }
  .ad-benefits { grid-template-columns: repeat(2,1fr); }
  .ad-who-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .ad-benefits { grid-template-columns: 1fr; }
  .ad-who-grid { grid-template-columns: 1fr; }
  .ad-app-icon { width: 48px; height: 48px; }
  .ad-app-icon svg { width: 20px; height: 20px; }
  .ad-stats { gap: 1.5rem; }
}
