.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), background var(--transition);

  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.news-card__image {
  height: 180px;
  background: #2a2f38;
}

.news-card__body {
  padding: 1.5rem;
  flex-grow: 1;
}

.news-card__meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.news-card__title {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.news-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-card__cta {
  display: block;
  text-align: center;
  padding: 0.9rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.news-card__cta:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 8px rgba(58, 166, 201, 0.18);
}

.news-card.loading .loader {
  width: 40px;
  margin: 2rem auto;
  display: block;
  animation: spin 1.2s linear infinite;
  opacity: 0.7;
}

.news-card__image {
  height: 180px;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__title{
  text-align: left;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;

  display: flex; 
  flex-direction: column; 
  justify-content: space-between;

  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.result-card__content {
  padding: 1.5rem;
  text-align: center;
}

.result-card__cta {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;

  margin-top: auto; /* pousse vers le bas */
}

.result-card__cta:hover{
  background-color: var(--accent-hover);
  box-shadow: 0 4px 8px rgba(58, 166, 201, 0.18);
}
.home-top {
  padding: 5rem 0;
}

.home-top__grid {
  display: grid;
  grid-template-columns: 3fr 7fr;
  min-height: 650px; 
  gap: 3rem;
}

.home-hero-card {
  background: var(--hero-color);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.home-hero-card h1 {
  font-size: 2rem;
  font-weight: 700;
}

.home-hero-card img {
  max-width: 80%;
  align-self: center;
}

.home-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}

.action-main {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.action-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.action-card {
  flex: 1;
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-main);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  transition: 0.25s ease;
  background-color: var(--bg-card-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.action-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.action-card span {
  font-weight: 900;
  font-size: 1.25rem;
}

.action-card:hover {
  background: var(--bg-card-hover);
}

.action-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: black;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-align: center;
}

.home-hero-card h1 {
  line-height: 1;
  margin-bottom: 0.4rem;
}

.home-hero-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.hero-text {
  margin-bottom: 1.5rem;
}

.home-hero-card img {
  margin-bottom: auto;
  margin-top: auto;        /* pousse le logo vers le bas */
  align-self: center;
  max-height:90%;         /* prend un max d’espace */
  object-fit: contain;
}

.action-main h2{
  margin-bottom: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
  .section{
    margin-top: 0;
  }
  
  .home-top__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-actions {
    grid-template-rows: auto;
    gap: 1rem;
  }

  .home-hero-card img {
    height: 0;
  }

  .home-hero-card, .home-actions > div{
    min-height: 0;
    padding: 1.5em;
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .action-secondary {
    grid-template-columns: 1fr;
    padding: 0 !important;
    gap: 1rem;
  }

  .action-cards {
    flex-direction: column;
  }

  .action-main h2{
    margin-bottom: 20px;
  }

  h2, h3{
    text-align: center;
  }

  .section-header{
    margin-bottom: 1em;
  }

  .section-header .btn-outline{
    display: none;
  }

  .hero-subtitle{
    margin-bottom: 0;
    color: rgba(0,0,0,0.85);
  }
}
