/* ============================================================================
   FELDOR — Pages de contenu (produits, métiers, guides, entreprise, FAQ).
   S'appuie sur base.css + site.css. Chrome « page-light » (header lisible).
   ========================================================================== */

/* ------------------------------------------------------------------ HERO */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--grad-night); color: var(--cream);
  padding: clamp(140px, 15vw, 190px) 0 clamp(52px, 7vw, 84px);
  border-bottom: 1px solid var(--night-line);
}
.page-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% -10%, rgba(201,163,93,.18), transparent 52%);
}
.page-hero .container { position: relative; z-index: 1; }
/* Héro 2 colonnes quand une photo est présente : texte à gauche, image à droite */
.page-hero .container:has(.page-hero__media) {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 5vw, 70px); align-items: center;
}
.page-hero .container:has(.page-hero__media) > *:not(.page-hero__media) { grid-column: 1; }
.page-hero .container:has(.page-hero__media) > .page-hero__media {
  grid-column: 2; grid-row: 1 / span 6; order: 2; align-self: center; max-height: 460px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(201,163,93,.28); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3.4; }
@media (max-width: 860px) {
  .page-hero .container:has(.page-hero__media) { grid-template-columns: 1fr; }
  .page-hero .container:has(.page-hero__media) > .page-hero__media {
    grid-column: 1; grid-row: auto; margin-top: 28px; max-height: 300px;
  }
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(247,242,233,.55); margin-bottom: 20px; }
.breadcrumb a { color: rgba(247,242,233,.7); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: rgba(247,242,233,.3); }
.breadcrumb b { color: var(--gold-soft); font-weight: 600; }
.page-hero__eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.015em;
  text-wrap: balance; margin: 0 0 20px; max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold-soft); }
.page-hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; text-wrap: pretty; color: rgba(247,242,233,.82); max-width: 62ch; margin: 0; }
.page-hero__lead strong { color: var(--gold-soft); font-weight: 700; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(201,163,93,.2); }
.page-hero__meta .m b { display: block; font-family: var(--serif); font-size: 27px; color: var(--gold-soft); line-height: 1; }
.page-hero__meta .m span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,242,233,.55); }

/* ---------------------------------------------------------------- SECTIONS */
.page-section { padding: clamp(56px, 8vw, 104px) 0; }
.page-section--tint { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.page-section--night { background: var(--grad-night); color: var(--cream); }

.prose { max-width: 720px; }
.prose.center { margin-inline: auto; text-align: center; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 30px 0 10px; }
.prose p { font-size: 16px; line-height: 1.72; color: var(--ink-soft); text-wrap: pretty; margin: 0 0 16px; }
.prose p strong, .prose li strong { color: var(--walnut); font-weight: 700; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-gold); }
.prose a { color: var(--wood-deep); border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.prose a:hover { color: var(--espresso); border-color: var(--wood); }
.prose--night p { color: rgba(247,242,233,.8); }
.prose--night h2, .prose--night h3 { color: var(--cream); }

/* Titre de section centré */
.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.01em; margin: 14px 0 14px; text-wrap: balance; }
.sec-head .lead { color: var(--ink-soft); }

/* --------------------------------------------------------------- SPLIT 2 col */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split2--rev .split2__media { order: 2; }
.split2__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.split2__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split2__figure {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: var(--grad-wood); display: grid; place-items: center; color: var(--cream-2); box-shadow: var(--shadow);
}

/* ------------------------------------------------------------- CARDS / SPECS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  border-radius: var(--radius); background: linear-gradient(168deg, var(--paper), var(--cream));
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.info-card .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: var(--walnut); background: radial-gradient(circle at 50% 32%, rgba(226,199,137,.2), rgba(201,163,93,.05)); border: 1px solid rgba(201,163,93,.3); }
.info-card .ico svg { width: 24px; height: 24px; }
.info-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 9px; }
.info-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.info-card .fc-tag { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }

/* Tableau de définitions (ex. tenue au feu) */
.deftable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.deftable th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 15px 18px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.deftable td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); vertical-align: top; }
.deftable tr:last-child td { border-bottom: none; }
.deftable td:first-child { font-weight: 700; color: var(--espresso); white-space: nowrap; }
.deftable .fire { color: var(--wood-deep); font-weight: 600; }

/* Encadré / note */
.callout { padding: 20px 24px; border-radius: var(--radius); background: rgba(201,163,93,.08); border: 1px solid rgba(201,163,93,.25); font-size: 15px; line-height: 1.6; color: var(--wood-deep); }
.callout strong { color: var(--espresso); }
.callout.center { text-align: center; max-width: 720px; margin-inline: auto; }

/* Tags */
.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.taglist span { font-size: 12.5px; font-weight: 600; color: var(--wood-deep); padding: 7px 14px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line-strong); }

/* --------------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--espresso); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--wood); transition: transform .3s; font-family: var(--sans); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 22px; }
.faq-item .faq-body p { font-size: 15px; line-height: 1.68; color: var(--ink-soft); margin: 0 0 12px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------- Tuiles produits (récap) */
.pcard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-wood); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.pcard__body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.pcard__tags span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--wood-deep); padding: 5px 10px; border-radius: 999px; background: var(--cream-2); }
.pcard__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--wood-deep); }
.pcard__go svg { width: 16px; height: 16px; transition: transform .3s; }
.pcard:hover .pcard__go svg { transform: translateX(4px); }

/* --------------------------------------------------------------- CTA BAND */
.cta-band { position: relative; overflow: hidden; background: var(--grad-night); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px); text-align: center; }
.cta-band__glow { position: absolute; inset: 0; background: radial-gradient(100% 120% at 50% -20%, rgba(201,163,93,.22), transparent 55%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; margin: 0 0 12px; color: var(--cream); }
.cta-band p { font-size: 16px; color: rgba(247,242,233,.72); max-width: 56ch; margin: 0 auto 26px; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------- Grille de pages liées */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.related-card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-deep); }
.related-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.related-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.related-card .go { margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--wood-deep); }
.related-card .go svg { width: 15px; height: 15px; transition: transform .3s; }
.related-card:hover .go svg { transform: translateX(4px); }

/* --------------------------------------------------------------- RESPONSIVE */
@media (max-width: 900px) {
  .card-grid, .card-grid.cols-4, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .split2 { grid-template-columns: 1fr; }
  .split2--rev .split2__media { order: 0; }
}
@media (max-width: 600px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .related-grid { grid-template-columns: 1fr; }
  .page-section { padding: 52px 0; }
  .deftable th, .deftable td { padding: 12px 13px; font-size: 14px; }
}
/* Sur petit écran, la table de définitions devient un conteneur défilable
   horizontalement pour éviter tout débordement (aucun wrapper HTML requis). */
@media (max-width: 760px) {
  .deftable { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
