* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #181818;
  min-height: 100px;
  overflow: visible;
  z-index: 100;
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 40px;
  overflow: visible;
}

#Logoheader {
  height: 80px;
  width: auto;
  position: relative;
  z-index: 101;
}
.menu { 
    display: flex;
    justify-content: center; 
    width: 100%; 
}

/* Le sélecteur enfant direct ne cible que le ul principal, pas les sous-menus. */
.menu > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 20px;
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
header li {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

nav a {
  text-decoration: none;
  color: #ffffff;
}

.nav-link {
  background-color: #181818;
  padding: 20px 30px;
  font-size: 20px;
  border-radius: 20px;
  display: block;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.nav-link:hover {
  background-color: #323232;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Body */
body {
  background-color: #fbf1e8;
  font-family: Georgia, "Times New Roman", serif;
  /* Footer collé en bas : body en colonne pleine hauteur, avec header,
     .page-content et footer pour enfants directs. Seul .page-content grandit. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Conteneur entre header et footer, ouvert dans header.php et fermé dans
   footer.php. */
.page-content {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: beige;
  background-position: center;
  background-size: cover;
  background-image: url("../pic/foyer_bg.jpg");
  background-attachment: fixed;
}

.hero h1 {
  font-size: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  color: #fff;
}

.hero span {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* Boutons */
.button {
  background-color: #30a007;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #4cc520;
  transform: scale(1.05);
}

/* Formulaires publics */
.error {
  background-color: #f8d7da;
  color: #842029;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.success {
  background-color: #e6f9e0;
  color: #1e7a00;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Lien « mot de passe oublié », sous le formulaire de connexion. */
.login-oubli {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.login-oubli a {
  color: #30a007;
}

.register {
  max-width: 600px;
  margin: 60px auto;
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.register_form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.register label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #353434;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-weight: bold;
  padding: 0.2%;
}

.register input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field input[type="checkbox"] {
    width: auto;
    display: inline;
}
.field input {
  width: 100%;
}
.full_width {
  grid-column: span 2;
}

/* Menu / submenu */
.menu-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #353434;
  min-width: 200px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  flex-direction: column;
  gap: 0;
}

.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 0;
  white-space: nowrap;
}

.menu-item:hover .submenu {
  display: flex;
}

/* Footer */
footer {
  background-color: #353434;
  color: #ffffff;
  padding: 24px 0 14px;
  /* Ne se comprime pas : seul .page-content grandit. */
  flex-shrink: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px 40px;
  align-items: start;
}

.footer-nom {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: Cambria, Georgia, serif;
}
.footer-infos p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #cccccc;
}
.footer-infos a {
  color: #cccccc;
  text-decoration: none;
}
.footer-infos a:hover {
  color: #30a007;
}
.footer-legal a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
}
.footer-legal a:hover {
  color: #30a007;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-texte {
  grid-column: 1 / -1;
  border-top: 1px solid #505050;
  padding-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}
.footer-credit {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #888888;
}
.footer-credit p {
  margin: 0;
}

/* Bandeau de tête des sections */
.page-hero {
  background-color: #353434;
  color: #ffffff;
  padding: 60px 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-family: Cambria, Georgia, serif;
}
.page-hero p {
  font-size: 18px;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

/* Grille d'articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background-color: #faf4ef;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #faf4ef;
  max-height: 400px;
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.article-card-body h2 {
  font-size: 20px;
  color: #353434;
}
.article-card-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.empty-message {
  text-align: center;
  color: #888;
  font-size: 18px;
  padding: 60px 0;
}

/* Article single */
.article-single {
  max-width: 800px;
}

.breadcrumb {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}
.breadcrumb a {
  color: #30a007;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.article-single h1 {
  font-size: 38px;
  color: #353434;
  margin-bottom: 10px;
}
.article-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}

.article-img {
  width: auto;
  max-width: 500px;
  max-height: none;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto 30px;
  display: block;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

/* Contact */
.contact-container {
  max-width: 1000px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.contact-card {
  background: #faf4ef;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.contact-card h3 {
  font-size: 18px;
  color: #353434;
  margin-bottom: 12px;
  font-family: Cambria, Georgia, serif;
}
.contact-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 6px;
}
.contact-card a {
  color: #30a007;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

.horaires-section,
.adresse-section {
  margin-bottom: 50px;
}
.horaires-section h2,
.adresse-section h2 {
  font-size: 28px;
  color: #353434;
  margin-bottom: 20px;
  font-family: Cambria, Georgia, serif;
}

.horaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.horaire-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
}
.horaire-card h3 {
  font-size: 16px;
  color: #353434;
  margin-bottom: 8px;
  font-family: Cambria, Georgia, serif;
}
.horaire-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.adresse-section p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.contact-form-section {
  margin-top: 50px;
  margin-bottom: 50px;
}
.contact-form-section h2 {
  font-size: 28px;
  color: #353434;
  margin-bottom: 24px;
  font-family: Cambria, Georgia, serif;
}

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.contact-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #30a007;
}

/* Newsletter */
.newsletter-container {
  max-width: 600px;
}

.newsletter-form-wrapper {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.newsletter-form-wrapper h2 {
  font-size: 24px;
  color: #353434;
  margin-bottom: 10px;
  font-family: Cambria, Georgia, serif;
}
.newsletter-form-wrapper p {
  color: #666;
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Home layout */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}

.home-article-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #fffcfa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
  transition:
    opacity 0.5s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.home-article-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fffcfa;
}

.home-article-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-article-section a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #30a007;
  text-decoration: none;
}
.home-article-body h2 {
  font-size: 20px;
  color: #353434;
  font-family: Cambria, Georgia, serif;
}
.home-article-body h2 a {
  color: inherit;
  text-decoration: none;
}
.home-article-body h2 a:hover {
  color: #30a007;
}
.home-article-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex: 1;
}
.home-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #999;
}
.btn-lire-plus {
  color: #30a007;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.btn-lire-plus:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.pagination a {
  padding: 8px 16px;
  border-radius: 8px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.pagination a.active,
.pagination a:hover {
  background: #30a007;
  color: #fff;
}

/* Sidebar */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #fffcfa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.sidebar-widget h3 {
  font-size: 15px;
  font-weight: 700;
  color: #353434;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #30a007;
  font-family: Cambria, Georgia, serif;
}

