/* Boiseries Bégin 2026 — habillage du site (maquettes validées en octobre 2026). */

:root {
  --bb-rouge: #B20838;
  --bb-rouge-fonce: #8a062b;
  --bb-rouge-pale: #fff4f6;
  --bb-encre: #2b2320;
  --bb-texte: #4a3f3a;
  --bb-texte-doux: #5c514b;
  --bb-sable: #f6f2ee;
  --bb-sable-fonce: #efe9e2;
  --bb-trait: #e8e2db;
  --bb-trait-fort: #cfc5bb;
  --bb-blanc: #ffffff;
  --bb-pied: #2b2320;
  --bb-pied-texte: #e9e2dc;
  --bb-police-titre: Raleway, 'Helvetica Neue', Arial, sans-serif;
  --bb-police-texte: Lato, 'Helvetica Neue', Arial, sans-serif;
  --bb-rayon: 10px;
  --bb-rayon-bouton: 6px;
  --bb-largeur: 1200px;
  --bb-gouttiere: 24px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.bb-sans-defilement { overflow: hidden; }

body.bb2026 {
  margin: 0;
  background: var(--bb-blanc);
  color: var(--bb-encre);
  font-family: var(--bb-police-texte);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bb2026 img { max-width: 100%; height: auto; }
.bb2026 a { color: var(--bb-rouge); }
.bb2026 a:hover { color: var(--bb-rouge-fonce); }
.bb2026 :focus-visible { outline: 3px solid var(--bb-rouge); outline-offset: 2px; }
.bb2026 h1, .bb2026 h2, .bb2026 h3 { font-family: var(--bb-police-titre); color: var(--bb-encre); line-height: 1.15; margin: 0; }

.bb-visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.bb-evitement {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--bb-encre); color: var(--bb-blanc) !important;
  padding: 10px 16px; border-radius: var(--bb-rayon-bouton); text-decoration: none;
}
.bb-evitement:focus { top: 12px; }

#contenu:focus { outline: none; }

.bb-conteneur { max-width: var(--bb-largeur); margin: 0 auto; padding: 0 var(--bb-gouttiere); }

.bb-section { padding: 64px 0; }
.bb-section--sable { background: var(--bb-sable); }
.bb-section--serree { padding: 40px 0; }

.bb-pile { display: flex; flex-direction: column; gap: 16px; }
.bb-pile--large { gap: 28px; }

.bb-surtitre {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bb-rouge-fonce);
}
.bb-titre-1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }
.bb-titre-2 { font-weight: 700; font-size: clamp(26px, 3vw, 32px); }
.bb-titre-3 { font-weight: 700; font-size: 20px; }
.bb-chapeau { margin: 0; font-size: 19px; line-height: 1.55; color: var(--bb-texte); }
.bb-texte-doux { margin: 0; color: var(--bb-texte); }

