
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

/* ==========================================
   ENTRAIDE FRANCE SOLIDARITE
   STYLE GENERAL - VERSION INSTITUTIONNELLE
========================================== */

:root {
  --navy: #102f55;
  --navy-dark: #0a2342;
  --blue: #1956a3;
  --blue-hover: #124482;
  --blue-light: #edf4fc;
  --red: #d92d3b;
  --white: #ffffff;
  --background: #ffffff;
  --surface: #f5f7fa;
  --border: #dfe5ec;
  --text: #202d3d;
  --muted: #607083;
  --radius: 8px;
  --shadow: 0 8px 30px rgba(15, 39, 69, 0.06);
  --container: 1200px;
}

/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.2;
  color: var(--navy-dark);
}

h2 {
  font-size: clamp(29px, 3vw, 39px);
  letter-spacing: -0.8px;
}

p {
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* ==========================================
   BARRE SUPERIEURE
========================================== */

.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 13px;
}

.topbar-inner {
  min-height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar a:hover {
  color: #d6e6fa;
}

/* ==========================================
   HEADER ET NAVIGATION
========================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

/* LOGO ROND NAVBAR */

.brand img {
  width: 65px;
  height: 65px;
  min-width: 65px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
  border: 1px solid #dfe5ec;
  box-shadow: 0 3px 12px rgba(16, 47, 85, 0.08);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.brand:hover img {
  box-shadow: 0 5px 18px rgba(16, 47, 85, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.main-nav > a {
  font-size: 14px;
  font-weight: 700;
  color: #354458;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav > a:hover,
.main-nav > a.active {
  color: var(--blue);
}

.main-nav > a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.main-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 12px 17px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.main-nav .nav-cta:hover {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
}

/* ==========================================
   BOUTONS
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: var(--navy);
}

.btn-outline {
  background: var(--white);
  border: 1px solid #aebccc;
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}

.btn-white:hover {
  background: #eaf0f8;
}

/* ==========================================
   HERO - ACCUEIL
========================================== */

.hero {
  padding: 94px 0 100px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(340px, 0.85fr);
  gap: 85px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 4.5vw, 66px);
  letter-spacing: -2px;
  max-width: 700px;
}

.hero h1 span {
  color: var(--blue);
  display: block;
}

.hero-description {
  font-size: 18px;
  max-width: 610px;
  margin-top: 26px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 25px;
  font-size: 13px;
}

/* ==========================================
   CARTE D'ORIENTATION
========================================== */

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.hero-card > p {
  font-size: 15px;
  margin-bottom: 25px;
}

.quick-links {
  border-top: 1px solid var(--border);
}

.quick-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s ease;
}

.quick-links a:hover {
  color: var(--blue);
}

.quick-links a span:last-child {
  color: var(--blue);
  font-size: 20px;
}

.hero-card-footer {
  margin-top: 22px;
  padding: 14px;
  background: #fff5f5;
  border-left: 3px solid var(--red);
  color: #8d2530;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================
   BANDEAU D'INFORMATION
========================================== */

.notice-section {
  padding: 28px 0;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #f1f6fd;
  border-left: 4px solid var(--blue);
  padding: 23px 28px;
}

.notice strong {
  color: var(--navy);
  font-size: 17px;
}

.notice p {
  font-size: 14px;
  margin-top: 4px;
}

.notice-link {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.notice-link:hover {
  text-decoration: underline;
}

/* ==========================================
   SECTIONS GENERALES
========================================== */

.section {
  padding: 90px 0;
}

.section-muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 35px;
}

.section-heading p {
  margin-top: 15px;
  max-width: 680px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==========================================
   CARTES DES RESSOURCES
========================================== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.resource-card:hover {
  border-color: #9ab6d9;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 22px;
}

.resource-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.resource-card p {
  font-size: 15px;
  min-height: 72px;
}

.card-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  margin-top: 20px;
}

/* ==========================================
   PRESENTATION EFS
========================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.about-grid h2,
.join-grid h2 {
  margin-bottom: 23px;
}

.about-grid p,
.join-grid p {
  margin-bottom: 18px;
  font-size: 16px;
}

.about-grid .btn,
.join-grid .btn {
  margin-top: 14px;
}

.values-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 32px;
}

.value-item {
  display: flex;
  gap: 22px;
  padding: 25px 0;
}

.value-item + .value-item {
  border-top: 1px solid var(--border);
}

.value-number {
  color: var(--blue);
  font-size: 23px;
  font-weight: 800;
}

.value-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.value-item p {
  margin: 0;
  font-size: 14px;
}

/* ==========================================
   REJOINDRE NOS EQUIPES
========================================== */

.join-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
}

.join-panel {
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
}

.join-panel h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.join-panel ul {
  padding-left: 20px;
}

.join-panel li {
  margin-bottom: 14px;
  color: var(--text);
}

/* ==========================================
   BANDEAU CONTACT
========================================== */

.cta-section {
  background: var(--navy);
  padding: 55px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.cta-section .section-label {
  color: #b8d4f6;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: #d6e1ef;
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
  background: #0b213c;
  color: var(--white);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 65px;
}

/* LOGO ROND FOOTER */

.footer-brand img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  border-radius: 50%;
  padding: 9px;
  border: 2px solid #dfe7f1;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
  margin-bottom: 18px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #b7c5d5;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 23px;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  color: #b7c5d5;
  font-size: 14px;
  margin-bottom: 13px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #29415e;
  padding: 22px 0;
  font-size: 13px;
  color: #aabbd0;
}

/* ==========================================
   ACCESSIBILITE ET ANIMATIONS
========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==========================================
   EFS - PAGES INTERIEURES
========================================== */

.page-hero {
  background: #f5f8fc;
  border-bottom: 1px solid var(--border);
  padding: 65px 0;
}

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
}

.content-section {
  padding: 80px 0;
}

.content-section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.content-section h2 {
  margin-bottom: 22px;
}

.content-section p {
  margin-bottom: 17px;
}

.content-narrow {
  max-width: 850px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.info-card .card-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  background: var(--blue-light);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 15px;
  margin: 0;
}

.content-list {
  padding-left: 22px;
  color: var(--text);
  margin: 20px 0;
}

.content-list li {
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.team-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 22px;
  border: 2px solid #dce7f5;
}

.team-card h3 {
  font-size: 21px;
  margin-bottom: 5px;
}

.team-role {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.team-card p {
  font-size: 14px;
  margin-top: 15px;
}

.info-banner {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 25px 30px;
  margin-top: 30px;
}

.info-banner strong {
  color: var(--navy);
}

.info-banner p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .info-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 45px 0;
  }

  .page-hero p {
    font-size: 16px;
  }

  .info-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 50px 0;
  }

  .info-card,
  .team-card {
    padding: 24px;
  }
}



