/* ===== Nos Entités — Nouvelle présentation propre, professionnelle et épurée ===== */
/* Palette (utilise celles globales si présentes) */
:root {
  --neo-bg: #ffffff;
  --neo-text: #1d2c4a;
  --neo-muted: #3a4a6b;
  --neo-border: rgba(23,67,146,0.12);
  --neo-shadow: 0 10px 26px rgba(23,67,146,0.12);
  --neo-shadow-hover: 0 18px 40px rgba(23,67,146,0.18);
  --neo-accent: #FFCC00;
}

#expertise.neo-section {
  position: relative;
  padding: clamp(36px, 6vw, 84px) 4%;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.7) 0%, rgba(240, 246, 255, 0.95) 100%);
  overflow: hidden;
}

#expertise.neo-section::before {
  content: "";
  position: absolute; inset: -2px;
  pointer-events: none;
  background: radial-gradient(1000px 360px at 8% 8%, rgba(23,67,146,0.12), transparent 55%),
              radial-gradient(800px 260px at 92% 0%, rgba(255,204,0,0.10), transparent 50%),
              linear-gradient(135deg, rgba(23,67,146,0.03), rgba(255,204,0,0.03));
}

.neo-header { text-align: center; margin-bottom: clamp(22px, 4vw, 40px); }
.neo-header h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--secondary-color, #174392); }
.neo-header p { color: var(--neo-muted); opacity: 0.9; margin-top: 6px; }

/* Grid responsive épuré */
#neoEntitiesGrid.neo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

/* Carte propre et professionnelle */
.neo-card {
  background: linear-gradient(180deg, #ffffff 0%, rgba(23,67,146,0.06) 100%);
  border: 1px solid var(--neo-border);
  border-radius: 16px;
  box-shadow: var(--neo-shadow);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .35s ease, box-shadow .25s ease, opacity .35s ease;
}
.neo-card.in { transform: translateY(0); opacity: 1; }
.neo-card:hover { box-shadow: var(--neo-shadow-hover); }

.neo-media { position: relative; background: #f6f9ff; }
.neo-media img {
  display: block;
  width: 100%;
  height: 160px; /* harmonisé avec la section avantages */
  aspect-ratio: 3 / 2;
  object-fit: cover; /* remplit le cadre sans bandes */
  padding: 0;
}

.neo-body { padding: 18px; display: grid; gap: 10px; }
.neo-title { margin: 0; font-size: 1.22rem; font-weight: 800; color: var(--secondary-color, #174392); letter-spacing: .2px; }
.neo-card:hover .neo-title { color: #0d2e6f; }
.neo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.neo-tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; line-height: 1; color: #0f172a; background: rgba(255,255,255,0.8); border: 1px solid rgba(23,67,146,0.16); }
.neo-summary { margin-top: 2px; color: #2a3b5f; font-size: 1.02rem; line-height: 1.55; opacity: 0.95; }
.neo-summary em, .neo-summary strong { color: #1d2c4a; font-weight: 700; }

.neo-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
/* Bouton Voir détails — plus visible et attractif */
.neo-toggle { appearance: none; border: 1px solid rgba(23,67,146,0.18); background: linear-gradient(180deg, #f8fafc, #eef2f7); color: #0f172a; padding: 9px 14px; border-radius: 12px; cursor: pointer; font-weight: 700; box-shadow: 0 4px 10px rgba(23,67,146,0.10); transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.neo-toggle:hover { background: linear-gradient(180deg, #ffffff, #eef2f7); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23,67,146,0.15); border-color: rgba(23,67,146,0.28); }
.neo-toggle[aria-expanded="true"] { background: linear-gradient(180deg, #e9eef6, #dde4ee); border-color: rgba(23,67,146,0.35); }
.neo-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(23,67,146,0.2); }
/* CTA Découvrir — vrai bouton call-to-action avec animation de survol */
.neo-cta { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; padding: 10px 16px; border-radius: 12px; color: #0f172a; background: linear-gradient(180deg, #ffd84a, var(--neo-accent)); box-shadow: 0 8px 20px rgba(255, 204, 0, 0.35); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.neo-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 204, 0, 0.45); filter: brightness(1.04); }
.neo-cta:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35); }
.neo-cta i { transition: transform .28s cubic-bezier(.2,.7,.2,1.1); }
.neo-cta:hover i { transform: translateX(6px) scale(1.06); }
/* Effet de "sheen" subtil au survol */
.neo-cta::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0) 50%); opacity: 0; transform: translateX(-20%); transition: opacity .25s ease, transform .8s ease; pointer-events: none; }
.neo-cta:hover::after { opacity: 1; transform: translateX(120%); }

/* Panneau de détails fluide */
.neo-panel {
  border-top: 1px solid var(--neo-border);
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
  box-shadow: inset 0 1px 0 rgba(23,67,146,0.08);
  border-radius: 0 0 16px 16px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, transform .35s ease;
}
.neo-panel.open { opacity: 1; transform: translateY(0); }
.neo-desc { color: #2a3b5f; margin: 4px 0 14px; font-size: 0.98rem; line-height: 1.6; }
.neo-services { background: rgba(23,67,146,0.03); border: 1px solid var(--neo-border); border-radius: 12px; padding: 12px 12px; }
.neo-services h4 { margin: 0 0 10px; color: var(--secondary-color, #174392); font-size: 1rem; font-weight: 700; }
.neo-services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.neo-services li { display: flex; gap: 10px; align-items: flex-start; color: var(--neo-text); }
.neo-services li i { color: var(--neo-accent); margin-top: 2px; font-size: 16px; }
.neo-contact { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; row-gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(23,67,146,0.18); }
.neo-contact a { color: var(--secondary-color, #174392); font-weight: 600; text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.neo-contact a:hover { color: #0d2e6f; border-bottom-color: rgba(13, 46, 111, 0.35); }
.neo-contact i { color: #334155; }

@media (max-width: 640px) {
  #expertise.neo-section { padding: 32px 4%; }
  #neoEntitiesGrid.neo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .neo-card, .neo-toggle, .neo-panel { transition: none !important; }
  .neo-card { transform: none !important; }
}