/* ===================================================
   HOME CSS - Kinésiologie Equilibre
   Design diagonal créatif - Médecine naturelle
   =================================================== */

/* ---- HERO DIAGONAL ---- */
.hero {
  position: relative;
  background-color: #1a3c2e;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* Forme diagonale décorative */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background-color: #fafaf8;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Cercle décoratif fond hero */
.hero-bg-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: rgba(178,223,219,0.06);
  right: -100px;
  top: -100px;
  z-index: 1;
}
.hero-bg-circle-2 {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background-color: rgba(139,115,85,0.08);
  left: 30%;
  bottom: 20px;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(178,223,219,0.12);
  border: 1px solid rgba(178,223,219,0.25);
  color: #b2dfdb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: #b2dfdb;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero card article vedette */
.hero-featured {
  position: relative;
}
.hero-featured-card {
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(178,223,219,0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s;
}
.hero-featured-card:hover {
  transform: translateY(-4px);
}
.hero-featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.hero-featured-card-body {
  padding: 24px;
}
.hero-featured-card-body .badge {
  margin-bottom: 12px;
}
.hero-featured-card-body h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.hero-featured-card-body h3 a {
  color: #fff;
  text-decoration: none;
}
.hero-featured-card-body h3 a:hover {
  color: #b2dfdb;
}
.hero-featured-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(178,223,219,0.7);
}
.hero-featured-card-meta svg {
  flex-shrink: 0;
}

/* ---- SECTION DIAGONAL SÉPARATEURS ---- */
.diagonal-section {
  position: relative;
  background-color: #f0f5f0;
  padding: 100px 0 80px;
}
.diagonal-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #f0f5f0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---- SECTION INTRO / ABOUT STRIP ---- */
.about-strip {
  background-color: #f0f5f0;
  padding: 72px 0;
}
.about-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.about-strip-portrait {
  position: relative;
  text-align: center;
}
.about-strip-portrait img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 6px solid #fff;
  box-shadow: 0 8px 32px rgba(26,60,46,0.18);
}
.about-strip-portrait-ring {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 244px;
  height: 244px;
  border-radius: 50%;
  border: 2px dashed rgba(139,115,85,0.35);
}
.about-strip-text .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 12px;
  display: block;
}
.about-strip-text h2 {
  font-size: 2rem;
  color: #1a3c2e;
  margin-bottom: 16px;
  font-weight: 800;
}
.about-strip-text p {
  font-size: 1rem;
  color: #4a5e55;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid #d4e8e4;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a3c2e;
}
.about-pillar svg {
  flex-shrink: 0;
}

/* ---- SECTION ARTICLES ---- */
.articles-section {
  padding: 88px 0 100px;
  background-color: #fafaf8;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b7355;
  display: block;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 2.2rem;
  color: #1a3c2e;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1rem;
  color: #5a6a62;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grille articles */
.articles-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,60,46,0.07);
  border: 1px solid #e8f0ed;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(26,60,46,0.14);
  transform: translateY(-4px);
}
.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e0ede8;
}
.article-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.article-card-date {
  font-size: 0.78rem;
  color: #7a8c84;
}
.article-card-read {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #7a8c84;
}
.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a3c2e;
  margin-bottom: 12px;
  flex: 1;
}
.article-card h3 a {
  color: #1a3c2e;
  text-decoration: none;
}
.article-card h3 a:hover {
  color: #8b7355;
  text-decoration: underline;
}
.article-card-excerpt {
  font-size: 0.88rem;
  color: #5a6a62;
  line-height: 1.65;
  margin-top: auto;
}

