/* ============================================================
   Ton Courtier — styles des pages intérieures
   Étend le système de design du mockup (main.css) :
   mêmes tokens, mêmes radius, mêmes ombres.
   ============================================================ */

.page-hero {
  padding: calc(var(--header-h) + 46px) 0 34px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-title {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 900px;
  margin-bottom: 10px;
}
.post-title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; }
.page-lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  align-items: center;
}
.page-hero-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.breadcrumb { margin: 0 0 18px; font-size: 14px; }
.breadcrumb a { color: var(--green); font-weight: 600; }

/* --- Cartes de contenu (prose) --- */
.prose-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow);
  max-width: 860px;
}
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3 { margin: 1.4em 0 .5em; line-height: 1.15; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-md); margin: 14px 0; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 20px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe { max-width: 100%; border: none; border-radius: var(--radius-md); }
.prose-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --- Page produit : contenu + formulaire --- */
.product-layout { display: grid; gap: 26px; }
.form-card {
  background: var(--green-soft);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.4vw, 40px);
  max-width: 860px;
}
.form-card-title { font-size: 24px; margin-bottom: 14px; }
.form-card iframe { background: var(--white); border-radius: var(--radius-md); }
.form-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* --- Équipe --- */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intro-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.intro-card h2 { font-size: 20px; margin-bottom: 8px; color: var(--green); }
.intro-card p { color: var(--ink-2); margin: 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .28s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-photo {
  width: 128px; height: 128px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-soft);
  border: 4px solid var(--gold-soft);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 19px; margin-bottom: 4px; text-transform: capitalize; }
.team-role {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; min-height: 2.6em;
}
.team-phone a { color: var(--green); font-weight: 600; }
.team-second { max-width: none; margin-top: 26px; display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.team-second-img { width: 100%; border-radius: var(--radius-md); }

/* --- Sites recommandés --- */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .28s ease;
}
.link-card:hover { transform: translateY(-4px); }
.link-logo { height: 64px; display: flex; align-items: center; }
.link-logo img { max-height: 64px; max-width: 180px; object-fit: contain; }
.link-card h3 { font-size: 18px; }
.link-card p { color: var(--muted); font-size: 14.5px; flex: 1; margin: 0; }

/* --- Blog --- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.article-placeholder {
  height: 100%; min-height: 170px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-2); color: var(--gold-soft);
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 34px;
}
.article-date { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.post-body { max-width: 820px; margin-inline: auto; }
.post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 22px; }
.see-all-link { margin-top: 26px; }
.contact-team { margin-top: 26px; }

@media (max-width: 960px) {
  .intro-grid, .team-grid, .links-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-grid { grid-template-columns: 1fr; }
  .team-second { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .intro-grid, .team-grid, .links-grid, .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--header-h) + 30px); }
  .prose-card { padding: 22px; border-radius: var(--radius-lg); }
}

/* --- Avis en direct (remplis par assets/js/reviews.js) --- */
.review-feed-slot.is-live { display: block; padding: 0; background: none; border: none; }
.live-review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: left;
}
.live-review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.live-review p {
  margin: 0; font-size: 14px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.post-author-link { color: var(--green); font-weight: 700; text-decoration: none; }
.post-author-link:hover { text-decoration: underline; }

/* --- Página intermedia de soumission (Auto / Moto / Habitation) --- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px; padding: 28px;
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(17,17,15,.12); }
.quote-card--mint { background: var(--green-soft); }
.quote-card--sand { background: #F5E7C9; }
.quote-card--blue { background: #DDE8F1; }
.quote-card h3 { font-family: 'Manrope', sans-serif; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin: 0; }
.quote-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.quote-card .product-meta { margin-top: auto; }
.quote-card:hover .round-arrow { transform: rotate(45deg); }
.quote-aside { margin: 26px 0 0; text-align: center; color: var(--ink-2); }
.quote-aside a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-card { min-height: 0; } }


/* Página de soumission: encabezado y CTA en el mismo eje que las tarjetas
   (contenedor completo, no la columna estrecha de artículo). */
.quote-page .article-hero .container,
.quote-page .article-cta .container { max-width: var(--container, 1240px); }

/* --- Contacto: formulario Wufoo + mapa de la oficina --- */
.contact-io { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.contact-io .form-lede { color: var(--ink-2); margin: 0 0 18px; }
.map-card { display: flex; flex-direction: column; }
.map-card iframe { flex: 1; min-height: 420px; width: 100%; border: 0; border-radius: 14px; }
@media (max-width: 900px) { .contact-io { grid-template-columns: 1fr; } }
