/* === HOME — SECTIONS SPÉCIFIQUES === */

/* --- Services preview --- */
.home-services__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .home-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-services__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}

.home-services__card h3 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  line-height: 1.3;
}

.home-services__card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.home-services__card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent-dark);
  margin-top: auto;
  transition: gap 150ms ease;
}

.home-services__card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.home-services__card:hover .home-services__card-link {
  gap: var(--space-3);
}

.home-services__card:hover .home-services__card-link svg {
  transform: translateX(3px);
}

/* --- Teasers Formation + Consulting --- */
.home-teasers {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .home-teasers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-teaser {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-height: 320px;
  text-decoration: none;
  color: var(--color-text-inverse);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
}

.home-teaser:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.home-teaser--formation {
  background: linear-gradient(145deg, #1B3A5C 0%, #2BA896 100%);
}

.home-teaser--consulting {
  background: linear-gradient(145deg, #0d2237 0%, #1B3A5C 100%);
}

.home-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}

.home-teaser__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.home-teaser__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.home-teaser__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-teaser__tag {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.home-teaser__content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-inverse);
  line-height: 1.2;
}

.home-teaser__content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.home-teaser__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  transition: gap 150ms ease;
  text-decoration: none;
}

.home-teaser__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.home-teaser:hover .home-teaser__cta svg {
  transform: translateX(4px);
}

/* --- Ressources preview (home) --- */
.home-ressources__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .home-ressources__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-ressources__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-ressource-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.home-ressource-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(62,207,178,0.10), rgba(27,58,92,0.06));
  border: 1px solid rgba(62,207,178,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.home-ressource-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.home-ressource-card:hover .home-ressource-card__icon {
  background: linear-gradient(135deg, rgba(62,207,178,0.2), rgba(27,58,92,0.12));
  border-color: rgba(62,207,178,0.35);
}

.home-ressource-card__body h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.4;
  margin-bottom: var(--space-1);
  transition: color 150ms ease;
}

.home-ressource-card:hover .home-ressource-card__body h4 {
  color: var(--color-accent-dark);
}

.home-ressource-card__body span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
}

/* Section footer link */
.section__cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* About teaser (home) */
.home-about {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .home-about {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.home-about__text .section__subtitle {
  margin-bottom: var(--space-6);
}

.home-about__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.home-about__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.home-about__point svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.home-about__visual {
  display: flex;
  justify-content: center;
}

.home-about__card {
  background: linear-gradient(145deg, #0a1929, #1B3A5C);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  color: var(--color-text-inverse);
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.home-about__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: 24px 24px;
  opacity: 0.4;
}

.home-about__card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

.home-about__card-items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-about__card-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}

.home-about__card-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}
