/* === CB COMPONENTS HOME SAFE SCOPE V4.8.8M === */
/* CB composants partagés — préparé, non injecté automatiquement en V3.6 */

body.cb-page--standard .cb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cb-button--dark {
  color: var(--cb-paper);
  background: var(--cb-ink);
  border: 1px solid var(--cb-ink);
}

.cb-button--light {
  color: var(--cb-ink);
  background: var(--cb-paper);
  border: 1px solid var(--cb-paper);
}

body.cb-page--standard .cb-kicker {
  margin: 0 0 16px;
  color: var(--cb-gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cb-seo-context {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 96px) 0;
}

/* === CB COMMON COMPONENTS KIT V4.8.7A START === */

/*
  Kit commun pour créer de nouvelles pages.
  Ne contient pas le header, le menu, ni le footer.
  Préfixe principal : cb-ui- pour éviter les collisions.
*/

.cb-page-main {
  background: var(--cb-ivory, #f4eee5);
  color: var(--cb-ink, #211b17);
}

.cb-page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, 92svh);
  padding: clamp(132px, 16vw, 188px) max(22px, calc((100vw - 1160px) / 2)) clamp(58px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
  color: var(--cb-paper, #fffaf2);
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.44), rgba(18, 14, 11, 0.72)),
    #15110e;
}

.cb-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(0deg, var(--cb-ivory, #f4eee5), rgba(244, 238, 229, 0));
  z-index: -1;
}

.cb-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cb-page-hero-bg img,
.cb-page-hero-bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.cb-page-hero-bg img {
  object-fit: cover;
}

.cb-page-hero-shell,
.cb-section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.cb-page-hero-shell {
  position: relative;
  z-index: 1;
}

body.cb-page--standard .cb-section {
  padding: clamp(68px, 9vw, 116px) 0;
  background: var(--cb-ivory, #f4eee5);
  color: var(--cb-ink, #211b17);
}

.cb-section--soft {
  background: var(--cb-paper, #fffaf2);
}

.cb-section--dark {
  background:
    radial-gradient(circle at 12% 0, rgba(185, 145, 85, 0.16), transparent 28rem),
    #15110e;
  color: var(--cb-paper, #fffaf2);
}

.cb-ui-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.cb-ui-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-ui-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb-ui-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.cb-ui-stack {
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
}

.cb-ui-kicker,
.cb-ui-eyebrow {
  margin: 0 0 16px;
  color: var(--cb-gold, #b99155);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cb-ui-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--cb-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.cb-ui-title--medium {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.cb-ui-lead {
  max-width: 760px;
  margin: clamp(18px, 3vw, 28px) 0 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  line-height: 1.62;
}

.cb-ui-copy {
  color: var(--cb-muted, #62564d);
  font-size: 1rem;
  line-height: 1.78;
}

.cb-section--dark .cb-ui-copy,
.cb-section--dark .cb-ui-lead {
  color: rgba(255, 250, 242, 0.72);
}

.cb-ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

.cb-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cb-ui-button:hover {
  transform: translateY(-1px);
}

.cb-ui-button--primary {
  color: var(--cb-paper, #fffaf2);
  background: var(--cb-ink, #211b17);
  border-color: var(--cb-ink, #211b17);
}

.cb-ui-button--light {
  color: var(--cb-ink, #211b17);
  background: var(--cb-paper, #fffaf2);
  border-color: var(--cb-paper, #fffaf2);
}

.cb-ui-button--ghost {
  color: inherit;
  background: transparent;
  border-color: color-mix(in srgb, currentColor 24%, transparent);
}

.cb-ui-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cb-line, rgba(33, 27, 23, 0.14));
  border-radius: 30px;
  background: color-mix(in srgb, var(--cb-paper, #fffaf2) 88%, white 12%);
  box-shadow: var(--cb-shadow, 0 24px 78px rgba(33, 27, 23, 0.11));
}

.cb-ui-card-body {
  padding: clamp(22px, 4vw, 36px);
}

.cb-ui-card h2,
.cb-ui-card h3 {
  margin: 0;
  font-family: var(--cb-serif, Georgia, "Times New Roman", serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.cb-ui-card p {
  margin: 14px 0 0;
  color: var(--cb-muted, #62564d);
  line-height: 1.68;
}

.cb-section--dark .cb-ui-card {
  border-color: rgba(255, 250, 242, 0.14);
  background: rgba(255, 250, 242, 0.07);
  box-shadow: none;
}

.cb-section--dark .cb-ui-card p {
  color: rgba(255, 250, 242, 0.68);
}

.cb-ui-media-card {
  overflow: hidden;
  border-radius: 30px;
  background: #15110e;
}

.cb-ui-media-card img {
  display: block;
  width: 100%;
  height: auto;
}

.cb-ui-media-card--cover img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cb-ui-faq {
  display: grid;
  gap: 12px;
}

.cb-ui-faq details {
  border: 1px solid var(--cb-line, rgba(33, 27, 23, 0.14));
  border-radius: 22px;
  background: var(--cb-paper, #fffaf2);
  padding: 0 20px;
}

.cb-ui-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
}

.cb-ui-faq summary::-webkit-details-marker {
  display: none;
}

.cb-ui-faq p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--cb-muted, #62564d);
  line-height: 1.68;
}

.cb-ui-form-card {
  border: 1px solid var(--cb-line, rgba(33, 27, 23, 0.14));
  border-radius: 32px;
  background: var(--cb-paper, #fffaf2);
  box-shadow: var(--cb-shadow, 0 24px 78px rgba(33, 27, 23, 0.11));
  padding: clamp(22px, 4vw, 36px);
}

.cb-ui-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cb-ui-form .wide {
  grid-column: 1 / -1;
}

.cb-ui-form label {
  display: grid;
  gap: 8px;
  color: var(--cb-muted, #62564d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-ui-form input,
.cb-ui-form textarea,
.cb-ui-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--cb-line, rgba(33, 27, 23, 0.14));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--cb-ink, #211b17);
  font: inherit;
  padding: 12px 14px;
}

.cb-ui-form textarea {
  min-height: 132px;
  resize: vertical;
}

@media (max-width: 900px) {
  .cb-page-hero {
    min-height: 720px;
  }

  .cb-ui-grid--2,
  .cb-ui-grid--3,
  .cb-ui-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cb-page-hero {
    min-height: 680px;
    padding: 128px 20px 70px;
  }

  .cb-page-hero-shell,
  .cb-section-shell {
    width: min(100% - 32px, 1120px);
  }

  body.cb-page--standard .cb-section {
    padding: 64px 0;
  }

  .cb-ui-title {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .cb-ui-actions {
    display: grid;
  }

  .cb-ui-button {
    width: 100%;
  }

  .cb-ui-form {
    grid-template-columns: 1fr;
  }
}

/* === CB COMMON COMPONENTS KIT V4.8.7A END === */

/* === CB COMMON KIT FAQ DARK FIX V4.8.8I START === */

/*
  Correction partagée du composant FAQ dans une section sombre.
  Problème observé : les <details> restent ivoire mais le texte peut hériter
  du contexte sombre et devenir illisible.
  Scope volontairement limité au kit commun : .cb-section--dark .cb-ui-faq.
*/

.cb-section--dark .cb-ui-faq details {
  color: var(--cb-ink, #211b17);
  background: var(--cb-paper, #fffaf2);
  border-color: rgba(255, 250, 242, 0.22);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.cb-section--dark .cb-ui-faq summary {
  color: var(--cb-ink, #211b17);
}

.cb-section--dark .cb-ui-faq p {
  color: var(--cb-muted, #62564d);
}

.cb-section--dark .cb-ui-faq details[open] {
  background: color-mix(in srgb, var(--cb-paper, #fffaf2) 94%, white 6%);
}

.cb-section--dark .cb-ui-faq summary::after {
  color: var(--cb-gold, #b99155);
}

/* === CB COMMON KIT FAQ DARK FIX V4.8.8I END === */

/* === CB SHARED HOME FAQ WIDTH V4.8.8L START === */

/*
  Pont partagé pour les pages qui réutilisent la vraie FAQ home.
  cb-components.css redéfinit body.cb-page--standard .cb-section plus bas que le CSS home ;
  ce bloc restaure les largeurs/paddings validés de la FAQ home
  sans toucher au header/footer.
*/

body.cb-page--standard .cb-section.cb-faq-section {
  padding: 118px max(26px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(circle at 18% 0, rgba(199,166,111,.10), transparent 26%),
    linear-gradient(180deg, var(--cb-ivory-2), var(--cb-paper));
}

body.cb-page--standard .cb-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 54px;
  align-items: start;
}

body.cb-page--standard .cb-faq-intro {
  position: sticky;
  top: 120px;
}

body.cb-page--standard .cb-faq-list {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  body.cb-page--standard .cb-section.cb-faq-section {
    padding: 78px 22px;
  }

  body.cb-page--standard .cb-faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.cb-page--standard .cb-faq-intro {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  body.cb-page--standard .cb-faq-list summary {
    font-size: 23px;
    padding: 18px;
  }

  body.cb-page--standard .cb-faq-list details p {
    padding: 0 18px 18px;
  }
}

/* === CB SHARED HOME FAQ WIDTH V4.8.8L END === */

/* === CB STANDARD HOME BUTTON PRIMITIVE V4.8.8Q START === */

body.cb-page--standard .cb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 19px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.34);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 850;
  color: white;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

body.cb-page--standard .cb-button:hover {
  transform: translateY(-2px);
}

body.cb-page--standard .cb-button.primary {
  background: linear-gradient(135deg,var(--cb-champagne-2),var(--cb-champagne));
  border-color: rgba(255,255,255,.08);
  color: #18120e;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

body.cb-page--standard .cb-button.dark {
  background: var(--cb-dark);
  border-color: var(--cb-dark);
  color: white;
  box-shadow: 0 15px 36px rgba(20,13,8,.17);
}

body.cb-page--standard .cb-button.light {
  border-color: var(--cb-line);
  color: var(--cb-ink);
  background: rgba(255,255,255,.48);
}

@media (max-width: 560px) {
  body.cb-page--standard .cb-button {
    width: 100%;
    min-height: 48px;
  }
}

/* === CB STANDARD HOME BUTTON PRIMITIVE V4.8.8Q END === */

/* === CB STANDARD HOME CARDS GRID V4.8.8R START === */

body.cb-page--standard .cb-standard-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

body.cb-page--standard .cb-standard-card-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

body.cb-page--standard .cb-standard-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cb-page--standard .cb-standard-card-body {
  padding: clamp(22px, 4vw, 36px);
}

body.cb-page--standard .cb-card h2,
body.cb-page--standard .cb-card h3 {
  margin: 0;
  font-family: var(--cb-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

body.cb-page--standard .cb-card p {
  margin: 14px 0 0;
  color: var(--cb-muted);
  line-height: 1.68;
}

@media (max-width: 900px) {
  body.cb-page--standard .cb-standard-card-grid--3 {
    grid-template-columns: 1fr;
  }

  body.cb-page--standard .cb-standard-shell {
    width: min(100% - 32px, 1120px);
  }
}

/* === CB STANDARD HOME CARDS GRID V4.8.8R END === */

/* === CB STANDARD HERO V4.8.8S START === */

body.cb-page--standard .cb-standard-main {
  background: var(--cb-ivory, #f4eee5);
}

body.cb-page--standard .cb-standard-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, 92svh);
  padding: clamp(132px, 16vw, 188px) max(30px, calc((100vw - 1220px) / 2)) clamp(58px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: #15110e;
}

body.cb-page--standard .cb-standard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,6,5,.76), rgba(8,6,5,.34) 46%, rgba(8,6,5,.24)),
    linear-gradient(0deg, rgba(8,6,5,.86), rgba(8,6,5,.08) 56%, rgba(8,6,5,.32)),
    radial-gradient(circle at 32% 46%, rgba(199,166,111,.18), transparent 34%);
}

body.cb-page--standard .cb-standard-hero::after {
  content: "";
  position: absolute;
  left: max(26px, calc((100vw - 1220px) / 2));
  right: max(26px, calc((100vw - 1220px) / 2));
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,208,170,.42), transparent);
  z-index: 1;
  pointer-events: none;
}

body.cb-page--standard .cb-standard-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

body.cb-page--standard .cb-standard-hero-bg img,
body.cb-page--standard .cb-standard-hero-bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

body.cb-page--standard .cb-standard-hero-bg img {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

body.cb-page--standard .cb-standard-hero-shell {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

body.cb-page--standard .cb-standard-hero-shell::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -44px;
  width: 110px;
  height: 110px;
  border-left: 1px solid rgba(229,208,170,.36);
  border-top: 1px solid rgba(229,208,170,.36);
  opacity: .8;
  pointer-events: none;
}

body.cb-page--standard .cb-standard-hero .cb-title {
  color: white;
  font-size: clamp(50px, 6.8vw, 96px);
  margin: 18px 0 24px;
  max-width: 780px;
}

body.cb-page--standard .cb-standard-hero .cb-lead {
  color: rgba(255,255,255,.84);
  max-width: 665px;
  font-size: clamp(17px, 1.42vw, 21px);
}

body.cb-page--standard .cb-standard-hero .cb-kicker,
body.cb-page--standard .cb-standard-hero .cb-eyebrow {
  color: rgba(245,233,215,.86);
  text-shadow: 0 4px 16px rgba(0,0,0,.32);
}

body.cb-page--standard .cb-standard-hero .cb-actions {
  margin-top: 30px;
}

@media (max-width: 1000px) {
  body.cb-page--standard .cb-standard-hero {
    min-height: 720px;
    padding: 118px 22px 54px;
  }

  body.cb-page--standard .cb-standard-hero-shell::before {
    left: -12px;
    top: -24px;
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 560px) {
  body.cb-page--standard .cb-standard-hero {
    min-height: 100svh;
    padding: 118px 22px 38px;
  }

  body.cb-page--standard .cb-standard-hero .cb-title {
    font-size: clamp(44px, 13vw, 64px);
  }

  body.cb-page--standard .cb-standard-hero .cb-lead {
    font-size: 16px;
  }
}

/* === CB STANDARD HERO V4.8.8S END === */

/* === CB STANDARD SECTIONS RHYTHM V4.8.8T START === */

/*
  Rythme des sections de page standard.
  Objectif : éviter que les sections après le hero partent pleine largeur,
  tout en gardant le hero standard validé.
*/

body.cb-page--standard .cb-section {
  padding: 118px max(26px, calc((100vw - 1160px) / 2));
  position: relative;
}

body.cb-page--standard .cb-section--soft {
  background:
    radial-gradient(circle at 18% 0, rgba(199,166,111,.08), transparent 26%),
    linear-gradient(180deg, var(--cb-ivory-2), var(--cb-paper));
}

body.cb-page--standard .cb-section > .cb-grid,
body.cb-page--standard .cb-section > .cb-standard-card-grid,
body.cb-page--standard .cb-section > .cb-standard-shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

body.cb-page--standard .cb-section .cb-eyebrow,
body.cb-page--standard .cb-section .cb-kicker {
  color: #a38355;
  text-shadow: none;
}

body.cb-page--standard .cb-section.dark .cb-eyebrow,
body.cb-page--standard .cb-section.dark .cb-kicker,
body.cb-page--standard .cb-section--dark .cb-eyebrow,
body.cb-page--standard .cb-section--dark .cb-kicker {
  color: rgba(245,233,215,.86);
  text-shadow: 0 4px 16px rgba(0,0,0,.32);
}

@media (max-width: 900px) {
  body.cb-page--standard .cb-section {
    padding: 78px 22px;
  }
}

@media (max-width: 560px) {
  body.cb-page--standard .cb-section {
    padding: 72px 18px;
  }
}

/* === CB STANDARD SECTIONS RHYTHM V4.8.8T END === */
