/* =============================================================
   AI2Care — Partenaires, Distinction, Actualités LinkedIn
   Feuille additionnelle (maquette). À fusionner dans ai2care.css
   lors de l'intégration. Respecte la charte : radius 2-4 px,
   pas de dégradés plein écran, ombres nulles, accent gradient
   utilisé avec parcimonie.
   ============================================================= */

/* ---------- Badge distinction dans le hero ---------- */

.hero-award {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(10, 31, 68, 0.42);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  transition: border-color 160ms ease, background 160ms ease;
}

.hero-award:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(10, 31, 68, 0.6);
}

.hero-award-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: var(--grad-signature);
  color: var(--navy);
}

.hero-award-icon svg { width: 18px; height: 18px; }

.hero-award-text { display: flex; flex-direction: column; gap: 1px; }

.hero-award-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grad-top);
}

.hero-award-label strong { font-weight: 800; }

/* ---------- Section accueil : Distinction + Ils nous accompagnent ---------- */

.ecosystem {
  background: var(--bg-white);
  border-bottom: 1px solid var(--bg-gray-mid);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: 40px;
  align-items: stretch;
}

/* Carte distinction */

.award-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-image: url('assets/partenaires/prix-ia-2026-trophee.jpg');
  background-size: cover;
  background-position: center 40%;
  isolation: isolate;
}

.award-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.15) 0%, rgba(10, 31, 68, 0.72) 55%, rgba(10, 31, 68, 0.94) 100%);
}

.award-card .eyebrow { color: var(--grad-top); margin-bottom: 8px; }

.award-card h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.award-card .award-category {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.award-card .award-category span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--grad-signature);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.award-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }

.award-card .award-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.award-card .award-link:hover { text-decoration-color: #fff; }

/* Bandeau logos */

.ecosystem-partners { display: flex; flex-direction: column; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
}

.logo-tile {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 18px 22px;
  border: 1px solid var(--border-navy-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  transition: border-color 160ms ease;
}

.logo-tile:hover { border-color: var(--navy); }

.logo-tile img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 160ms ease, opacity 160ms ease;
}

.logo-tile:hover img { filter: none; opacity: 1; }

.logo-tile--tall img { max-height: 60px; }

.ecosystem-more {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.link-arrow svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Bouton LinkedIn ---------- */

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  border: 1.5px solid #0A66C2;
  background: #0A66C2;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease;
}

.btn-linkedin:hover { background: #004182; border-color: #004182; }

.btn-linkedin svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn-linkedin--outline {
  background: transparent;
  color: #0A66C2;
}

.btn-linkedin--outline:hover { background: #0A66C2; color: #fff; }

.btn-linkedin--sm { padding: 8px 14px; font-size: 13.5px; }
.btn-linkedin--sm svg { width: 16px; height: 16px; }

/* ---------- Section Actualités (3 derniers posts LinkedIn) ---------- */

.news .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.news .section-head > div { max-width: 640px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-gray-light);
  border-bottom: 1px solid var(--border-navy-soft);
}

.post-card-media img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.post-meta svg { width: 14px; height: 14px; color: #0A66C2; }

.post-card h3 { font-size: 18px; margin: 0; line-height: 1.3; }

.post-card p {
  margin: 0;
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .post-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
}

.news-foot {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Pages internes : en-tête de page ---------- */

.page-hero {
  padding: 64px 0 56px;
  background: var(--wash-navy);
  border-bottom: 1px solid var(--bg-gray-mid);
}

.page-hero .eyebrow { margin-bottom: 10px; }

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--navy);
}

.page-hero .section-intro { max-width: 720px; margin: 0; font-size: 17px; }

.page-hero-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Page partenaires : section distinction ---------- */

.distinction-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 48px;
  align-items: center;
}

.distinction-media {
  display: grid;
  gap: 14px;
}

.distinction-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-navy-soft);
}

.distinction-media figcaption {
  font-size: 12.5px;
  color: var(--text-muted);
}

.distinction-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.distinction-copy .award-category { margin: 0 0 20px; font-size: 16px; font-weight: 600; color: var(--text-secondary); }

.distinction-copy .award-category span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--grad-signature);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.distinction-copy p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin: 0 0 14px; }

.distinction-banner {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-navy-soft);
}

/* ---------- Page partenaires : groupes de partenaires ---------- */

.partner-group + .partner-group { margin-top: 56px; }

.partner-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-navy-soft);
}

.partner-group-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.partner-group-head p { margin: 0; color: var(--text-muted); font-size: 14px; }

.partner-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; }

.partner-card-logo {
  display: grid;
  place-items: center;
  height: 110px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--bg-gray-mid);
  border-radius: var(--radius-sm);
}

.partner-card-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }

.partner-card h3 { margin: 0; font-size: 20px; }

.partner-role {
  display: inline-block;
  align-self: flex-start;
  margin-top: -6px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--wash-green);
  border: 1px solid var(--border-green-soft);
}

.partner-card p { flex: 1; }

.partner-card .link-arrow { font-size: 14px; }

/* ---------- CTA bas de page ---------- */

.cta-band {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 15.5px; max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page blog ---------- */

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-navy-soft);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
}

.chip.is-active, .chip:hover { border-color: var(--navy); color: var(--navy); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-note {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px dashed var(--border-navy-soft);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- Footer : lien LinkedIn ---------- */

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #0A66C2;
  font-weight: 700;
  font-size: 13px;
}

.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .award-card { min-height: 280px; }
  .news-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .distinction-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 40px; }
  .hero-award { font-size: 12px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* Visuels de post de type logo (PNG) : affichage entier, sans rognage */
.post-card-media img[src$=".png"] {
  object-fit: contain;
  padding: 28px;
  background: var(--bg-white);
}

/* Logo rond (La French Care) : légèrement plus grand dans sa carte */
.partner-card-logo img[src*="-rond"],
.partner-card-logo img[src*="ars-bfc"] { max-height: 84px; }
.logo-tile img[src*="ars-bfc"] { max-height: 64px; }

/* Carte presse — « On parle de nous » */
.post-card--press { position: relative; }
.post-card--press::before {
  content: '';
  position: absolute;
  left: -1px; top: 16px; bottom: 16px;
  width: var(--stripe-thick);
  background: var(--grad-signature);
  border-radius: var(--radius-xs);
}
.post-card--press .post-meta { color: var(--accent-dark); font-weight: 700; }
.post-card--press .post-meta svg { color: var(--accent-dark); }
.post-card--press .post-card-body { padding-top: 26px; }

/* Logos cliquables (page partenaires) */
a.partner-card-logo { transition: border-color 160ms ease; }
a.partner-card-logo:hover { border-color: var(--navy); }

/* Surtitre placé en enfant direct de .section-head : neutralise la règle ".section-head > p" d'ai2care.css */
.section-head > p.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 12px;
  max-width: none;
  line-height: 1.4;
}