.sidebar-horaire {
  margin-bottom: 12px;
}
.sidebar-horaire strong {
  font-size: 13px;
  color: #353434;
  display: block;
  margin-bottom: 4px;
}
.sidebar-horaire p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.sidebar-contact {
  margin-bottom: 12px;
}
.sidebar-contact strong {
  font-size: 13px;
  color: #353434;
  display: block;
  margin-bottom: 4px;
}
.sidebar-contact p {
  font-size: 13px;
}
.sidebar-contact a {
  color: #30a007;
  text-decoration: none;
}
.sidebar-contact a:hover {
  text-decoration: underline;
}

.sidebar-newsletter p {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

.social-link {
  display: block;
  padding: 8px 12px;
  background: #fffcfa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.social-link:hover {
  background: #30a007;
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  nav.menu ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #353434;
    padding: 10px 0;
    z-index: 100;
    gap: 0;
  }

  nav.menu ul.open {
    display: flex;
  }
  nav.menu ul li {
    width: 100%;
  }

  nav.menu ul li a.nav-link {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 16px;
    display: block;
  }

  .submenu {
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #2a2a2a !important;
    display: none !important;
    flex-direction: column !important;
  }

  .menu-item.open .submenu {
    display: flex !important;
  }
  .submenu a {
    padding-left: 40px !important;
  }

  .home-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 20px auto;
  }
  .home-article-card {
    grid-template-columns: 1fr;
  }
  .home-article-body {
    padding: 16px;
  }
  .home-sidebar {
    order: -1;
  }

  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .horaires-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-texte {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .article-single h1 {
    font-size: 26px;
  }
  .container {
    padding: 0 20px;
    margin: 30px auto;
  }
  .article-img {
    width: 100%;
    max-width: 100%;
  }
  .home-article-card img {
    max-height: 200px;
  }
}
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-icon-link svg {
  width: 28px;
  height: 28px;
  transition: opacity 0.2s;
}
.social-icon-link:hover {
  opacity: 0.75;
}
.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-social .social-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sidebar-social .social-label {
  color: #333333;
  font-size: 14px;
  line-height: 1.2;
}
.pdf-reader-wrap {
  margin: 24px 0;
  background: #f5f5f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #2d2d2d;
  color: #fff;
}
.pdf-toolbar button {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.pdf-toolbar button:hover {
  background: rgba(255,255,255,0.22);
}
.pdf-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}
#pdf-page-info {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.pdf-toolbar a.pdf-download {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #30a007;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.pdf-toolbar a.pdf-download:hover {
  background: #278a06;
}
#pdf-canvas {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.pdf-preview-canvas {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}
.badge-pdf {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.button-lien {
  background: #4f46e5;
  margin-bottom: 8px;
}

/* Carte lien seul */
.home-lien-card {
  background: #fffcfa;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.home-lien-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.home-lien-card h2 {
  font-size: 20px;
  color: #353434;
  font-family: Cambria, Georgia, serif;
}
.home-lien-card h2 a {
  color: inherit;
  text-decoration: none;
}
.home-lien-card h2 a:hover {
  color: #30a007;
}
.home-lien-card .home-article-section a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #30a007;
  text-decoration: none;
}
.home-lien-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.home-lien-card .home-article-meta {
  font-size: 13px;
  color: #999;
  justify-content: center;
}
.badge-archive {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.section-archives-link {
  text-align: right;
  margin-bottom: 20px;
}
.btn-archives {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #856404;
  color: #856404;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.btn-archives:hover {
  background: #fff3cd;
}
.article-card--archive {
  opacity: 0.85;
}
.article-card--archive:hover {
  opacity: 1;
}
.archives-groupe {
  margin-bottom: 48px;
}
.archives-section-titre {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}
.archives-section-titre a {
  color: inherit;
  text-decoration: none;
}
.archives-section-titre a:hover {
  color: #30a007;
}
.btn-retour {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}
.btn-retour:hover {
  color: #30a007;
}
.home-archives-link {
    text-align: center;
    padding: 24px 0 32px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.home-archives-link a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.home-archives-link a:hover {
    color: #30a007;
}

/* Contenu riche des sections : intro et pages de texte libre. */
.section-intro {
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
}
.section-intro h1,
.section-intro h2,
.section-intro h3 {
    color: #353434;
    font-family: Cambria, Georgia, serif;
    margin: 18px 0 12px;
}
.section-intro p { margin-bottom: 12px; }
.section-intro ul,
.section-intro ol { margin: 0 0 12px 22px; }
.section-intro a { color: #30a007; }

/* Partenaires */
.partenaires-container {
    padding-top: 40px;
    padding-bottom: 50px;
}
.partenaires-vide {
    text-align: center;
    color: #777;
    padding: 30px 0;
}
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.partenaire-carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #faf4ef;
    border-radius: 12px;
    padding: 22px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: #353434;
    transition: transform 0.15s, box-shadow 0.15s;
}
a.partenaire-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
/* Boîte de taille fixe : le logo garde ses proportions quelle que soit
   l'image source. */
.partenaire-logo {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.partenaire-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.partenaire-logo-vide {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #30a007;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partenaire-nom {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}