/* ==========================================================================
   Centrale fournisseurs — Landing pages fournisseurs / FAQ (squelette générique)
   Palette / logo / textes à personnaliser par projet — voir README.md
   ========================================================================== */

:root {
  --color-primary: #2456a6;
  --color-primary-dark: #173a73;
  --color-primary-light: #3d6fc4;
  --color-bg: #f7f8fa;
  --color-bg-alt: #eef1f5;
  --color-surface: #ffffff;
  --color-text: #1a1f29;
  --color-text-muted: #565f6e;
  --color-border: #dde2e8;
  --color-warning-bg: #fff4e5;
  --color-warning-border: #e8a33d;
  --color-warning-text: #7a4a05;
  --color-success-bg: #eaf6ec;
  --color-success-border: #8fc79a;
  --color-success-text: #1f6b30;
  --color-info-bg: #eef2f6;
  --color-info-border: #b9c8d6;
  --color-info-text: #33475b;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-card: 0 4px 24px rgba(23, 58, 115, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(23, 58, 115, 0.14);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / logo ---------- */

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.3px;
}

/* ---------- Placeholder visuel (à remplacer par une vraie capture/maquette) ---------- */

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  width: 100%;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-m);
  color: var(--color-text-muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-banner .media-placeholder { min-height: 380px; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 64px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(36, 86, 166, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 20px;
  white-space: nowrap;
  color: var(--color-primary-dark);
}

.hero-lead p {
  font-size: 17px;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.hero-lead strong { color: var(--color-text); }

.hero-banner {
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: floatSoft 5s ease-in-out infinite;
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.section-intro {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 0 36px;
}

.section-header {
  text-align: center;
  margin: 0 auto 36px;
}

.section-header h2 { margin-bottom: 12px; }

.section-header .section-intro {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Règles (tronc commun) ---------- */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.rule-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  animation: fadeSlideUp 0.6s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.rule-card:nth-child(1) { animation-delay: 0.05s; }
.rule-card:nth-child(2) { animation-delay: 0.18s; }
.rule-card:nth-child(3) { animation-delay: 0.31s; }

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.rule-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--color-text);
}

.rule-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Adresse de facturation (callout) ---------- */

.invoice-callout {
  background: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-m);
  padding: 32px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.invoice-callout .label {
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0 0 4px;
}

.invoice-callout .email-link {
  font-family: var(--font-serif);
  font-size: 29px;
  color: #fff;
  text-decoration: none;
}

/* ---------- Section alt background ---------- */

.section-alt { background: var(--color-bg-alt); }

/* ---------- Stepper (parcours) ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 36px;
}

.step:last-child { padding-bottom: 0; }

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2456a6;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 2px;
  background: var(--color-border);
  margin-top: 6px;
}

.step:last-child .step-line { display: none; }

.step-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.step-content-media {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px;
}

.step-content-media.is-stacked {
  grid-template-columns: 1fr;
}

.step-content-media.is-stacked .step-image {
  width: 100%;
}

.step-content-media.is-stacked .step-text {
  text-align: center;
}

.accept-refuse-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 40px;
  align-items: start;
  margin-top: 10px;
}

.accept-refuse-col h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.accept-refuse-col p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

.accept-refuse-divider {
  align-self: center;
  justify-self: center;
  font-family: "Poppins", var(--font-sans);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-text);
}

.step-image {
  position: relative;
  overflow: visible;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  transform-origin: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.step-image:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: var(--shadow-card-hover);
}

.step-image-placeholder {
  width: 100%;
  aspect-ratio: 1648 / 1404;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-s);
  background: repeating-linear-gradient(
    45deg,
    var(--color-bg-alt),
    var(--color-bg-alt) 12px,
    var(--color-surface) 12px,
    var(--color-surface) 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.parcours-subheading {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}

.parcours-subheading.is-second { margin-top: 48px; }

.step-content h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

.step-content p + p { margin-top: 10px; }

/* ---------- Point de vigilance (warning) ---------- */

.warning-box {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-m);
  margin-top: 40px;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  overflow: hidden;
}

.warning-icon-col {
  background: rgba(232, 163, 61, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}

.warning-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.warning-content {
  padding: 24px 28px;
}

.warning-box h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--color-warning-text);
}

.warning-box p {
  font-size: 15px;
  margin: 0;
  color: #5c4a2c;
}

/* ---------- Table (produits + prestations) ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  min-width: 620px;
}

thead th {
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 14px 20px;
}

tbody td {
  padding: 18px 20px;
  font-size: 15px;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: var(--color-bg-alt); }

td .email-type {
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ---------- Règle commune callout ---------- */

.common-rule {
  margin-top: 40px;
  background: var(--color-bg-alt);
  border: 1px solid rgba(36, 86, 166, 0.35);
  border-radius: var(--radius-m);
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  overflow: hidden;
}

.common-rule-icon-col {
  background: rgba(36, 86, 166, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}

.common-rule-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.common-rule-content {
  padding: 24px 28px;
}

.common-rule h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #2456a6;
}

.common-rule p {
  margin: 0;
  font-size: 15px;
  color: #4a2426;
}

.common-rule p a {
  color: #2456a6;
  font-weight: 700;
}

.common-rule ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.common-rule li {
  font-size: 15px;
  color: #4a2426;
  margin-bottom: 4px;
}

.common-rule li a {
  color: #2456a6;
  font-weight: 700;
}

/* ---------- Contact / footer ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.contact-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--color-text);
}

.contact-card a.contact-email {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-primary);
  margin: 0 0 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.contact-card a.contact-email:hover { text-decoration: underline; }

.contact-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.site-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* ---------- FAQ page ---------- */

.faq-hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 56px 0 40px;
}