.bb-entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.bb-lien-fleche { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Boutons ---------- */

.bb-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--bb-rayon-bouton);
  background: var(--bb-rouge); color: var(--bb-blanc) !important;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
  border: 1px solid var(--bb-rouge); cursor: pointer; text-align: center;
}
.bb-bouton:hover { background: var(--bb-rouge-fonce); border-color: var(--bb-rouge-fonce); }
.bb-bouton--grand { font-size: 17px; padding: 16px 28px; }
.bb-bouton--contour { background: var(--bb-blanc); color: var(--bb-encre) !important; border-color: var(--bb-trait-fort); }
.bb-bouton--contour:hover { background: var(--bb-sable); border-color: var(--bb-encre); }
.bb-bouton--sombre { background: var(--bb-encre); border-color: var(--bb-encre); }
.bb-bouton--sombre:hover { background: #000; border-color: #000; }
.bb-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */

.bb-entete { position: sticky; top: 0; z-index: 50; background: var(--bb-blanc); border-bottom: 1px solid var(--bb-trait); }
.admin-bar .bb-entete { top: 32px; }
.bb-entete__rangee { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.bb-logo { display: flex; flex: 0 0 auto; }
.bb-logo img { height: 52px; width: auto; display: block; }

.bb-nav { flex: 1 1 auto; }
.bb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bb-nav a { color: var(--bb-encre); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.bb-nav a:hover { color: var(--bb-rouge); }
.bb-nav a[aria-current="page"] { color: var(--bb-rouge); border-bottom-color: var(--bb-rouge); }
.bb-nav__soumission { display: none !important; }

.bb-entete__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.bb-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bb-encre) !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.bb-tel .bb-icone { color: var(--bb-rouge); }
.bb-entete__soumission { min-height: 44px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }

.bb-menu-bouton {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--bb-encre); border-radius: var(--bb-rayon-bouton); cursor: pointer;
  align-items: center; justify-content: center;
}
.bb-menu-bouton__fermer { display: none; }
.bb-entete--ouverte .bb-menu-bouton__ouvrir { display: none; }
.bb-entete--ouverte .bb-menu-bouton__fermer { display: inline-flex; }

@media (max-width: 1079px) {
  .bb-entete__rangee { min-height: 68px; gap: 12px; justify-content: space-between; }
  .bb-logo img { height: 42px; }
  .bb-menu-bouton { display: inline-flex; }
  .bb-entete__soumission { display: none; }
  .bb-tel span { display: none; }
  .bb-tel { width: 44px; justify-content: center; }
  .bb-nav {
    display: none; position: fixed; inset: 68px 0 0 0; z-index: 49;
    background: var(--bb-blanc); padding: 16px var(--bb-gouttiere) 32px; overflow-y: auto;
    border-top: 1px solid var(--bb-trait);
  }
  .admin-bar .bb-nav { inset: 114px 0 0 0; }
  .bb-entete--ouverte .bb-nav { display: flex; flex-direction: column; gap: 20px; }
  .bb-nav ul { flex-direction: column; gap: 0; }
  .bb-nav li { border-bottom: 1px solid var(--bb-trait); }
  .bb-nav a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 0; }
  .bb-nav__soumission { display: inline-flex !important; }
}

/* ---------- Accueil ---------- */

.bb-heros { background: var(--bb-sable); }
.bb-heros__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.bb-heros__image { width: 100%; height: 380px; object-fit: cover; object-position: 62% 50%; border-radius: var(--bb-rayon); display: block; }
.bb-coches { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--bb-texte); }
.bb-coches li::before { content: "✓ "; color: var(--bb-rouge); font-weight: 700; }

.bb-grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.bb-carte {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  color: var(--bb-encre) !important; background: var(--bb-blanc);
  border: 1px solid var(--bb-trait); border-radius: var(--bb-rayon);
  transition: border-color .15s, box-shadow .15s;
}
.bb-carte:hover { border-color: var(--bb-trait-fort); box-shadow: 0 6px 20px rgba(43, 35, 32, .08); }
.bb-carte__visuel { background: var(--bb-blanc); height: 200px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 20px 16px 0; }
.bb-carte__visuel img { max-height: 172px; width: auto; object-fit: contain; }
.bb-carte__visuel--centre { align-items: center; padding: 20px; }
.bb-carte__visuel--centre img { max-height: 160px; }
.bb-carte__corps { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.bb-carte__titre { font-family: var(--bb-police-titre); font-weight: 700; font-size: 20px; }
.bb-carte__texte { font-size: 15px; color: var(--bb-texte-doux); }

.bb-grille-familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.bb-famille {
  background: var(--bb-blanc); border-radius: var(--bb-rayon); padding: 22px 16px 18px;
  text-decoration: none; color: var(--bb-encre) !important;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  border: 1px solid transparent;
}
.bb-famille:hover { border-color: var(--bb-trait-fort); }
.bb-famille img { height: 240px; width: auto; object-fit: contain; }
.bb-famille__nom { font-family: var(--bb-police-titre); font-weight: 700; font-size: 18px; }
.bb-famille__nombre { font-size: 14px; color: var(--bb-texte-doux); }

.bb-etapes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.bb-etapes li { display: flex; flex-direction: column; gap: 10px; }
.bb-etapes__numero { font-family: var(--bb-police-titre); font-weight: 700; font-size: 40px; line-height: 1; color: var(--bb-rouge); }
.bb-etapes__titre { font-weight: 700; font-size: 19px; }
.bb-etapes__texte { font-size: 16px; color: var(--bb-texte); }

.bb-visite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; align-items: center; }
.bb-visite__image { width: 100%; height: 300px; object-fit: cover; border-radius: var(--bb-rayon); display: block; }
.bb-visite p { margin: 0; }

/* ---------- Pages intérieures ---------- */

