/* ══════════════════════════════════════════════════════════════════════
   LIBRADEV — REFONTE DE L'ACCUEIL (novembre 2026)
   ----------------------------------------------------------------------
   Chargée APRÈS brand.css, sur l'accueil seulement. Elle reprend les
   maquettes fournies par Bénito : fond blanc lavande, titres en sans-serif
   très gras avec un mot en italique violet, cartes blanches arrondies,
   un bandeau nuit pour les solutions et un appel final sombre.

   Rien du contenu n'a été retiré : les textes, les liens et les sections
   utiles au référencement sont tous là. Seuls l'ordre des sections, la
   typographie des titres et la forme des blocs changent.

   Rythme jour / nuit gardé (voir libradev-allegement) : hero clair mais
   très violet, solutions en nuit, contact + pied de page en nuit.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --violet: #5b42b8;
  --violet-deep: #3d2a8f;
  --violet-night: #1b1442;
  --violet-soft: #ece7fb;
  --grad-violet: linear-gradient(135deg, #7a5ce6 0%, #5b42b8 48%, #3d2a8f 100%);
  --shadow-card: 0 1px 2px rgba(45,35,90,.04), 0 12px 32px -12px rgba(61,42,143,.16);
  --shadow-card-hover: 0 2px 4px rgba(45,35,90,.05), 0 22px 48px -16px rgba(61,42,143,.28);
  --wrap: 1240px;
}

body { background: #f7f5fd; }

/* ══ 1. TYPOGRAPHIE ══════════════════════════════════════════════════
   Un seul langage de titres sur toute la page : Plus Jakarta Sans 800,
   serré, avec le mot fort en italique violet. Les anciens titres en
   Cormorant sont tous redirigés ici.                                  */
