/* Identité visuelle ESPAS-Sup (site actuel) */
:root {
  --paper: #ffffff;
  --paper-warm: #f7f5fc;
  --paper-dark: #ebe6f8;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --ink-mute: #4a4560;
  --ink-faint: #8a849e;
  --coral: #b31ddc;
  --coral-soft: #c94fe8;
  --mustard: #4a57df;
  --olive: #353fa8;
  --bone: #ffffff;
  --on-coral: #ffffff;
  --on-coral-soft: #ffffff;
  --on-mustard: #ffffff;
  --on-ink: #ffffff;
  --line: rgba(10, 10, 10, 0.12);
  --line-soft: rgba(10, 10, 10, 0.07);
  --line-faint: rgba(10, 10, 10, 0.04);
  --shadow: 0 30px 60px -30px rgba(74, 87, 223, 0.28);
  --paper-rgb: 255, 255, 255;
  --ink-rgb: 10, 10, 10;
  --coral-rgb: 179, 29, 220;
}

/* Texture plus légère (fond blanc cabinet) */
body::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(179, 29, 220, 0.06) 0, transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(74, 87, 223, 0.07) 0, transparent 34%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.18  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.brand-mark {
  overflow: visible;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  background: transparent !important;
  border-color: transparent !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
}
.brand-mark img {
  width: auto;
  height: 48px;
  max-width: min(280px, 68vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav.is-hidden {
  transform: translateY(-120%);
  transition: transform 0.35s ease;
}
.nav {
  transition: transform 0.35s ease, background 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94) !important;
}

.hero-art img,
.about-art img,
.capabilities-art img,
.cta-art img,
.testimonial-art img,
.lab-img img,
.method-step .img img,
.work-card .img img {
  object-fit: cover;
}

.about-art img.logo-contain,
.testimonial-art img.logo-contain,
.hero-art img.logo-contain {
  object-fit: contain;
  background: var(--paper-warm);
  padding: 1.5rem;
}

.status-dot,
.topbar-link .pulse,
.foot-bottom .pulse {
  background: var(--coral) !important;
}

.btn-primary {
  background: var(--coral) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: var(--coral) !important;
}
.btn-primary:hover {
  background: var(--coral-soft) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.nav-cta {
  background: var(--mustard) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ----- Recommandations HAS ----- */
.recommendations {
  padding: 100px 0 80px;
  background: var(--paper-warm);
}
.recommendations--info {
  border-top: 1px dashed var(--line, rgba(10,10,10,.16));
}
.reco-note {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-mute, #4a4560);
  max-width: 48ch;
}
.reco-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.reco-head .display {
  margin: 18px 0 14px;
  max-width: 16ch;
}
.reco-head .lead {
  max-width: 48ch;
  margin: 0;
}
.reco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.reco-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.reco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--coral-rgb), 0.35);
}
.reco-media {
  aspect-ratio: 4 / 3;
  background: #f0edf8;
  overflow: hidden;
}
.reco-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reco-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #f7f5fc, #ece8ff);
}
.reco-media-logo img {
  object-fit: contain;
  max-height: 70%;
  width: auto;
  max-width: 80%;
}
.reco-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.reco-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.reco-card h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.reco-card p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.reco-more {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mustard);
  margin-top: 6px;
}

/* ----- Footer ----- */
footer .foot-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
  gap: 36px !important;
}
footer .foot-col:nth-child(4),
footer .foot-col:nth-child(5) {
  display: block !important;
}
.foot-mail {
  margin-top: 14px !important;
}
.foot-mail a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--coral-rgb), 0.35);
}
.foot-mail a:hover {
  border-bottom-color: var(--coral);
}
.foot-bottom .right a {
  color: var(--ink-mute);
  text-decoration: none;
}
.foot-bottom .right a:hover {
  color: var(--coral);
}
.foot-mega { display: none !important; }

@media (max-width: 900px) {
  .container { padding: 0 22px; }
  .side-rail { display: none; }
  .hero-grid,
  .about-grid,
  .capabilities-grid,
  .cta-grid,
  .testimonial-grid,
  .reco-grid {
    grid-template-columns: 1fr !important;
  }
  .reco-head {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .foot-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  footer .foot-grid {
    grid-template-columns: 1fr !important;
  }
}