/* ==========================================
   EFS - CARTE DU FONDATEUR
========================================== */

.team-discord {
  display: inline-block;
  background: #edf4fc;
  color: #1956a3 !important;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 13px !important;
  font-weight: 700;
  margin-top: 10px !important;
}

.team-card {
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 8px 25px rgba(16, 47, 85, 0.08);
  transform: translateY(-3px);
}


/* ==========================================
   EFS - CENTRE DE RESSOURCES
========================================== */

.resources-intro {
  margin-bottom: 30px;
}

.resources-intro h2 {
  margin-bottom: 14px;
}

.resources-intro p {
  max-width: 720px;
}

.resources-search-panel {
  padding: 30px;
  background: #f5f8fc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 45px;
}

.resources-search-panel label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.resources-search-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.resources-search-row input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid #c7d2df;
  border-radius: 5px;
  background: white;
  color: var(--text);
  outline: none;
}

.resources-search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 86, 163, 0.12);
}

.resources-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.resource-filter {
  background: white;
  color: #40526a;
  border: 1px solid #d4deea;
  border-radius: 5px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.resource-filter:hover {
  background: #e8f0fb;
  border-color: #a6c1e1;
}

.resource-filter.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.resources-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.resources-results-heading h2 {
  font-size: 27px;
}

.resources-results-heading p {
  font-size: 14px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.resource-result-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.resource-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.resource-category {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.resource-result-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.resource-result-card p {
  font-size: 14px;
  margin-bottom: 22px;
}

.resource-result-card a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  margin-top: auto;
}

.resource-result-card a:hover {
  text-decoration: underline;
}

.resources-empty {
  text-align: center;
  padding: 55px 25px;
  background: #f5f8fc;
  border: 1px dashed #b8c7d9;
  border-radius: var(--radius);
}

.resources-empty[hidden] {
  display: none;
}

.resources-empty h3 {
  margin-bottom: 10px;
}

@media (max-width: 1000px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resources-search-panel {
    padding: 20px;
  }

  .resources-search-row {
    flex-direction: column;
  }

  .resources-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .resources-results-heading h2 {
    font-size: 24px;
  }
}


/* ==========================================
   EFS - PAGE URGENCES
========================================== */

.efs-emergency-banner {
  background: #a91e2c;
  color: white;
  border-radius: var(--radius);
  padding: 35px;
  margin-bottom: 55px;
}

.efs-emergency-banner h2 {
  color: white;
  font-size: clamp(25px, 3vw, 34px);
  margin-bottom: 14px;
}

.efs-emergency-banner p {
  color: white;
  max-width: 750px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.efs-emergency-banner .btn {
  display: inline-flex;
}

@media (max-width: 600px) {
  .efs-emergency-banner {
    padding: 25px 20px;
    margin-bottom: 35px;
  }
}


/* ==========================================
   EFS - PAGE PUBLIQUE PARTENAIRES
========================================== */

.efs-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.efs-partners-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 65px 30px;
  background: #f7f9fc;
  border: 1px dashed #cbd6e3;
  border-radius: 10px;
}

.efs-partners-empty-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #eaf2fc;
  color: #1956a3;
  font-size: 32px;
}

.efs-partners-empty h3 {
  color: #102f55;
  font-size: 23px;
  margin-bottom: 14px;
}

.efs-partners-empty p {
  max-width: 560px;
  margin: 0 auto;
  color: #64748b;
  line-height: 1.8;
}

.efs-partner-card {
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.efs-partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16,47,85,0.08);
}