:is(.hx-title, .services-title, .enjeux-title, .so-title, .ia-title,
    .process-title, .about-title, .real-title, .outils-title, .tech-title,
    .faq-home-title, .zone-title, .contact-title) {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--cream);
  text-wrap: balance;
}
:is(.hx-title, .services-title, .enjeux-title, .so-title, .ia-title,
    .process-title, .about-title, .real-title, .outils-title, .tech-title,
    .faq-home-title, .zone-title, .contact-title) :is(em, strong) {
  font-style: italic;
  font-weight: 800;
  color: var(--violet);
  background: linear-gradient(100deg, #7a5ce6 0%, #5b42b8 60%, #4a33a0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .04em; /* l'italique déborde à droite, le clip le couperait */
}
.theme-nuit :is(.so-title, .contact-title) { color: #fff; }
.theme-nuit :is(.so-title, .contact-title) em {
  background: linear-gradient(100deg, #d9cdfc 0%, #b8a8e8 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Petits titres : même famille, plus légers */
:is(.n8n-band-title, .outil-name, .zone-card h3, .diff-name, .real-name,
    .ia-ba-case-name, .tech-name, .faq-q, .enjeu-num, .stat-number) {
  font-family: var(--font-display);
}
:is(.n8n-band-title, .outil-name, .zone-card h3) {
  font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2vw, 26px); line-height: 1.2;
}
:is(.n8n-band-title, .outil-name, .zone-card h3) em { font-style: italic; color: var(--violet); }

/* Sur-titres : capitales violettes, filet devant (maquettes) */
.section-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--violet);
  margin-bottom: 18px;
}
.section-label::before { width: 28px; height: 2px; border-radius: 2px; background: var(--violet); }
.theme-nuit .section-label { color: #c9bbf6; }
.theme-nuit .section-label::before { background: #c9bbf6; }
.contact-left .section-label { color: #c9bbf6; }
.contact-left .section-label::before { background: #c9bbf6; }
.ia-eyebrow { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; color: var(--violet); }

/* ══ 2. BOUTONS ══════════════════════════════════════════════════════
   Pilule violette pleine, texte normal (plus de capitales espacées),
   et pilule contour pour l'action secondaire.                         */
.btn-primary, .btn-submit {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: #fff; background: var(--grad-violet);
  padding: 15px 26px; gap: 10px;
  border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(91,66,184,.7), inset 0 1px 0 rgba(255,255,255,.18);
  animation: none;
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .25s;
}
.btn-primary:hover, .btn-submit:hover {
  background: var(--grad-violet); color: #fff; filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(91,66,184,.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-ghost {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--cream);
  padding: 14px 24px; gap: 10px;
  border: 1.5px solid rgba(91,66,184,.28); border-radius: 999px;
  background: rgba(255,255,255,.7);
  animation: none; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.btn-ghost:hover { color: var(--violet); border-color: var(--violet); background: #fff; }
.theme-nuit .btn-ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
.theme-nuit .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
/* Sur fond nuit, le bouton plein passe en blanc (appel final des maquettes) */
.theme-nuit .btn-submit {
  background: #fff; color: var(--violet-deep);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.theme-nuit .btn-submit:hover { background: #fff; color: var(--violet); }

/* ══ 3. SECTIONS ═════════════════════════════════════════════════════
   Largeur de lecture commune, plus de filets gris entre les sections,
   halos qui dérivent retirés (ils rendaient le fond grisâtre).         */
#enjeux, #about, #services, #ia-automations, #realisations, #process,
#tech, #outils-gratuits, #faq-home, #contact, #zone, #solutions {
  border-top: none;
  padding: 110px max(28px, calc((100% - var(--wrap)) / 2));
}
#about::after, #services::after, #tech::after, #process::after, #contact::after,
#outils-gratuits::before { display: none; }
#enjeux, #about, #ia-automations, #realisations, #tech, #outils-gratuits, #faq-home, #zone {
  background: transparent;
}
#outils-gratuits { border-bottom: none; }

/* Cartes blanches communes */
:is(.sx-card, .diff-card, .real-card, .outil-card, .zone-card, .tech-item,
    .ia-ba-row, .n8n-band, .enjeu-row) {
  border-color: rgba(91,66,184,.12);
}
:is(.diff-card, .real-card, .outil-card, .zone-card, .tech-item) {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-card);
}
:is(.diff-card, .real-card, .outil-card, .zone-card, .tech-item):hover {
  background: #fff; box-shadow: var(--shadow-card-hover);
}

/* ══ 4. HERO ═════════════════════════════════════════════════════════ */
#hero {
  min-height: 0; display: block;
  padding: 128px max(28px, calc((100% - var(--wrap)) / 2)) 64px;
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(122,92,230,.20) 0%, transparent 62%),
    radial-gradient(ellipse 45% 50% at 8% 10%, rgba(201,187,246,.45) 0%, transparent 60%),
    linear-gradient(180deg, #f3effe 0%, #f7f5fd 100%);
  color: var(--cream);
  overflow: hidden;
}
.hx-bg { position: absolute; inset: 0; pointer-events: none; }
/* Les deux barres obliques du logo, en grand derrière le chat */
.hx-slash {
  position: absolute; top: 104px; height: calc(86% - 104px);
  border-radius: 34px;
  transform: skewX(-24deg);
  transform-origin: top left;
}
.hx-slash--1 {
  left: 58%; width: 150px;
  background: linear-gradient(180deg, rgba(167,143,240,.55) 0%, rgba(167,143,240,.12) 100%);
}
.hx-slash--2 {
  left: calc(58% + 190px); width: 190px;
  background: linear-gradient(180deg, #7a5ce6 0%, #5b42b8 45%, #3d2a8f 100%);
  box-shadow: 0 40px 80px -30px rgba(61,42,143,.55);
}
.hx-glow {
  position: absolute; right: 4%; bottom: 14%; width: 46%; height: 30%;
  background: radial-gradient(ellipse, rgba(91,66,184,.22) 0%, transparent 70%);
  filter: blur(10px);
}

.hx-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px; align-items: center;
  min-height: min(620px, calc(100vh - 260px));
}
.hx-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--violet);
  margin-bottom: 22px;
  opacity: 0; animation: fadeUp .8s .1s forwards;
}
.hx-eyebrow::before { content: ''; width: 34px; height: 2px; border-radius: 2px; background: var(--violet); }
.hx-title {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 26px;
  opacity: 0; animation: fadeUp .9s .2s forwards;
}
.hx-title em { display: inline-block; position: relative; }
/* Le trait de soulignement « coup de pinceau » des maquettes */
.hx-title em::after {
  content: ''; position: absolute; left: 4%; right: 18%; bottom: -.16em; height: .09em;
  border-radius: 99px; background: var(--grad-violet);
  -webkit-text-fill-color: initial;
  transform: rotate(-1.2deg);
}
#hero .hero-title-geo {
  display: block; margin-top: 26px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.5;
  color: var(--muted); max-width: 520px;
  -webkit-text-fill-color: initial;
}
#hero .hero-title-geo b { color: var(--violet); font-weight: 600; }
.hx-baseline {
  max-width: 480px; margin-bottom: 36px;
  font-size: 17px; line-height: 1.65; font-weight: 400; color: var(--cream-soft);
  opacity: 0; animation: fadeUp .9s .32s forwards;
}
#hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp .9s .42s forwards; }

.hx-visual { position: relative; align-self: end; }
.hx-cat {
  display: block; width: 100%; max-width: 640px; height: auto; margin-left: auto;
  filter: drop-shadow(0 30px 40px rgba(27,20,66,.35));
  opacity: 0; animation: heroMascotteIn 1.1s .5s forwards;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
/* Carte « // Sur mesure » en verre sombre */
.hx-card {
  position: absolute; top: -26%; right: 0;
  padding: 16px 20px 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(43,31,98,.92) 0%, rgba(27,20,66,.94) 100%);
  border: 1px solid rgba(201,187,246,.28);
  box-shadow: 0 24px 50px -20px rgba(27,20,66,.7);
  color: #e9e3ff;
  backdrop-filter: blur(8px);
  transform: rotate(-3deg);
  opacity: 0; animation: hxCardIn 1s .9s forwards;
}
@keyframes hxCardIn { from { opacity: 0; transform: rotate(-3deg) translateY(16px); } to { opacity: 1; transform: rotate(-3deg); } }
.hx-card-title {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 13px; color: #fff; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(201,187,246,.25);
}
.hx-card ul { list-style: none; display: grid; gap: 7px; }
.hx-card li {
  display: flex; align-items: center; gap: 9px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px;
}
.hx-card li svg { color: #b9a6ff; flex-shrink: 0; }

/* Bandeau de repères */
.hx-stats {
  position: relative; z-index: 3;
  list-style: none; margin-top: 26px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 12px; border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(91,66,184,.12);
  box-shadow: 0 20px 50px -24px rgba(61,42,143,.3);
  backdrop-filter: blur(12px);
  opacity: 0; animation: fadeUp .9s .6s forwards;
}
.hx-stats li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 18px; }
.hx-stats li + li { border-left: 1px solid rgba(91,66,184,.14); }
.hx-stat-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--violet); background: var(--violet-soft);
}
.hx-stats strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 21px; letter-spacing: -0.02em; color: var(--cream); line-height: 1.1;
}
.hx-stats small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* ══ 5. SERVICES ═════════════════════════════════════════════════════ */
#services { background: transparent; color: var(--cream); }
.sx-wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.sx-head { position: sticky; top: 110px; }
.services-title { margin-bottom: 18px; }
.services-intro { font-size: 16px; line-height: 1.7; color: var(--cream-soft); max-width: none; margin: 0; text-align: left; }
.sx-card.sx-card--ask {
  justify-content: center;
  background: linear-gradient(160deg, #fbfaff 0%, #f1edfc 100%);
  border: 1.5px dashed rgba(91,66,184,.35); box-shadow: none;
}
.sx-card.sx-card--ask:hover { transform: none; box-shadow: none; border-color: rgba(91,66,184,.5); }
.sx-aside-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--cream); margin-bottom: 8px; }
.sx-aside-text { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.sx-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--violet); text-decoration: none;
}
.sx-more svg { transition: transform .3s var(--ease-out); }
.sx-more:hover svg { transform: translateX(5px); }