.bb-tete-page { background: var(--bb-sable); padding: 40px 0 36px; }
.bb-tete-page .bb-pile { gap: 12px; }
.bb-tete-page .bb-pile > .bb-chapeau { max-width: 760px; }
.bb-fil { font-size: 14px; color: var(--bb-texte-doux); }
.bb-fil a { color: var(--bb-texte-doux); }
.bb-fil span[aria-current] { color: var(--bb-encre); }

.bb-puces { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bb-puces a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--bb-trait-fort); background: var(--bb-blanc);
  color: var(--bb-encre) !important; text-decoration: none; font-weight: 700; font-size: 15px;
}
.bb-puces a:hover, .bb-puces a[aria-current="page"] { border-color: var(--bb-rouge); background: var(--bb-rouge-pale); }

.bb-bloc-categorie { padding: 40px 0; border-bottom: 1px solid var(--bb-trait); }
.bb-bloc-categorie:last-child { border-bottom: 0; }
.bb-bloc-categorie .bb-entete-section { margin-bottom: 20px; }

.bb-grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 20px; }
.bb-grille-produits--larges { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.bb-produit {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--bb-encre) !important;
  background: var(--bb-blanc); border: 1px solid var(--bb-trait); border-radius: var(--bb-rayon); padding: 16px 14px 14px;
}
a.bb-produit:hover { border-color: var(--bb-trait-fort); box-shadow: 0 6px 20px rgba(43, 35, 32, .08); }
.bb-produit__visuel { background: var(--bb-blanc); border-radius: 6px; display: flex; align-items: center; justify-content: center; height: 230px; padding: 12px; }
.bb-produit__visuel img { max-height: 100%; width: auto; object-fit: contain; }
.bb-produit__visuel--bas { height: 150px; }
.bb-produit__nom { font-weight: 700; font-size: 16px; text-align: center; }
.bb-produit__plus {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 120px; border: 1px dashed var(--bb-trait-fort); border-radius: var(--bb-rayon);
  text-decoration: none; font-weight: 700; color: var(--bb-rouge) !important; text-align: center; padding: 16px;
}
.bb-produit__plus:hover { background: var(--bb-rouge-pale); border-color: var(--bb-rouge); }

.bb-essences { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bb-essences li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; text-align: center; font-size: 13px; color: var(--bb-texte); line-height: 1.3; }
.bb-essences img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bb-trait-fort); }
.bb-essences__titre { font-weight: 700; font-size: 15px; margin: 0 0 10px; }

.bb-finis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bb-finis li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--bb-texte-doux); }
.bb-finis img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bb-trait-fort); }

.bb-grille-finis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 16px; }
.bb-fini { display: flex; flex-direction: column; gap: 8px; }
.bb-fini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--bb-rayon); border: 1px solid var(--bb-trait); }
.bb-fini__nom { font-weight: 700; font-size: 15px; }
.bb-fini__code { font-size: 14px; color: var(--bb-texte-doux); }