.efs-partner-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.efs-partner-category {
  display: inline-block;
  padding: 7px 11px;
  background: #eaf2fc;
  color: #1956a3;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}

.efs-partner-card h3 {
  color: #102f55;
  font-size: 21px;
  margin-bottom: 13px;
}

.efs-partner-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

.efs-partner-card a {
  display: inline-block;
  margin-top: 20px;
  color: #1956a3;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 900px) {
  .efs-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .efs-partners-grid {
    grid-template-columns: 1fr;
  }

  .efs-partners-empty {
    padding: 45px 22px;
  }
}


/* ==========================================
   EFS - NOUVEAU CENTRE DE RESSOURCES
========================================== */

.efs-library-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 32px;
}

.efs-library-heading p {
  color: #64748b;
  max-width: 650px;
}

.efs-library-count {
  padding: 12px 18px;
  background: #eaf2fc;
  border-radius: 6px;
  color: #102f55;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.efs-library-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 25px;
  margin-bottom: 30px;
  background: #f6f8fb;
  border: 1px solid #dce5ef;
  border-radius: 9px;
}

.efs-library-filters label {
  display: block;
  margin-bottom: 9px;
  color: #102f55;
  font-size: 13px;
  font-weight: 700;
}

.efs-library-filters input,
.efs-library-filters select {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #cbd6e3;
  border-radius: 6px;
  background: #fff;
  color: #20334a;
  font: inherit;
  font-size: 14px;
}

.efs-library-filters input:focus,
.efs-library-filters select:focus {
  outline: 2px solid #1956a3;
  outline-offset: 2px;
}