.sx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sx-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 26px 24px; border-radius: 24px;
  background: #fff; border: 1px solid rgba(91,66,184,.12);
  box-shadow: var(--shadow-card);
  color: var(--cream); text-decoration: none;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.sx-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: rgba(91,66,184,.3); }
.sx-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sx-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  color: var(--violet); background: var(--violet-soft);
}
.sx-icon svg { width: 26px; height: 26px; }
.sx-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: rgba(91,66,184,.45); letter-spacing: .04em; }
.sx-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.sx-desc { font-size: 14.5px; line-height: 1.68; color: var(--muted); flex: 1; }
.sx-go {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--violet);
}
.sx-go svg { transition: transform .3s var(--ease-out); }
.sx-card:hover .sx-go svg { transform: translateX(5px); }

/* La spécialité : violet plein, sur toute la largeur */
.sx-card--feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 36px;
  padding: 32px 34px;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255,255,255,.16) 0%, transparent 60%),
    var(--grad-violet);
  border-color: transparent; color: #fff;
  box-shadow: 0 30px 60px -28px rgba(61,42,143,.8);
}
.sx-card--feature:hover { border-color: transparent; box-shadow: 0 36px 70px -26px rgba(61,42,143,.9); }
.sx-card--feature > * { grid-column: 1; }
.sx-card--feature .sx-list { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
.sx-card--feature .sx-icon { background: rgba(255,255,255,.16); color: #fff; }
.sx-card--feature .sx-num { color: rgba(255,255,255,.55); }
.sx-card--feature .sx-desc { color: rgba(255,255,255,.82); }
.sx-card--feature .sx-go { color: #fff; }
.sx-tag {
  align-self: flex-start; justify-self: start;
  margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.16); color: #fff;
}
.sx-list { list-style: none; display: grid; gap: 10px; }
.sx-list li {
  position: relative; padding: 13px 16px 13px 44px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: 14px; line-height: 1.45; color: #fff;
}
.sx-list li::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid #d9cdfc; border-bottom: 2px solid #d9cdfc; transform: rotate(-45deg);
}

/* ══ 6. ENJEUX ═══════════════════════════════════════════════════════ */
.enjeu-problem {
  font-family: var(--font-display); font-style: normal; font-weight: 700;
  font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; color: var(--cream);
}
.enjeu-num { font-weight: 800; font-size: 30px; color: rgba(91,66,184,.35); letter-spacing: -0.02em; }
.enjeu-arrow { font-family: var(--font-display); font-weight: 700; color: var(--violet); }
.enjeu-row {
  background: #fff; border: 1px solid rgba(91,66,184,.12); border-radius: 22px;
  box-shadow: var(--shadow-card); padding: 26px 28px; margin-bottom: 14px;
}
/* Le chat au mégaphone, en entier, sans médaillon (cf. PR 7) */
.enjeux-mascotte { background: none; padding: 0; border-radius: 0; }

/* ══ 7. NOS SOLUTIONS (bandeau nuit) ═════════════════════════════════ */
#solutions {
  padding-top: 0; padding-bottom: 0;
  background: transparent;
}
.so-wrap {
  position: relative; overflow: hidden;
  padding: 56px 52px 52px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(122,92,230,.45) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(122,92,230,.25) 0%, transparent 60%),
    linear-gradient(135deg, #2a1e5e 0%, #1b1442 55%, #140f33 100%);
  box-shadow: 0 40px 80px -40px rgba(27,20,66,.7);
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
/* Feuille de palmier stylisée, en filigrane (rappel des maquettes) */
.so-wrap::before {
  content: ''; position: absolute; left: -60px; bottom: -80px; width: 320px; height: 320px;
  background:
    repeating-conic-gradient(from 200deg at 0% 100%, rgba(167,143,240,.28) 0deg 3deg, transparent 3deg 9deg);
  -webkit-mask: radial-gradient(circle at 0% 100%, #000 0%, #000 55%, transparent 72%);
          mask: radial-gradient(circle at 0% 100%, #000 0%, #000 55%, transparent 72%);
  pointer-events: none;
}
.so-head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: end;
}
.so-head .section-label, .so-title { grid-column: 1; }
.so-sub { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.so-head .btn-ghost { grid-column: 2; justify-self: start; }
.so-title { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 16px; }
.so-sub { font-size: 15.5px; line-height: 1.7; color: #cfc6ee; margin-bottom: 20px; }
.so-title { margin-bottom: 0; }
.so-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.so-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,187,246,.2);
  color: #fff; text-decoration: none;
  transition: transform .45s var(--ease-out), border-color .3s, background .3s;
}
a.so-card:hover { transform: translateY(-6px); border-color: rgba(201,187,246,.5); background: rgba(255,255,255,.1); }
.so-media { aspect-ratio: 4 / 3.4; overflow: hidden; position: relative; background: #2a1e5e; }
.so-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
a.so-card:hover .so-media img { transform: scale(1.06); }
.so-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,15,51,.75) 100%); }
/* Pas encore de visuel : dégradé violet et pictogramme */
.so-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85);
  background:
    radial-gradient(circle at 30% 25%, rgba(201,187,246,.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(230,160,90,.35) 0%, transparent 45%),
    linear-gradient(140deg, #6a4fd6 0%, #3d2a8f 100%);
}
.so-ph svg { width: 54px; height: 54px; stroke-width: 1.3; }
.so-body { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; flex: 1; }
.so-logo {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
}
.so-logo svg { width: 17px; height: 17px; }
.so-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.so-tag { font-size: 12.5px; line-height: 1.4; color: #cfc6ee; margin-top: 3px; }
.so-go {
  margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--violet-deep);
  align-self: flex-end;
}
.so-go svg { width: 14px; height: 14px; }

/* ══ 8. IA ═══════════════════════════════════════════════════════════ */
#ia-automations { z-index: auto; }
.ia-ba-row { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); }
.ia-ba-case-name { font-weight: 800; }
.n8n-band { background: #fff; border-radius: 24px; box-shadow: var(--shadow-card); }

/* ══ 9. MÉTHODE ══════════════════════════════════════════════════════ */
#process { background: transparent; color: var(--cream); }
.px-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 48px; align-items: start; }
.process-title { margin-bottom: 16px; }
.process-sub { font-size: 15.5px; line-height: 1.7; color: var(--cream-soft); max-width: none; margin: 0; text-align: left; }
.px-steps {
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
/* Le fil qui relie les quatre pastilles */
.px-steps::before {
  content: ''; position: absolute; top: 27px; left: 28px; right: 12%;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #5b42b8 0%, #a78ff0 100%);
  opacity: .55;
}
.px-step { position: relative; }
.px-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--violet); background: #fff;
  box-shadow: 0 0 0 6px #f7f5fd, 0 10px 24px -8px rgba(91,66,184,.45);
  border: 1.5px solid rgba(91,66,184,.25);
  margin-bottom: 22px;
}
.px-step:first-child .px-icon { background: var(--grad-violet); color: #fff; border-color: transparent; }
.px-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--violet); }
.px-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin: 2px 0 8px; }
.px-desc { font-size: 14px; line-height: 1.65; color: var(--muted); }
.px-out {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--violet-soft); font-size: 13px; line-height: 1.5; color: var(--cream-soft);
}
.px-out span {
  display: block; margin-bottom: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet);
}

