/* ============================================
   Annuaire Masseur IDF — Types de Massage Styles
   ============================================ */

/* --- Type Hero --- */
.type-hero {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, var(--accent-500) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.type-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--sand-100);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.type-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.type-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.type-hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.type-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.type-hero-cta .btn-action svg {
  flex-shrink: 0;
}

/* --- Type Content Sections --- */
.type-content {
  position: relative;
  z-index: 1;
}

.type-section {
  padding: 3rem 1.5rem;
}

.type-section-alt {
  background: var(--sand-200);
}

.type-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.type-section-title {
  font-size: 1.5rem;
  color: var(--primary-800);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.type-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 2px;
}

/* --- Type Description (text + image) --- */
.type-section .type-section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.type-section .type-section-inner.type-layout-row {
  flex-direction: row;
  align-items: flex-start;
}

.type-text {
  flex: 1;
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 1rem;
}

.type-text-full {
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 1rem;
}

.type-image {
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.type-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .type-section .type-section-inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .type-text {
    padding-right: 2rem;
  }
}

/* --- Bienfaits Checklist --- */
.type-checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.type-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.type-checklist li::before {
  content: '✓';
  color: var(--accent-600);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* --- Déroulé Steps --- */
.type-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  position: relative;
}

.type-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.type-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.type-steps li::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 2.2rem;
  width: 2px;
  height: calc(100% - 0.4rem);
  background: var(--sand-300);
}

.type-steps li:last-child::after {
  display: none;
}

/* --- CTA Gift / Pro --- */
.type-cta-section {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.type-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.type-cta-inner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.type-cta-inner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.type-cta-inner .btn-action.btn-primary {
  background: var(--white);
  color: var(--primary-800);
}

.type-cta-inner .btn-action.btn-primary:hover {
  background: var(--sand-200);
}

.type-pro-cta {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--sand-200);
}

.type-pro-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.type-pro-cta-inner h3 {
  font-size: 1.4rem;
  color: var(--primary-800);
  margin-bottom: 0.5rem;
}

.type-pro-cta-inner p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-800);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--sand-100);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-600);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* --- Listings in Type page --- */
#type-listings .listings-grid {
  margin-top: 1rem;
}

/* --- Hub Hero --- */
.hub-hero {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, var(--accent-500) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hub-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--sand-100);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hub-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hub-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hub Grid --- */
.hub-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.hub-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.hub-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--sand-200);
}

.hub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hub-card:hover .hub-card-image img {
  transform: scale(1.05);
}

.hub-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.hub-card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.hub-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
  transition: color var(--transition);
}

.hub-card:hover .hub-card-link {
  color: var(--primary-900);
}

/* --- Responsive overrides for type page --- */
@media (max-width: 639px) {
  .type-hero h1 { font-size: 1.5rem; }
  .type-hero { padding: 2rem 1rem 2rem; }
  .type-hero-cta { flex-direction: column; align-items: center; }
  .type-hero-cta .btn-action { width: 100%; justify-content: center; }
  .type-image { max-width: 100%; }
  .type-steps li { padding-left: 2.5rem; }
  .type-section { padding: 2rem 1rem; }
  .hub-hero h1 { font-size: 1.5rem; }
  .type-cta-inner h2 { font-size: 1.35rem; }
  .type-cta-inner { padding: 0; }
}