/* Fiche porte */
.bb-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 56px; padding: 32px 0 56px; }
.bb-fiche__visuel { background: var(--bb-blanc); border-radius: 12px; padding: 40px; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.bb-fiche__visuel img { max-height: 560px; width: auto; }
.bb-fiche__infos { display: flex; flex-direction: column; gap: 24px; }
.bb-fiche__categorie { font-size: 15px; color: var(--bb-texte-doux); margin: 0; }
.bb-fiche__aide { margin: 0; font-size: 15px; color: var(--bb-texte); }
.bb-fiche__agrandir { font-size: 14px; }

/* Contenu libre (pages Entreprise, Soumission, Nous joindre) */
.bb-contenu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding: 48px 0 64px; align-items: start; }
.bb-contenu--plein { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.bb-contenu__texte > * + * { margin-top: 1em; }
.bb-contenu__texte h2, .bb-contenu__texte h3, .bb-contenu__texte h4 { font-family: var(--bb-police-titre); line-height: 1.25; }
.bb-contenu__texte h4 { font-size: 20px; }
.bb-contenu__aside img { border-radius: var(--bb-rayon); }
.bb-carte-info { background: var(--bb-sable); border-radius: var(--bb-rayon); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bb-carte-info p { margin: 0; }
.bb-carte-carte { width: 100%; height: 420px; border: 0; border-radius: var(--bb-rayon); display: block; }

@media (max-width: 860px) {
  .bb-contenu { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Bandeau d'appel à l'action */
.bb-bandeau { background: var(--bb-encre); color: var(--bb-pied-texte); border-radius: var(--bb-rayon); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.bb-bandeau h2 { color: var(--bb-blanc); font-size: 24px; }
.bb-bandeau p { margin: 6px 0 0; }

/* ---------- Formulaires Contact Form 7 ---------- */

.bb2026 .wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.bb2026 .wpcf7 form > p { margin: 0; }
.bb2026 .wpcf7 label { display: block; font-weight: 700; font-size: 15px; color: var(--bb-encre); margin-right: 0 !important; }
.bb2026 .wpcf7 label a { font-weight: 400; font-size: 14px; }
.bb2026 .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.bb2026 .wpcf7 input[type="text"],
.bb2026 .wpcf7 input[type="email"],
.bb2026 .wpcf7 input[type="tel"],
.bb2026 .wpcf7 input[type="date"],
.bb2026 .wpcf7 input[type="url"],
.bb2026 .wpcf7 select,
.bb2026 .wpcf7 textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px;
  color: var(--bb-encre); background: var(--bb-blanc);
  border: 1px solid var(--bb-trait-fort); border-radius: var(--bb-rayon-bouton);
}
.bb2026 .wpcf7 textarea { min-height: 120px; }
.bb2026 .wpcf7 input:focus, .bb2026 .wpcf7 select:focus, .bb2026 .wpcf7 textarea:focus { outline: 2px solid var(--bb-rouge); outline-offset: 1px; border-color: var(--bb-rouge); }
.bb2026 .wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.bb2026 .wpcf7 .wpcf7-list-item { margin: 0; }
.bb2026 .wpcf7 .wpcf7-list-item label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.bb2026 .wpcf7 input[type="radio"] { width: 20px; height: 20px; accent-color: var(--bb-rouge); }
.bb2026 .wpcf7 input[type="file"] { font-size: 15px; margin-top: 6px; }
.bb2026 .wpcf7 input[type="submit"] {
  min-height: 48px; padding: 12px 28px; border-radius: var(--bb-rayon-bouton); border: 1px solid var(--bb-rouge);
  background: var(--bb-rouge); color: var(--bb-blanc); font: inherit; font-weight: 700; cursor: pointer; align-self: flex-start;
}
.bb2026 .wpcf7 input[type="submit"]:hover { background: var(--bb-rouge-fonce); }
.bb2026 .wpcf7-not-valid-tip { font-size: 14px; color: var(--bb-rouge-fonce); }
.bb2026 .wpcf7 form .wpcf7-response-output { margin: 0; border-radius: var(--bb-rayon-bouton); padding: 12px 16px; }

.bb-formulaire { background: var(--bb-blanc); border-radius: var(--bb-rayon); padding: 24px; }
.bb-contact-pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; align-items: start; }

/* ---------- Pied de page ---------- */

.bb-pied { background: var(--bb-pied); color: var(--bb-pied-texte); font-size: 15px; line-height: 1.7; }
.bb-pied a { color: var(--bb-blanc); }
.bb-pied a:hover { color: var(--bb-pied-texte); }
.bb-pied__grille { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 40px; padding-bottom: 24px; }
.bb-pied__titre { color: var(--bb-blanc); display: block; margin-bottom: 4px; }
.bb-pied p { margin: 0; }
.bb-pied__liens { list-style: none; margin: 0; padding: 0; }
.bb-pied__bas { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(233, 226, 220, .18); font-size: 14px; }

/* ---------- Barre d'actions mobile ---------- */

.bb-barre-mobile { display: none; }

@media (max-width: 759px) {
  :root { --bb-gouttiere: 16px; }
  body.bb2026 { padding-bottom: 76px; }
  .bb-section { padding: 44px 0; }
  .bb-heros__grille { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .bb-heros__image { height: 200px; }
  .bb-boutons .bb-bouton { width: 100%; }
  .bb-fiche { gap: 28px; padding-top: 20px; }
  .bb-fiche__visuel { min-height: 0; padding: 24px; }
  .bb-fiche__visuel img { max-height: 420px; }
  .bb-produit__visuel { height: 190px; }
  .bb-famille img { height: 190px; }
  .bb-grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bb-grille-familles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bb-barre-mobile {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bb-blanc); border-top: 1px solid var(--bb-trait);
  }
  .bb-barre-mobile .bb-bouton { flex: 1; }
  .bb-barre-mobile .bb-bouton:last-child { flex: 2; }
}
