/* =====================================================================
   Page builder — rendu public des composants.
   Auto-suffisant (aucune dependance au bundle Tailwind), palette de marque.
   ===================================================================== */
:root {
  --pb-charcoal: #1a1a1a;
  --pb-gold: #c9a227;
  --pb-gold-light: #e0bd4a;
  --pb-ink: #1f2933;
  --pb-muted: #5b6673;
  --pb-line: #e6e6e6;
  --pb-bg-soft: #f7f7f8;
  --pb-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

.lbc-pb-main { color: var(--pb-ink); }
.lbc-pb-main img { max-width: 100%; height: auto; }

/* Conteneur central commun */
.lbc-pb-h2, .lbc-pb-h3, .lbc-pb-text, .lbc-pb-imgwrap, .lbc-pb-figure,
.lbc-pb-btnwrap, .lbc-pb-cols, .lbc-pb-cards {
  max-width: 72rem; margin-left: auto; margin-right: auto;
  padding-left: 1.25rem; padding-right: 1.25rem;
}

/* Titres */
.lbc-pb-h2 { font-family: var(--pb-serif); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin: 2.5rem auto 1rem; }
.lbc-pb-h3 { font-family: var(--pb-serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; margin: 2rem auto .75rem; }

/* Texte */
.lbc-pb-text { font-size: 1.05rem; line-height: 1.75; margin: 1rem auto; }
.lbc-pb-text p { margin: 0 0 1rem; }
.lbc-pb-text a { color: var(--pb-gold); text-decoration: underline; }
.lbc-pb-text a:hover { text-decoration: none; }
.lbc-pb-text ul, .lbc-pb-text ol { margin: 0 0 1rem 1.5rem; }
.lbc-pb-text li { margin: .3rem 0; }

/* Images */
.lbc-pb-imgwrap, .lbc-pb-figure { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.lbc-pb-img { display: block; width: 100%; border-radius: .75rem; }
.lbc-pb-figure { margin-block: 1.5rem; }
.lbc-pb-cap { text-align: center; color: var(--pb-muted); font-size: .85rem; margin-top: .5rem; }

/* Boutons */
.lbc-pb-btnwrap { margin: 1.5rem auto; }
.lbc-pb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.5rem; border-radius: .5rem; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s;
}
.lbc-pb-btn-gold { background: var(--pb-gold); color: var(--pb-charcoal); }
.lbc-pb-btn-gold:hover { background: var(--pb-gold-light); }
.lbc-pb-btn-outline { border: 1px solid var(--pb-charcoal); color: var(--pb-charcoal); background: transparent; }
.lbc-pb-btn-outline:hover { background: var(--pb-charcoal); color: #fff; }

/* Hero */
.lbc-pb-hero {
  background: var(--pb-charcoal); background-size: cover; background-position: center;
  color: #fff; padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}
.lbc-pb-hero-inner { max-width: 60rem; margin: 0 auto; text-align: center; }
.lbc-pb-hero-title { font-family: var(--pb-serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; margin: 0 0 1rem; }
.lbc-pb-hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.85); margin: 0 auto 1.75rem; max-width: 42rem; }

/* Conteneurs Section / Colonne (imbrication façon Elementor) */
.lbc-pb-section { width: 100%; }
.lbc-pb-row {
  max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.lbc-pb-section-full > .lbc-pb-row { max-width: none; }
.lbc-pb-gap-sm > .lbc-pb-row { gap: .75rem; }
.lbc-pb-gap-md > .lbc-pb-row { gap: 1.5rem; }
.lbc-pb-gap-lg > .lbc-pb-row { gap: 2.5rem; }
.lbc-pb-va-center > .lbc-pb-row { align-items: center; }
.lbc-pb-va-bottom > .lbc-pb-row { align-items: flex-end; }
.lbc-pb-column { flex: 1 1 0; min-width: 0; }
.lbc-pb-col-25  { flex: 0 0 calc(25%  - 1.5rem); }
.lbc-pb-col-33  { flex: 0 0 calc(33.333% - 1.5rem); }
.lbc-pb-col-50  { flex: 0 0 calc(50%  - 1.5rem); }
.lbc-pb-col-66  { flex: 0 0 calc(66.666% - 1.5rem); }
.lbc-pb-col-75  { flex: 0 0 calc(75%  - 1.5rem); }
.lbc-pb-col-100 { flex: 0 0 100%; }
/* Les colonnes internes n'ont pas de marge horizontale propre (déjà dans .lbc-pb-row) */
.lbc-pb-column > .lbc-pb-h2, .lbc-pb-column > .lbc-pb-h3, .lbc-pb-column > .lbc-pb-text,
.lbc-pb-column > .lbc-pb-imgwrap, .lbc-pb-column > .lbc-pb-figure, .lbc-pb-column > .lbc-pb-btnwrap,
.lbc-pb-column > .lbc-pb-cards, .lbc-pb-column > .lbc-pb-cols {
  max-width: none; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0;
}
@media (max-width: 720px) {
  .lbc-pb-column, .lbc-pb-col-25, .lbc-pb-col-33, .lbc-pb-col-50,
  .lbc-pb-col-66, .lbc-pb-col-75, .lbc-pb-col-100 { flex: 0 0 100%; }
}

/* Colonnes */
.lbc-pb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .lbc-pb-cols { grid-template-columns: 1fr; } }
.lbc-pb-col { font-size: 1.05rem; line-height: 1.7; }
.lbc-pb-col p { margin: 0 0 1rem; }

/* Cartes */
.lbc-pb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.lbc-pb-card { background: #fff; border: 1px solid var(--pb-line); border-radius: .75rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.lbc-pb-card-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.lbc-pb-card-title { font-family: var(--pb-serif); font-size: 1.2rem; font-weight: 600; margin: 0 0 .5rem; }
.lbc-pb-card-text { color: var(--pb-muted); margin: 0; line-height: 1.6; }

/* Appel a l'action */
.lbc-pb-cta { background: var(--pb-charcoal); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; margin: 2.5rem 0; }
.lbc-pb-cta-title { font-family: var(--pb-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 .75rem; }
.lbc-pb-cta-text { color: rgba(255,255,255,.8); max-width: 40rem; margin: 0 auto 1.5rem; }

/* Espacements */
.lbc-pb-spacer-sm { height: 1.5rem; }
.lbc-pb-spacer-md { height: 3rem; }
.lbc-pb-spacer-lg { height: 5rem; }

/* Grille d'articles dynamique (composant "posts") */
.lbc-pb-posts { max-width:72rem; margin:1.5rem auto; padding:0 1.25rem;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.5rem; }
.lbc-pb-post { display:flex; flex-direction:column; background:#fff; border:1px solid var(--pb-line);
  border-radius:.75rem; overflow:hidden; text-decoration:none; color:inherit; transition:box-shadow .2s, transform .2s; }
.lbc-pb-post:hover { box-shadow:0 8px 24px rgba(0,0,0,.08); transform:translateY(-2px); }
.lbc-pb-post-img { display:block; height:160px; background:#ecebe7 center/cover no-repeat; }
.lbc-pb-post-body { padding:1rem 1.1rem 1.25rem; display:flex; flex-direction:column; gap:.4rem; }
.lbc-pb-post-cat { font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--pb-gold); font-weight:700; }
.lbc-pb-post-title { font-family:var(--pb-serif); font-size:1.1rem; font-weight:600; line-height:1.3; }
.lbc-pb-post-meta { font-size:.78rem; color:var(--pb-muted); margin-top:auto; }

/* FAQ / accordeon (sans JS, via <details>) */
.lbc-pb-faq { max-width:52rem; margin:1.5rem auto; padding:0 1.25rem; }
.lbc-pb-faq-item { border:1px solid var(--pb-line); border-radius:.6rem; margin-bottom:.6rem; background:#fff; }
.lbc-pb-faq-item summary { cursor:pointer; padding:.9rem 1.1rem; font-weight:600; list-style:none; position:relative; }
.lbc-pb-faq-item summary::-webkit-details-marker { display:none; }
.lbc-pb-faq-item summary::after { content:"+"; position:absolute; right:1.1rem; color:var(--pb-gold); font-weight:700; }
.lbc-pb-faq-item[open] summary::after { content:"–"; }
.lbc-pb-faq-a { padding:0 1.1rem 1rem; color:var(--pb-muted); line-height:1.65; }

/* Temoignages */
.lbc-pb-quotes { max-width:72rem; margin:1.5rem auto; padding:0 1.25rem; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.25rem; }
.lbc-pb-quote { background:#fff; border:1px solid var(--pb-line); border-radius:.75rem; padding:1.5rem; margin:0; }
.lbc-pb-quote blockquote { margin:0 0 1rem; font-size:1.05rem; line-height:1.6; font-style:italic; color:var(--pb-ink); }
.lbc-pb-quote blockquote::before { content:"“"; color:var(--pb-gold); font-size:1.6rem; margin-right:.15rem; }
.lbc-pb-quote figcaption strong { display:block; }
.lbc-pb-quote figcaption span { color:var(--pb-muted); font-size:.85rem; }

/* Galerie */
.lbc-pb-gallery { max-width:72rem; margin:1.5rem auto; padding:0 1.25rem; display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.75rem; }
.lbc-pb-gal-img { width:100%; height:170px; object-fit:cover; border-radius:.6rem; }

/* Capture d'e-mail : ressource à télécharger / newsletter */
.lbc-pb-leadbox {
  max-width: 52rem; margin: 2rem auto; padding: 2rem 1.75rem;
  background: var(--pb-charcoal); color: #fff; border-radius: 1rem;
  border: 1px solid rgba(201,162,39,.35);
}
.lbc-pb-lead-title { font-family: var(--pb-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 0 0 .6rem; }
.lbc-pb-lead-text { color: rgba(255,255,255,.78); margin: 0 0 1.4rem; line-height: 1.6; }
.lbc-pb-lead { display: flex; flex-direction: column; gap: 1rem; }
.lbc-pb-lead-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.lbc-pb-lead label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.9); }
.lbc-pb-lead input {
  font: inherit; padding: .65rem .8rem; border-radius: .6rem; color: var(--pb-ink); background: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.lbc-pb-lead input:focus { outline: none; border-color: var(--pb-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.3); }
.lbc-pb-lead .lbc-pb-btn { align-self: flex-start; border: 0; cursor: pointer; }
.lbc-pb-lead button:disabled { opacity: .6; cursor: default; }
.lbc-pb-lead-rgpd { margin: 1rem 0 0; font-size: .78rem; color: rgba(255,255,255,.55); }
.lbc-pb-leadbox .lbc-pb-form-msg.ok { background: rgba(226,245,230,.95); color: #1c6b30; }
.lbc-pb-leadbox .lbc-pb-form-msg.err { background: rgba(253,236,234,.95); color: #a12; }

/* Formulaire de contact */
.lbc-pb-formwrap { max-width: 46rem; margin: 1.75rem auto; padding: 0 1.25rem; }
.lbc-pb-form { display: flex; flex-direction: column; gap: 1rem; }
.lbc-pb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .lbc-pb-form-grid { grid-template-columns: 1fr; } }
.lbc-pb-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--pb-ink); }
.lbc-pb-form input, .lbc-pb-form textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--pb-line); border-radius: .6rem; background: #fff; color: var(--pb-ink);
}
.lbc-pb-form input:focus, .lbc-pb-form textarea:focus { outline: none; border-color: var(--pb-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.lbc-pb-form textarea { resize: vertical; }
.lbc-pb-form .lbc-pb-btn { align-self: flex-start; border: 0; cursor: pointer; }
.lbc-pb-form button:disabled { opacity: .6; cursor: default; }
.lbc-pb-form-msg:empty { display: none; }
.lbc-pb-form-msg { padding: .7rem .9rem; border-radius: .6rem; font-size: .9rem; }
.lbc-pb-form-msg.ok { background: #e2f5e6; color: #1c6b30; }
.lbc-pb-form-msg.err { background: #fdecea; color: #a12; }
.lbc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Réseaux sociaux */
.lbc-pb-social { max-width: 72rem; margin: 1.25rem auto; padding: 0 1.25rem; display: flex; gap: .6rem; }
.lbc-pb-social-center { justify-content: center; }
.lbc-pb-social-right { justify-content: flex-end; }
.lbc-pb-soc-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pb-charcoal); color: #fff; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.lbc-pb-soc-link:hover { background: var(--pb-gold); color: var(--pb-charcoal); transform: translateY(-2px); }
.lbc-pb-soc-link svg { width: 20px; height: 20px; fill: currentColor; }

/* Video (ratio 16:9) et carte */
.lbc-pb-video { max-width:56rem; margin:1.75rem auto; padding:0 1.25rem; }
.lbc-pb-video-frame { position:relative; padding-top:56.25%; border-radius:.75rem; overflow:hidden; background:#000; }
.lbc-pb-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.lbc-pb-map { max-width:72rem; margin:1.75rem auto; padding:0 1.25rem; }
.lbc-pb-map iframe { width:100%; height:100%; border:0; border-radius:.75rem; }
