/* ==========================================================================
   L'Artisan Sellier — components.css
   Composants visuels : cards, services, process, real-grid, témoignages
   Consolidé depuis mu-plugins/v6-fixes*.css (oct 2026)
   ========================================================================== */

/* --- 1. SERVICE CARDS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(62, 38, 20, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(62, 38, 20, 0.12);
}
.service-card .thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 220px;
  display: block;
}
.service-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}
.service-card .thumb .num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(62, 38, 20, 0.92);
  color: #e8b04b;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid rgba(232, 176, 75, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.service-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.service-card .body .meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c2542a;
  font-weight: 700;
  margin: 0;
}
.service-card .body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  margin: 0;
  color: #1a1410;
  font-weight: 700;
  line-height: 1.2;
}
.service-card .body p {
  color: #5a4536;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.service-card .body .more {
  color: #c2542a;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card .body .more::after {
  content: '→';
  transition: transform 0.2s;
}
.service-card:hover .body .more::after {
  transform: translateX(4px);
}

/* --- 2. PROCESS STEPS (4 colonnes pour 4 étapes) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.process-step {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 176, 75, 0.2);
  position: relative;
  min-height: 240px;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #e8b04b;
  border-radius: 8px 8px 0 0;
}
.process-step .step-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  color: #e8b04b;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.process-step h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: #f5efe6;
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.process-step p {
  color: rgba(245, 239, 230, 0.92);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* --- 3. RÉALISATIONS - mosaïque --- */
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
  margin-top: 2.5rem;
}
/* Cache la 13e carte pour une grille équilibrée 3x4 (12 cases) */
.real-grid > *:nth-child(n+12) {
  display: none;
}
.real-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: #f5efe6;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
  border: none;
  cursor: pointer;
}
.real-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.real-card.size-xl { grid-row: span 2; grid-column: span 1; }
.real-card.size-l { grid-row: span 1; grid-column: span 1; }
.real-card.size-m { grid-row: span 1; grid-column: span 1; }
.real-card.size-s { grid-row: span 1; grid-column: span 1; }
.real-card .real-content {
  background: linear-gradient(transparent 0%, rgba(20, 12, 6, 0.9) 100%);
  padding: 1.25rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: background 0.3s;
}
.real-card:hover .real-content {
  background: linear-gradient(transparent 0%, rgba(20, 12, 6, 0.95) 100%);
}
.real-card .real-content .real-tag {
  display: inline-block;
  color: #e8b04b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.2rem;
  align-self: flex-start;
}
.real-card .real-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: #f5efe6;
  margin: 0;
  line-height: 1.3;
  font-weight: 600;
}
.real-card.size-xl .real-content h3 { font-size: 1.5rem; }

/* --- 4. TÉMOIGNAGES - grille 3x3 parfaite --- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.testi {
  background: white;
  padding: 1.75rem;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(62, 38, 20, 0.08);
  min-height: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Cache les témoignages au-delà de 9 pour une grille 3x3 parfaite */
.testi-grid .testi:nth-child(n+10) {
  display: none;
}
.testi .stars {
  color: #c2542a;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.15rem;
}
.testi blockquote {
  margin: 0 0 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: #1a1410;
  flex: 1;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid #c2542a;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid #e8dcc4;
  padding-top: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}
.testi .who .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e2614 0%, #5a3a24 100%);
  color: #e8b04b;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid rgba(232, 176, 75, 0.3);
}
.testi .who strong {
  display: block;
  color: #1a1410;
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.testi .who small {
  color: #5a4536;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}

/* --- 5. SECTION-HEAD --- */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: end;
}
.section-head > div { text-align: left; }
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #c2542a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  opacity: 1;
}
.section-head .eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
  color: #1a1410;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.section-head h2 em {
  color: #c2542a;
  font-style: italic;
}
.section-head .lead {
  color: #5a4536;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 55ch;
}

/* --- 6. ABOUT-STRIP / ATELIER-STRIP (image+texte) --- */
.about-strip, .atelier-strip {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
.about-strip img, .atelier-strip img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 40px rgba(62, 38, 20, 0.15);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* --- 7. EYEBROW global --- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c2542a;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  opacity: 1;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid, .process-steps, .testi-grid { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .real-card.size-xl { grid-row: span 2; grid-column: span 2; }
  .real-card.size-l, .real-card.size-m, .real-card.size-s { grid-row: span 1; grid-column: span 1; }
  .about-strip, .atelier-strip { grid-template-columns: 1fr; }
}


/* --- OVERRIDE: Sommaire de Services (1ère section après page-hero) --- */
/* On cible la section qui suit immédiatement .page-hero et qui contient .services-grid */
.page-hero + section .services-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.page-hero + section .service-card {
  flex-direction: row;
  align-items: center;
  padding: 1.5rem;
  min-height: 0;
}
.page-hero + section .service-card .thumb {
  display: none;
}
.page-hero + section .service-card .body {
  padding: 0;
}
.page-hero + section .service-card h3 {
  font-size: 1.15rem !important;
  margin-bottom: 0.25rem !important;
}
.page-hero + section .service-card p {
  font-size: 0.9rem !important;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}
.page-hero + section .service-card .num {
  position: static;
  margin-right: 1rem;
  flex-shrink: 0;
}