.faq-eyebrow-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.faq-hero .container { max-width: 1200px; }

.faq-hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto 32px;
}

.faq-hero-left h1 { text-align: left; margin-top: 0; }

.faq-tags {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}

.faq-support-line {
  font-size: 14px;
  margin: 0 0 20px;
}

.faq-support-line a { color: var(--color-primary); font-weight: 600; }

.faq-intro {
  font-size: 16px;
  text-align: justify;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.faq-intro:last-child { margin-bottom: 0; }

.faq-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-hero-right .callout { margin: 0; }

.faq-hero-mockup {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: var(--shadow-card);
}

.faq-essentials {
  max-width: 1200px;
  margin: 4px auto 32px;
  text-align: center;
}

.faq-essentials-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-success-text);
  margin-bottom: 14px;
}

.faq-essentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq-essentials-card {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-m);
  padding: 22px 18px 22px 34px;
  text-align: left;
  display: flex;
  align-items: center;
}

.faq-essentials-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-essentials-card li {
  position: relative;
  font-size: 14.5px;
  line-height: 1.5;
  color: #2b4a30;
}

.faq-essentials-card li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--color-success-text);
  font-weight: 700;
}

.faq-essentials-card strong { color: #1f6b30; }

@media (max-width: 860px) {
  .faq-essentials-grid { grid-template-columns: 1fr; }
}

.faq-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.faq-search-wrap-prominent { max-width: 680px; }

.faq-search-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 16px 20px 16px 48px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search-wrap-prominent .faq-search-input {
  font-size: 17px;
  padding: 20px 24px 20px 56px;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.faq-search-wrap-prominent .faq-search-icon {
  left: 22px;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.faq-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(36, 86, 166, 0.12);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.faq-search-count {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Callouts */

.callout {
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin: 18px 0;
  border: 1px solid transparent;
}

.callout-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.callout p, .callout ul { font-size: 15px; margin: 0; }
.callout ul { padding-left: 20px; }
.callout p + p, .callout ul + p, .callout p + ul { margin-top: 8px; }

.callout-success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}
.callout-success .callout-label { color: var(--color-success-text); }
.callout-success p, .callout-success li { color: #2b4a30; }

.callout-info {
  background: var(--color-info-bg);
  border-color: var(--color-info-border);
}
.callout-info .callout-label { color: var(--color-info-text); }
.callout-info p, .callout-info li { color: #3d4f5e; }

.callout-warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
}
.callout-warning .callout-label { color: var(--color-warning-text); }
.callout-warning p, .callout-warning li { color: #5c4a2c; }

.callout-contact {
  background: var(--color-bg-alt);
  border-color: rgba(36, 86, 166, 0.35);
}
.callout-contact .callout-label { color: var(--color-primary); }
.callout-contact p, .callout-contact li { color: var(--color-text); }
.callout-contact a { color: var(--color-primary); font-weight: 700; }

/* Layout: sidebar + content */

.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 16px;
}

.faq-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.faq-nav-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.faq-nav-link.is-active {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  border-left-color: var(--color-primary);
}

.faq-chips {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.faq-chip {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}

.faq-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Sections & items */

.faq-section {
  scroll-margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.faq-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}

.faq-section-intro {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
  max-width: 720px;
}

.faq-items { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item + .faq-item { margin-top: 8px; }

.faq-item[open] { box-shadow: var(--shadow-card-hover); }

.faq-item:has(.faq-image-wrap:hover) { overflow: visible; }

.faq-item:not([open]) .faq-answer { display: none; }

.faq-question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--color-text);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul { margin: 0 0 10px; padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }

.faq-answer h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 14px 0 6px;
}
.faq-answer h4:first-child { margin-top: 0; }

.faq-answer a { color: var(--color-primary); font-weight: 600; }

.faq-table-wrap { margin: 4px 0 16px; }

/* Pas de border-radius ici : les miniatures (poster) ont déjà leurs coins arrondis
   intégrés à l'image (cadre orange). Un radius ici créerait un rognage en double. */
.faq-video {
  width: 100%;
  max-width: none;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  background: #000;
}

.faq-section-video { margin: 4px 0 20px; }

.faq-answer .faq-video { margin: 2px 0 16px; max-width: none; }

.faq-section-video .faq-video { max-width: none; }

/* Facade YouTube générique : réutilisée pour chaque vidéo migrée depuis un <video> local.
   Combiner class="yt-facade faq-video" pour hériter des règles de mise en page ci-dessus. */
.yt-facade {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.yt-facade-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-facade-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yt-facade-play:hover { background: rgba(0, 0, 0, 0.28); }

.yt-facade-play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}

.yt-facade-play:hover svg { transform: scale(1.08); }

.yt-facade-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.faq-big-video-section { padding: 0 0 40px; }

.faq-big-video-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto;
}

.faq-big-video-col { min-width: 0; }

.faq-big-video-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #2456a6;
  text-align: center;
  margin: 0 0 10px;
}

.faq-big-video-wrap {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #000;
}

.faq-big-video {
  width: 100%;
  display: block;
  background: #000;
}

.faq-timecodes {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}

.faq-timecodes-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--color-text);
}

.faq-timecodes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-timecode {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-s);
  padding: 10px 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-timecode-stamp {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 42px;
}

.faq-timecode:hover,
.faq-timecode:focus-visible {
  background: var(--color-bg-alt);
}

.faq-timecode.is-active {
  background: var(--color-primary);
  color: #fff;
}

.faq-timecode.is-active .faq-timecode-stamp { color: #fff; }

@media (max-width: 860px) {
  .faq-big-video-layout { grid-template-columns: 1fr; }
}

.faq-image-wrap {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin: 2px 0 16px;
  background: var(--color-surface);
  transform-origin: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.faq-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-m) - 1px);
}

.faq-image-wrap:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: var(--shadow-card-hover);
}

.faq-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.faq-no-results.is-visible { display: block; }

.faq-hidden { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-banner { min-height: unset; height: 220px; order: 2; }
  .hero-content { text-align: center; }
  .hero-lead { text-align: center; }
  .rules-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .step-content-media { grid-template-columns: 1fr; }
  .accept-refuse-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .faq-hero-left h1 { text-align: center; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { display: none; }
  .faq-chips { display: flex; }
  .faq-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  section { padding: 40px 0; }
}