.efs-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.efs-resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 27px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  transition: transform .2s, box-shadow .2s;
}

.efs-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 47, 85, .08);
}

.efs-resource-badge {
  display: inline-flex;
  padding: 7px 11px;
  background: #eaf2fc;
  border-radius: 5px;
  color: #1956a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.efs-resource-theme {
  display: block;
  margin-top: 17px;
  color: #d92d3b;
  font-size: 12px;
  font-weight: 700;
}

.efs-resource-card h3 {
  margin: 11px 0 13px;
  color: #102f55;
  font-size: 20px;
  line-height: 1.4;
}

.efs-resource-card p {
  margin-bottom: 25px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.efs-resource-open {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1956a3;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.efs-resource-open:hover {
  text-decoration: underline;
}

.efs-resource-open:focus-visible {
  outline: 3px solid #83b8f1;
  outline-offset: 5px;
}

.efs-library-empty {
  grid-column: 1 / -1;
  padding: 55px 25px;
  background: #f6f8fb;
  border: 1px dashed #cbd6e3;
  border-radius: 9px;
  text-align: center;
  color: #64748b;
}

.efs-library-pagination {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.efs-library-disclaimer {
  margin-top: 35px;
  padding: 18px 22px;
  background: #f6f8fb;
  border-left: 3px solid #1956a3;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
}

/* LECTEUR INTÉGRÉ */

body.efs-reader-open {
  overflow: hidden;
}

.efs-reader[hidden] {
  display: none;
}

.efs-reader {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.efs-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 47, .7);
}

.efs-reader-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(780px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -15px 0 50px rgba(0,0,0,.15);
  outline: none;
}

.efs-reader-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 35px;
  background: #102f55;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.efs-reader-topbar button {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.efs-reader-body {
  padding: 45px;
}

.efs-reader-body h2 {
  margin: 20px 0 15px;
  color: #102f55;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.3;
}

.efs-reader-summary {
  padding-bottom: 25px;
  border-bottom: 1px solid #e4eaf1;
  color: #64748b;
  font-size: 16px;
  line-height: 1.8;
}

.efs-reader-section {
  margin-top: 34px;
}

.efs-reader-section h3 {
  margin-bottom: 14px;
  color: #102f55;
  font-size: 20px;
}

.efs-reader-section p,
.efs-reader-section li {
  color: #42566e;
  font-size: 15px;
  line-height: 1.9;
}

.efs-reader-section ol {
  padding-left: 23px;
}

.efs-reader-section li {
  margin-bottom: 9px;
}

.efs-reader-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #e4eaf1;
}

.efs-reader-sources h3 {
  flex-basis: 100%;
  color: #102f55;
  font-size: 18px;
}

.efs-reader-sources a {
  padding: 10px 14px;
  background: #eaf2fc;
  border-radius: 5px;
  color: #1956a3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.efs-reader-sources a:hover {
  background: #dceafb;
}

@media (max-width: 1000px) {
  .efs-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .efs-library-filters {
    grid-template-columns: 1fr 1fr;
  }

  .efs-library-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .efs-library-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .efs-library-filters,
  .efs-resources-grid {
    grid-template-columns: 1fr;
  }

  .efs-library-search {
    grid-column: auto;
  }

  .efs-library-filters {
    padding: 18px;
  }

  .efs-reader-body {
    padding: 28px 20px;
  }

  .efs-reader-topbar {
    padding: 16px 20px;
  }
}

/* Bouton connexion EFS */
.main-nav .nav-login,
.main-nav .nav-login:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #174a9c;
  border-radius: 8px;
  background: #ffffff;
  color: #174a9c !important;
  font-weight: 700;
  text-decoration: none;
}

.main-nav .nav-login:hover {
  background: #174a9c;
  color: #ffffff !important;
}

/* Correction bouton Obtenir de l'aide */
.main-nav .nav-cta,
.main-nav .nav-cta:visited {
  background: #174a9c;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.main-nav .nav-cta:hover {
  background: #103875;
  color: #ffffff !important;
}