/* ══ 10. POURQUOI LIBRADEV ═══════════════════════════════════════════ */
#about { display: block; }
.ab-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.ab-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: end; }
.ab-head .section-label { grid-column: 1; }
.about-title { grid-column: 1; margin: 0; }
.about-text { grid-column: 2; grid-row: 1 / span 2; font-size: 15.5px; line-height: 1.8; color: var(--cream-soft); margin: 0; }
.about-diffs-grid { gap: 16px; }
.diff-card { padding: 26px 22px 26px; }
.diff-card .diff-icon { border-radius: 14px; background: var(--violet-soft) !important; box-shadow: none !important; }
.diff-card .diff-icon::before { display: none; }
.diff-card .diff-icon svg * { stroke: var(--violet); }
.diff-card .diff-icon svg circle[fill] { fill: var(--violet); }
.diff-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }

/* ══ 11. RÉALISATIONS ════════════════════════════════════════════════
   Cartes chargées par Firestore (makeCard) : visuel en haut, texte en
   dessous, coins arrondis et ombre douce.                              */
.real-header { margin-bottom: 44px; }
.real-card { border-radius: 22px; }
.real-card::before { display: none; }
.real-img { aspect-ratio: 16 / 10; }
.real-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.real-category {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .06em;
}
.real-link { font-family: var(--font-display); font-weight: 700; color: var(--violet); text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ══ 12. OUTILS, TECHNOS, FAQ, ZONE ══════════════════════════════════ */
.outil-badge { font-family: var(--font-display); background: var(--violet-soft); color: var(--violet); border: none; }
.outil-card { border-radius: 26px; }
.tech-item { border-radius: 18px; }
.tech-name { font-weight: 700; }
.faq-q { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.faq-item { border-color: rgba(91,66,184,.14); }

/* ══ 13. CONTACT : l'appel final, en nuit ════════════════════════════ */
#contact {
  margin: 0 max(16px, calc((100% - var(--wrap) - 80px) / 2)) 0;
  padding: 90px 56px;
  border-radius: 36px 36px 0 0;
  background:
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(122,92,230,.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(122,92,230,.22) 0%, transparent 55%),
    linear-gradient(135deg, #2a1e5e 0%, #1b1442 55%, #140f33 100%);
}
.contact-inner { max-width: 1080px; gap: 64px; }
.contact-title { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 18px; }
.contact-next-title { font-family: var(--font-display); font-weight: 700; color: #c9bbf6; }
.theme-nuit .form-group :is(input, textarea, select) { background: rgba(255,255,255,.07); border-color: rgba(201,187,246,.22); border-radius: 12px; }
.theme-nuit .form-group :is(input, textarea, select):focus { border-color: #c9bbf6; }

/* ══ 14. PIED DE PAGE ════════════════════════════════════════════════ */
footer.theme-nuit {
  display: block;
  padding: 64px max(28px, calc((100% - var(--wrap)) / 2)) 32px;
  background:
    radial-gradient(ellipse 40% 90% at 100% 100%, rgba(122,92,230,.28) 0%, transparent 60%),
    #140f33;
}
.ft-top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px; padding-bottom: 44px;
}
.ft-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 10px; }
.ft-logo img { width: 44px; height: 44px; }
footer .footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-transform: none; color: #fff; }
footer .footer-tagline { font-size: 14px; color: #cfc6ee; margin-bottom: 14px; }
.ft-address { font-style: normal; font-size: 13.5px; line-height: 1.85; color: #a9a1c9; }
.ft-address a { color: #a9a1c9; text-decoration: none; transition: color .25s; }
.ft-address a:hover { color: #fff; }
.ft-col-title { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
footer .footer-links { display: grid; gap: 10px; }
footer .footer-links a { font-size: 14px; letter-spacing: 0; color: #a9a1c9; }
footer .footer-links a:hover { color: #fff; }
footer .social-links a { border-color: rgba(201,187,246,.3); color: #e9e3ff; }
footer .social-links a:hover { background: rgba(201,187,246,.14); border-color: #c9bbf6; color: #fff; }
footer .footer-copy { border-top-color: rgba(201,187,246,.16); color: #8f87b3; font-size: 13px; }
.ft-legal { display: flex; gap: 18px; }
.ft-legal a { color: #8f87b3; text-decoration: none; transition: color .25s; }
.ft-legal a:hover { color: #fff; }

/* ══ 15. RESPONSIVE ══════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .so-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .px-wrap { grid-template-columns: 1fr; }
  .px-head { max-width: 620px; }
}
@media (max-width: 1080px) {
  .sx-wrap { grid-template-columns: 1fr; gap: 40px; }
  .sx-head { position: static; max-width: 640px; }
  .hx-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hx-stats li:nth-child(3) { border-left: none; }
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  #enjeux, #about, #services, #ia-automations, #realisations, #process,
  #tech, #outils-gratuits, #faq-home, #zone { padding: 80px 22px; }
  #solutions { padding: 0 14px; }

  #hero { padding: 104px 22px 40px; }
  .hx-inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hx-title { font-size: clamp(38px, 10.5vw, 54px); }
  .hx-baseline { font-size: 16px; margin-bottom: 28px; }
  #hero .hero-actions .btn-primary, #hero .hero-actions .btn-ghost { flex: 1 1 auto; justify-content: center; }
  .hx-visual { margin-top: 18px; }
  .hx-cat { max-width: 440px; margin: 0 auto; }
  .hx-card { top: -10px; right: 0; padding: 12px 14px; }
  .hx-card li, .hx-card-title { font-size: 12px; }
  .hx-slash { top: auto; bottom: 0; height: 46%; transform-origin: bottom left; }
  .hx-slash--1 { left: 30%; width: 90px; }
  .hx-slash--2 { left: calc(30% + 110px); width: 120px; }
  .hx-stats { padding: 14px 6px; border-radius: 20px; }
  .hx-stats li { flex-direction: column; text-align: center; gap: 8px; padding: 6px 8px; }
  .hx-stat-icon { width: 40px; height: 40px; border-radius: 12px; }
  .hx-stats strong { font-size: 18px; }
  .hx-stats small { font-size: 12px; }

  .sx-grid { grid-template-columns: 1fr; }
  .sx-card--feature { grid-template-columns: 1fr; padding: 28px 24px; }
  .sx-card--feature .sx-list { grid-column: 1; grid-row: auto; margin-top: 20px; }

  .so-wrap { padding: 40px 22px; border-radius: 26px; }
  .so-head { grid-template-columns: 1fr; }
  .so-sub, .so-head .btn-ghost { grid-column: 1; grid-row: auto; }
  .so-title { margin-bottom: 14px; }
  .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .so-card:last-child { grid-column: 1 / -1; }
  .so-logo { display: none; }
  .so-body { padding: 12px 12px 14px; }
  .so-card:last-child .so-media { aspect-ratio: 16 / 8; }

  .px-steps { grid-template-columns: 1fr; gap: 26px; }
  .px-steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, #5b42b8 0%, #a78ff0 100%); }
  .px-step { padding-left: 78px; }
  .px-icon { position: absolute; left: 0; top: 0; margin: 0; }

  .ab-head { grid-template-columns: 1fr; gap: 0; }
  .about-text { grid-column: 1; grid-row: auto; margin-top: 18px; }

  #contact { margin: 0 8px; padding: 72px 22px; border-radius: 28px 28px 0 0; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  footer .footer-copy { flex-direction: column; gap: 10px; }
}
@media (max-width: 520px) {
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .so-card:last-child .so-media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-eyebrow, .hx-title, .hx-baseline, #hero .hero-actions, .hx-cat, .hx-card, .hx-stats {
    opacity: 1; animation: none;
  }
}
footer nav.ft-col { padding: 0; position: static; display: block; background: none; border: none; }


/* ══ 16. HERO NUIT ÉTOILÉ ════════════════════════════════════════════
   Bénito tient au thème « espace » : le hero reprend le fond violet nuit,
   le ciel étoilé (#heroStars) et la planète, dans la continuité de la
   page de chargement, avec la mise en page de la refonte.             */
#hero.theme-nuit {
  background:
    radial-gradient(ellipse 60% 70% at 78% 35%, rgba(122,92,230,.38) 0%, transparent 62%),
    radial-gradient(ellipse 45% 50% at 10% 85%, rgba(122,92,230,.18) 0%, transparent 60%),
    linear-gradient(160deg, #111118 0%, #1a1440 55%, #120f2a 100%);
  color: #fff;
}
#hero.theme-nuit .hx-title { color: #fff; }
#hero.theme-nuit .hx-title em {
  background: linear-gradient(100deg, #d9cdfc 0%, #b8a8e8 55%, #9d86f0 100%);
  -webkit-background-clip: text; background-clip: text;
}
#hero.theme-nuit .hx-title em::after { background: linear-gradient(90deg, #b8a8e8, #7a5ce6); }
#hero.theme-nuit .hx-eyebrow { color: #c9bbf6; }
#hero.theme-nuit .hx-eyebrow::before { background: #c9bbf6; }
#hero.theme-nuit .hero-title-geo { color: #b0accc; }
#hero.theme-nuit .hero-title-geo b { color: #d4caf5; }
#hero.theme-nuit .hx-baseline { color: #e2ddd4; }
#hero.theme-nuit .btn-primary { background: #fff; color: var(--violet-deep); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
#hero.theme-nuit .btn-primary:hover { background: #fff; color: var(--violet); }
#hero.theme-nuit .hx-slash--1 { background: linear-gradient(180deg, rgba(167,143,240,.35) 0%, rgba(167,143,240,.05) 100%); }
#hero.theme-nuit .hx-slash--2 { box-shadow: 0 40px 90px -30px rgba(122,92,230,.6); }
#hero.theme-nuit .hx-glow { background: radial-gradient(ellipse, rgba(122,92,230,.35) 0%, transparent 70%); }
#hero.theme-nuit .hx-cat { filter: drop-shadow(0 30px 45px rgba(0,0,0,.55)); }
#hero.theme-nuit .hx-card { border-color: rgba(201,187,246,.35); }
#hero .hx-planet { top: 15%; right: auto; left: 44%; width: 120px; height: 120px; opacity: .85; }
.hx-planet::before { width: 185px; height: 40px; }
#hero.theme-nuit .hx-stats {
  background: rgba(255,255,255,.06);
  border-color: rgba(201,187,246,.2);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.6);
}
#hero.theme-nuit .hx-stats li + li { border-left-color: rgba(201,187,246,.18); }
#hero.theme-nuit .hx-stat-icon { background: rgba(184,168,232,.14); color: #d4caf5; }
#hero.theme-nuit .hx-stats strong { color: #fff; }
#hero.theme-nuit .hx-stats small { color: #b0accc; }
/* Les étoiles ne doivent briller que sur le hero : le canvas est fixe et
   couvrirait les sections claires une fois le hero dépassé. */
#heroStars { z-index: 1; }
#hero.theme-nuit .hx-inner, #hero.theme-nuit .hx-stats { z-index: 3; }
@media (max-width: 900px) {
  #hero .hx-planet { left: auto; right: 22px; top: 150px; width: 58px; height: 58px; opacity: .8; }
  .hx-planet::before { width: 100px; height: 22px; }
}

/* ══ 17. DÉGRADÉS, MOINS DE BLANC ═══════════════════════════════════
   Novembre 2026. Les sections claires alternent deux dégradés (aube
   lavande, crépuscule lilas) avec des halos colorés ; les cartes ne sont
   plus blanches mais en verre lavande teinté. Variables dans brand.css. */
:root {
  --violet-soft: #e4dcfb;
  --card-tint: linear-gradient(155deg, rgba(250,247,255,.92) 0%, rgba(233,225,253,.88) 100%);
  --card-tint-hover: linear-gradient(155deg, rgba(252,250,255,.96) 0%, rgba(238,231,255,.94) 100%);
}
body { background: var(--sky-page) !important; }

/* Fonds des sections claires */
#services { background: radial-gradient(ellipse 50% 60% at 100% 0%, rgba(214,140,210,.20) 0%, transparent 60%), var(--sky-dawn) !important; }
#enjeux { background: radial-gradient(ellipse 55% 60% at 0% 50%, rgba(122,92,230,.16) 0%, transparent 60%), transparent !important; }
#solutions { background: linear-gradient(180deg, transparent 0%, rgba(214,200,255,.35) 100%) !important; }
#ia-automations { background: radial-gradient(ellipse 45% 55% at 0% 100%, rgba(214,140,210,.18) 0%, transparent 60%), var(--sky-dusk) !important; }
#process { background: radial-gradient(ellipse 50% 60% at 100% 30%, rgba(122,92,230,.16) 0%, transparent 60%), transparent !important; }
#about { background: radial-gradient(ellipse 50% 60% at 100% 50%, rgba(214,140,210,.14) 0%, transparent 60%), var(--sky-dawn) !important; }
#outils-gratuits { background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(214,140,210,.18) 0%, transparent 60%), transparent !important; }
#tech { background: radial-gradient(ellipse 50% 60% at 0% 80%, rgba(122,92,230,.16) 0%, transparent 60%), var(--sky-dusk) !important; }
#faq-home { background: transparent !important; }
#zone { background: radial-gradient(ellipse 50% 60% at 10% 90%, rgba(122,92,230,.16) 0%, transparent 60%), var(--sky-dawn) !important; }

/* Cartes : verre lavande au lieu du blanc */
:is(.diff-card, .real-card, .outil-card, .zone-card, .tech-item, .sx-card:not(.sx-card--feature):not(.sx-card--ask), .enjeu-row, .ia-ba-row, .n8n-band, .faq-item) {
  background: var(--card-tint) !important;
  border: 1px solid rgba(122,92,230,.18);
}
:is(.diff-card, .real-card, .outil-card, .zone-card, .tech-item, .sx-card:not(.sx-card--feature):not(.sx-card--ask)):hover {
  background: var(--card-tint-hover) !important;
}
.sx-card.sx-card--ask { background: linear-gradient(160deg, rgba(233,225,253,.7) 0%, rgba(242,226,246,.7) 100%); }
.px-icon { background: #f4efff; box-shadow: 0 0 0 6px #ebe3fd, 0 10px 24px -8px rgba(91,66,184,.45); }
.btn-ghost { background: rgba(244,239,255,.7); }
.btn-ghost:hover { background: #f4efff; }

/* ── Nos projets : les projets de la page Projets + « toutes les fiches » ── */
.so-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.so-media { aspect-ratio: 16 / 10.5; }
.so-card--more {
  justify-content: center; align-items: center; gap: 16px; padding: 28px 20px; text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(167,143,240,.35) 0%, transparent 70%), rgba(255,255,255,.04);
  border-style: dashed;
}
.so-card--more .so-go { align-self: center; margin: 0; }
.so-more-label { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
@media (max-width: 1180px) { .so-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* FAQ de l'accueil : chaque question est une carte arrondie avec de l'air
   à l'intérieur (le texte collait au bord gauche). */
#faqHome { display: grid; gap: 12px; }
#faqHome .faq-item {
  border-radius: 18px;
  border: 1px solid rgba(122,92,230,.18) !important;
  box-shadow: 0 1px 2px rgba(45,35,90,.04), 0 10px 26px -14px rgba(61,42,143,.22);
  overflow: hidden;
}
#faqHome .faq-q { padding: 22px 64px 22px 28px; }
#faqHome .faq-q::after { right: 26px; }
#faqHome .faq-a p { padding: 0 28px 24px 28px; }
@media (max-width: 600px) {
  #faqHome .faq-q { padding: 18px 52px 18px 20px; font-size: 15px; }
  #faqHome .faq-q::after { right: 18px; }
  #faqHome .faq-a p { padding: 0 20px 20px 20px; }
}