/* ---- SECTION CATÉGORIES ---- */
.categories-section {
  background-color: #1a3c2e;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.categories-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fafaf8;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.categories-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fafaf8;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
.categories-inner .section-header h2 {
  color: #fff;
}
.categories-inner .section-header .eyebrow {
  color: #b2dfdb;
}
.categories-inner .section-header p {
  color: rgba(255,255,255,0.7);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(178,223,219,0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  background-color: rgba(178,223,219,0.12);
  transform: translateY(-4px);
}
.category-card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(178,223,219,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.category-card p {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-decoration: none;
}
.category-card span {
  font-size: 0.8rem;
  color: rgba(178,223,219,0.65);
}

/* ---- SECTION BIEN-ÊTRE MINI DASHBOARD ---- */
.dashboard-section {
  padding: 100px 0 80px;
  background-color: #fafaf8;
}
.dashboard-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.dashboard-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e8f0ed;
  box-shadow: 0 2px 12px rgba(26,60,46,0.06);
}
.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.dashboard-card-title strong {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3c2e;
}

/* Table pratiques */
.practices-table {
  width: 100%;
  border-collapse: collapse;
}
.practices-table tr {
  border-bottom: 1px solid #e8f0ed;
}
.practices-table tr:last-child {
  border-bottom: none;
}
.practices-table td {
  padding: 12px 0;
  font-size: 0.88rem;
  color: #4a5e55;
  vertical-align: middle;
}
.practices-table td:first-child {
  font-weight: 600;
  color: #1a3c2e;
  width: 40%;
}
.practices-table td:last-child {
  text-align: right;
  font-size: 0.8rem;
  color: #7a8c84;
}
.practice-bar-wrap {
  padding: 0 16px;
}
.practice-bar {
  height: 6px;
  background-color: #e8f0ed;
  border-radius: 10px;
  overflow: hidden;
}
.practice-bar-fill {
  height: 100%;
  background-color: #1a3c2e;
  border-radius: 10px;
}

/* Slider thématiques */
.themes-slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b2dfdb #f0f5f0;
  margin-bottom: 8px;
}
.themes-slider::-webkit-scrollbar { height: 4px; }
.themes-slider::-webkit-scrollbar-track { background: #f0f5f0; }
.themes-slider::-webkit-scrollbar-thumb { background: #b2dfdb; border-radius: 2px; }
.themes-row {
  display: flex;
  gap: 16px;
  padding: 4px 2px 12px;
  width: max-content;
}
.theme-chip {
  background-color: #f0f5f0;
  border: 1px solid #d4e8e4;
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 180px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-align: left;
}
.theme-chip:hover,
.theme-chip.active {
  background-color: #e0ede8;
  border-color: #8b7355;
}
.theme-chip strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3c2e;
  margin-bottom: 4px;
}
.theme-chip span {
  font-size: 0.78rem;
  color: #7a8c84;
}

/* ---- NEWSLETTER SECTION ---- */
.newsletter-section {
  background-color: #f0f5f0;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fafaf8;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.newsletter-icon {
  width: 64px;
  height: 64px;
  background-color: #1a3c2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.newsletter-inner h2 {
  font-size: 2rem;
  color: #1a3c2e;
  font-weight: 800;
  margin-bottom: 12px;
}
.newsletter-inner p {
  font-size: 1rem;
  color: #5a6a62;
  line-height: 1.7;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #d4e8e4;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #2c2c2c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: #1a3c2e;
}
.newsletter-form button {
  padding: 14px 24px;
  background-color: #1a3c2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background-color: #0f2219;
  transform: translateY(-1px);
}
.newsletter-note {
  font-size: 0.78rem;
  color: #8a9e96;
}
.newsletter-success {
  display: none;
  background-color: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ---- SECTION RESSOURCES / HEATMAP THÉMATIQUE ---- */
.resources-section {
  padding: 88px 0;
  background-color: #fafaf8;
}
.resources-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.resources-heatmap {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.heatmap-cell {
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s;
}
.heatmap-cell:hover {
  transform: scale(1.04);
}
.heatmap-cell.heat-1 { background-color: #e8f5f2; }
.heatmap-cell.heat-2 { background-color: #c5e8e0; }
.heatmap-cell.heat-3 { background-color: #8dd5c5; }
.heatmap-cell.heat-4 { background-color: #4db8a4; }
.heatmap-cell.heat-5 { background-color: #1a8c70; }
.heatmap-cell strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.heatmap-cell.heat-1 strong,
.heatmap-cell.heat-2 strong,
.heatmap-cell.heat-3 strong { color: #1a3c2e; }
.heatmap-cell.heat-4 strong,
.heatmap-cell.heat-5 strong { color: #fff; }
.heatmap-cell span {
  font-size: 0.75rem;
}
.heatmap-cell.heat-1 span,
.heatmap-cell.heat-2 span,
.heatmap-cell.heat-3 span { color: #4a6e62; }
.heatmap-cell.heat-4 span,
.heatmap-cell.heat-5 span { color: rgba(255,255,255,0.8); }
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: #7a8c84;
  justify-content: flex-end;
}
.heatmap-legend-bar {
  display: flex;
  gap: 3px;
}
.heatmap-legend-cell {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

/* ---- RESPONSIVE HOME ---- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resources-heatmap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 120px;
  }
  .hero-featured {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-pillars { justify-content: center; }
  .about-strip-portrait { margin-bottom: 16px; }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 1rem; }

  .articles-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .resources-heatmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
  }

  .about-strip-inner { padding: 0 16px; }
  .dashboard-inner { padding: 0 16px; }
  .resources-inner { padding: 0 16px; }
  .categories-inner { padding: 0 16px; }
  .newsletter-inner { padding: 0 16px; }

  .section-header h2 { font-size: 1.7rem !important; }
  .about-strip-text h2 { font-size: 1.6rem !important; }
  .newsletter-inner h2 { font-size: 1.6rem !important; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: 1fr; }
  .resources-heatmap { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 1.65rem; }
  .hero-label { font-size: 0.72rem; }
  .theme-chip { min-width: 150px; }
  .about-strip-portrait img { width: 180px; height: 180px; }
  .about-strip-portrait-ring { width: 204px; height: 204px; }
}