/* =============================================
   XEFI - Page projet, thème clair
   (ivoire, encre, bordeaux · Inter Tight + Instrument Serif)
   ============================================= */

.xp { background: var(--ivory); }
.x-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ═════════════ HERO : les concessions ═════════════ */
.x-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 132px 40px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.x-glow {
  position: absolute;
  z-index: -1;
  width: 1200px; height: 760px;
  left: 50%; top: -260px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 30, 94, .13), rgba(139, 21, 56, .05) 55%, transparent);
  pointer-events: none;
}
.x-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.x-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 16px 6px 6px;
  border-radius: 60px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(26, 26, 46, .35);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.x-tag-logo {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 40px;
  background: var(--ink);
}
.x-tag-logo img { height: 15px; width: auto; display: block; }

.x-title {
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--ink);
}
.x-l { display: block; overflow: hidden; padding-bottom: .07em; }
.x-li { display: inline-block; will-change: transform; }
.x-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--bord);
}

/* ── Mur des marques ── */
.x-wall { width: min(1160px, 100%); margin: 54px auto 0; }

.x-brand {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .6s, border-color .6s;
}
.x-brand.is-ready { transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s, border-color .6s; }
.x-brand::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.x-brand.is-sheen::before { animation: xSheen 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes xSheen { to { left: 130%; } }
.x-brand::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--bord);
  translate: -50% 0;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.x-brand.is-ready:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(26, 26, 46, .4); border-color: transparent; }
.x-brand:hover::after { width: 46%; }

.x-bn {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(13px, 1.12vw, 17px);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.x-brand img.x-logo-img { max-height: 40px; max-width: 80%; width: auto; height: auto; display: block; }
.x-brand[data-logo="ds"] img.x-logo-img, .x-brand[data-logo="peugeot"] img.x-logo-img { max-width: 86%; }
.x-brand.has-logo .x-bn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.x-majors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.x-brand--xl { min-height: 168px; border-radius: 28px; gap: 8px; align-content: center; }
.x-brand--xl .x-bn {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -.035em;
  text-transform: none;
}
.x-brand--xl small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.x-brand--xl img.x-logo-img { max-height: 84px; max-width: 72%; }
.x-brand--xl[data-logo="mercedes-benz"] img.x-logo-img { max-height: 112px; }
.x-brand[data-logo="citroen"] img.x-logo-img, .x-brand[data-logo="opel"] img.x-logo-img { max-height: 52px; }

.x-wall-cap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
}
.x-wall-cap::before, .x-wall-cap::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.x-minors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.x-down {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-top: 44px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 46, .2);
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.x-down:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═════════════ MODULES ═════════════ */
.x-mods-sec { padding: 120px 0 40px; }
.x-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.x-kick {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 38px);
  color: var(--ink);
}
.x-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.x-stack span {
  padding: 6px 13px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.x-mods { display: grid; grid-template-columns: repeat(4, 1fr); }
.x-mod {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 26px 40px 0;
  border-right: 1px solid var(--line);
}
.x-mod + .x-mod { padding-left: 26px; }
.x-mod:last-child { border-right: 0; }
.x-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--bord);
}
.x-mod b {
  margin-top: 54px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--ink);
  transition: color .4s;
}
.x-desc { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.x-mod::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 2px; width: 0;
  background: var(--bord);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.x-mod + .x-mod::after { left: 26px; }
.x-mod:hover::after { width: 60px; }
.x-mod:hover b { color: var(--bord); }

/* ═════════════ AGENTS IA ═════════════ */
.x-ai { padding: 90px 0 40px; }
.x-h2 {
  max-width: 820px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--ink);
}
.x-h2 em { letter-spacing: -.02em; }
.x-ai-list {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
}
.x-ai-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.x-ai-ic {
  grid-row: span 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(139, 21, 56, .25);
  color: var(--bord);
  transition: background .4s, color .4s, border-color .4s;
}
.x-ai-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.x-ai-list li:hover .x-ai-ic { background: var(--bord); color: #fff; border-color: var(--bord); }
.x-ai-list b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.x-ai-list li > span:last-child { font-size: 15.5px; color: var(--muted); }

/* ═════════════ CTA clair ═════════════ */
.x-end { max-width: 1240px; margin: 0 auto; padding: 80px 40px 40px; }
.x-cta {
  position: relative;
  padding: 70px 40px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.x-cta::before {
  content: '';
  position: absolute;
  width: 700px; height: 400px;
  left: 50%; top: -260px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 30, 94, .12), transparent);
}
.x-cta h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 56px);
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
}
.x-cta p { position: relative; margin: 14px 0 28px; font-size: 17px; color: var(--muted); }
.x-cta-btns { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ═════════════ Responsive ═════════════ */
@media (max-width: 1060px) {
  .x-minors { grid-template-columns: repeat(3, 1fr); }
  .x-mods { grid-template-columns: repeat(2, 1fr); }
  .x-mod { border-bottom: 1px solid var(--line); }
  .x-mod:nth-child(2n) { border-right: 0; }
  .x-mod:nth-child(3) { padding-left: 0; }
  .x-mod:nth-child(3)::after { left: 0; }
}

@media (max-width: 640px) {
  .x-wrap { padding: 0 18px; }
  .x-hero { padding: 108px 16px 48px; min-height: auto; }
  .x-tag { font-size: 11.5px; gap: 10px; padding-right: 12px; }
  .x-title { font-size: clamp(38px, 11vw, 52px); }
  .x-wall { margin-top: 36px; }
  .x-majors { grid-template-columns: 1fr; gap: 10px; }
  .x-brand--xl { min-height: 110px; border-radius: 22px; }
  .x-minors { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .x-brand { min-height: 70px; border-radius: 16px; }
  .x-wall-cap { font-size: 16px; gap: 12px; margin: 22px 0 12px; }
  .x-mods-sec { padding: 70px 0 20px; }
  .x-sec-head { flex-direction: column; gap: 12px; }
  .x-mods { grid-template-columns: 1fr; }
  .x-mod, .x-mod + .x-mod { padding: 24px 0 26px; border-right: 0; }
  .x-mod::after, .x-mod + .x-mod::after { left: 0; }
  .x-mod b { margin-top: 14px; }
  .x-ai { padding: 60px 0 20px; }
  .x-ai-list { grid-template-columns: 1fr; margin-top: 30px; }
  .x-end { padding: 50px 12px 20px; }
  .x-cta { padding: 46px 22px; border-radius: 24px; }
}
