/* Cycles Blain — habillage du blog 1.0.1 (maquette validée le 5 nov. 2026).
 * 1.0.1 : recherche dans la photo du haut, catégories sur une seule ligne, titres un peu plus petits, polices du site imposées.
 * Tout est rangé sous #cbb pour ne pas toucher au reste ; l'en-tête et le pied de page viennent du site (cbvitrine). */

/* ---------- autres pages WordPress : on cache l'en-tête et le pied de page du thème, ceux du site les remplacent */
body.cbb-habille #masthead, body.cbb-habille #colophon, body.cbb-habille .site-header, body.cbb-habille .site-footer,
body.cbb-habille .ast-mobile-header-wrap, body.cbb-habille .ast-above-header-wrap, body.cbb-habille .ast-below-header-wrap,
body.cbb-habille .elementor-location-header, body.cbb-habille .elementor-location-footer,
body.cbb-habille header.ehf-header, body.cbb-habille footer.footer-width-fixer { display: none !important; }

body.cbb-page { margin: 0; background: #ffffff; }
body.cbb-page, body.cbb-habille { -webkit-font-smoothing: antialiased; }
.cbv [hidden], .cbb [hidden] { display: none !important; }

.cbb { --cbb-texte: #1d1d1f; --cbb-doux: #5c5650; --cbb-gris: #6e6e73; --cbb-or: #8c6a2e; --cbb-creme: #f7f3ec; --cbb-trait: #ece4d6; --cbb-bleu: #0b5cad;
  display: block; color: var(--cbb-texte); font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; background: #ffffff; overflow-x: clip; padding-bottom: 72px; }
.cbb *, .cbb *::before, .cbb *::after { box-sizing: border-box; }
.cbb a { color: var(--cbb-bleu); text-decoration: none; }
.cbb img { max-width: 100%; }
.cbb h1, .cbb h2, .cbb h3 { font-family: inherit; color: inherit; text-transform: none; }

.cbb-contenu { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cbb-surtitre { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cbb-or); }
.cbb-section { margin-top: 72px; }
.cbb-titre-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.cbb-titre-section h2, .cbb-bloc-magasins h2 { margin: 6px 0 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.cbb-tout { flex: none; font-size: 15px; font-weight: 800; }
.cbb .cbb-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 16px; background: var(--cbb-bleu); color: #ffffff; font-size: 16px; font-weight: 800; box-shadow: 0 12px 28px rgba(11, 92, 173, 0.28); }
.cbb .cbb-bouton:hover { background: #094c90; color: #ffffff; }

/* ---------- grande photo du haut */
.cbb-bandeau { position: relative; height: 420px; overflow: hidden; background: #2a2621; }
.cbb-bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
.cbb-bandeau-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,26,23,0.82) 0%, rgba(28,26,23,0.5) 55%, rgba(28,26,23,0.2) 100%); }
.cbb-bandeau-texte { position: relative; height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; color: #ffffff; }
.cbb-bandeau h1 { margin: 0; max-width: 900px; font-size: 50px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; }
.cbb-bandeau p { margin: 0; max-width: 580px; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.cbb-ariane { font-size: 13px; color: rgba(255,255,255,0.85); }
.cbb .cbb-ariane a { color: inherit; }
.cbb .cbb-ariane a:hover { text-decoration: underline; }

/* ---------- barre blanche : catégories + recherche */
.cbb-barre { position: relative; z-index: 2; margin-top: -32px; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 24px; background: #ffffff; box-shadow: 0 18px 44px rgba(60,45,20,0.14); }
.cbb-pastilles { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cbb-recherche { display: flex; align-items: center; gap: 10px; height: 52px; margin: 0; padding: 0 16px; border-radius: 16px; background: #ffffff; color: var(--cbb-gris); }
.cbb-recherche-haut { width: 380px; max-width: 100%; margin-top: 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.cbb-recherche-tel { display: none; }
.cbb-recherche input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 15px; color: var(--cbb-texte); }
.cbb .cbb-pastille { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3dccf; background: #ffffff; color: var(--cbb-texte); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cbb .cbb-pastille:hover { border-color: var(--cbb-or); }
.cbb .cbb-pastille.actif { background: var(--cbb-texte); border-color: var(--cbb-texte); color: #ffffff; }
.cbb-sous { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- cartes d'articles (titre toujours sous la photo) */
.cbb .cbb-carte { display: flex; flex-direction: column; gap: 12px; color: var(--cbb-texte); }
.cbb-carte-photo { display: block; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: var(--cbb-creme); }
.cbb-carte-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cbb .cbb-carte:hover .cbb-carte-photo img { transform: scale(1.03); }
.cbb-carte-texte { display: flex; flex-direction: column; gap: 6px; }
.cbb-carte-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cbb-or); }
.cbb-carte-titre { font-size: 17px; line-height: 1.3; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cbb .cbb-carte:hover .cbb-carte-titre { color: var(--cbb-bleu); }
.cbb-carte-date { font-size: 13px; color: var(--cbb-gris); }

.cbb-une { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cbb-une-cote { display: grid; gap: 20px; }
.cbb-carte-grande .cbb-carte-titre { font-size: 24px; line-height: 1.2; }
.cbb-une-cote .cbb-carte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.cbb-une-cote .cbb-carte-titre { font-size: 15px; }

.cbb-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
.cbb-section-liste { margin-top: 32px; }

/* ---------- pagination (les adresses /page/2/… ne changent pas) */
.cbb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.cbb-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--cbb-creme); color: var(--cbb-texte); font-size: 15px; font-weight: 800; }
.cbb-pages .page-numbers.current { background: var(--cbb-texte); color: #ffffff; }
.cbb-pages .page-numbers.dots { background: transparent; color: var(--cbb-gris); min-width: 0; }

/* ---------- guides d'achat */
.cbb-tuiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cbb .cbb-tuile { position: relative; display: block; height: 230px; border-radius: 24px; overflow: hidden; background: #2a2621; color: #ffffff; }
.cbb-tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cbb .cbb-tuile:hover img { transform: scale(1.04); }
.cbb-tuile-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,23,0) 35%, rgba(28,26,23,0.84) 100%); }
.cbb-tuile-texte { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.cbb-tuile-texte small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); }
.cbb-tuile-texte strong { font-size: 18px; line-height: 1.22; font-weight: 800; }

/* ---------- actus par magasin */
.cbb-bloc-magasins { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: 32px; background: var(--cbb-creme); }
.cbb-bloc-magasins > img { width: 100%; height: 280px; object-fit: cover; border-radius: 24px; }
.cbb-magasins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cbb .cbb-magasin { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 16px; background: #ffffff; border: 1px solid var(--cbb-trait); color: var(--cbb-texte); font-size: 15px; font-weight: 700; }
.cbb-magasin svg { flex: none; color: var(--cbb-or); }
.cbb .cbb-magasin:hover { border-color: var(--cbb-or); }
.cbb .cbb-magasin.actif { background: var(--cbb-texte); border-color: var(--cbb-texte); color: #ffffff; }

/* ---------- newsletter */
.cbb-lettre { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 40px; border-radius: 32px; border: 1px solid var(--cbb-trait); }
.cbb-lettre strong { display: block; margin-top: 6px; max-width: 640px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.cbb-lettre .cbb-bouton { flex: none; }

.cbb-vide { margin-top: 48px; padding: 48px 24px; border-radius: 32px; background: var(--cbb-creme); text-align: center; }
.cbb-vide h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.cbb-vide p { margin: 0 0 20px; color: var(--cbb-doux); }

/* ---------- article */
.cbb-article-haut { background: var(--cbb-creme); }
.cbb-article-haut-dedans { max-width: 1180px; margin: 0 auto; padding: 36px 24px 40px; display: flex; flex-direction: column; gap: 12px; }
.cbb-article-haut .cbb-ariane { color: var(--cbb-gris); }
.cbb-etiquette { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: #ffffff; border: 1px solid #e8dfcf; color: var(--cbb-or); font-size: 13px; font-weight: 700; }
.cbb-article-haut h1 { margin: 0; max-width: 900px; font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.cbb-article-date { font-size: 15px; color: var(--cbb-doux); }

.cbb-article-grille { display: grid; grid-template-columns: minmax(0, 760px) 320px; justify-content: space-between; gap: 48px; margin-top: 44px; }
.cbb-une-photo { margin: 0 0 28px; }
.cbb-une-photo img { display: block; width: 100%; height: auto; border-radius: 22px; }

.cbb-texte-corps { font-size: 18px; line-height: 1.7; color: #2c2a27; overflow-wrap: break-word; }
.cbb-texte-corps > :first-child { margin-top: 0; }
.cbb-texte-corps p { margin: 0 0 1.1em; }
.cbb-texte-corps h2 { margin: 1.6em 0 0.5em; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--cbb-texte); scroll-margin-top: 100px; }
.cbb-texte-corps h3 { margin: 1.4em 0 0.4em; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--cbb-texte); scroll-margin-top: 100px; }
.cbb-texte-corps h4 { margin: 1.2em 0 0.4em; font-size: 18px; font-weight: 800; color: var(--cbb-texte); }
.cbb-texte-corps a { color: var(--cbb-bleu); text-decoration: underline; text-underline-offset: 3px; }
.cbb-texte-corps ul, .cbb-texte-corps ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.cbb-texte-corps li { margin: 0.3em 0; }
.cbb-texte-corps img { height: auto; border-radius: 18px; }
.cbb-texte-corps figure { margin: 1.4em 0; }
.cbb-texte-corps figcaption, .cbb-texte-corps .wp-caption-text { margin-top: 8px; font-size: 13px; color: var(--cbb-gris); }
.cbb-texte-corps blockquote { margin: 1.4em 0; padding: 20px 24px; border-radius: 20px; background: var(--cbb-creme); font-weight: 600; }
.cbb-texte-corps table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.cbb-texte-corps th, .cbb-texte-corps td { padding: 10px 12px; border-bottom: 1px solid var(--cbb-trait); text-align: left; }
.cbb-texte-corps iframe { max-width: 100%; }
/* articles faits avec Elementor : on garde leur mise en page, mais dans la colonne de texte */
.cbb-texte-corps .elementor-section.elementor-section-stretched { width: 100% !important; left: 0 !important; }
.cbb-texte-corps .elementor-section .elementor-container { max-width: 100%; }
/* Elementor écrit parfois le texte en très gros ou en manuscrit : la police du site reprend la main */
.cbb-texte-corps .elementor-widget-text-editor, .cbb-texte-corps .elementor-heading-title { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important; }

.cbb-cote { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.cbb-sommaire { display: flex; flex-direction: column; }
.cbb-sommaire .cbb-surtitre { margin-bottom: 6px; }
.cbb .cbb-sommaire a { padding: 10px 0; border-bottom: 1px solid var(--cbb-trait); color: var(--cbb-texte); font-size: 15px; font-weight: 600; line-height: 1.35; }
.cbb .cbb-sommaire a:hover { color: var(--cbb-bleu); }
.cbb-carte-rdv { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 26px; background: #ffffff; border: 1px solid var(--cbb-trait); box-shadow: 0 18px 44px rgba(60,45,20,0.12); }
.cbb-carte-rdv-haut { display: flex; align-items: center; gap: 14px; }
.cbb-carte-rdv-haut img { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cbb-creme); }
.cbb-carte-rdv-haut > span { display: flex; flex-direction: column; gap: 2px; }
.cbb-carte-rdv-haut strong { font-size: 18px; line-height: 1.25; font-weight: 800; }
.cbb-carte-rdv-haut span span { font-size: 14px; line-height: 1.4; color: var(--cbb-doux); }
.cbb-carte-rdv .cbb-bouton { width: 100%; }

.cbb-liens-guides { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.cbb-liens-guides > span { font-size: 14px; font-weight: 700; color: var(--cbb-gris); }
.cbb-liens-guides > div { display: flex; flex-wrap: wrap; gap: 8px; }

.cbb-commentaires { max-width: 760px; font-size: 15px; }
.cbb-commentaires h2, .cbb-commentaires h3 { font-size: 22px; font-weight: 800; }
.cbb-commentaires ol, .cbb-commentaires ul { list-style: none; padding: 0; }
.cbb-commentaires textarea, .cbb-commentaires input[type="text"], .cbb-commentaires input[type="email"], .cbb-commentaires input[type="url"] { width: 100%; padding: 12px 14px; border: 1.5px solid #d9cfbf; border-radius: 14px; font: inherit; }
.cbb-commentaires input[type="submit"] { min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--cbb-bleu); color: #ffffff; font: inherit; font-weight: 800; cursor: pointer; }

/* ---------- petit bandeau « Aperçu » (seulement pour les personnes connectées) */
.cbb-apercu { position: fixed; left: 16px; bottom: 16px; z-index: 99999; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #1d1d1f; color: #ffffff; font: 600 13px Montserrat, Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.cbb-apercu a { color: #f0b77a; font-weight: 800; }

/* ---------- tablette */
@media (max-width: 1100px) {
  .cbb-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cbb-article-grille { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 1000px) {
  .cbb-pastilles { justify-content: flex-start; }
  .cbb-une { grid-template-columns: minmax(0, 1fr); }
  .cbb-une-cote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbb-une-cote .cbb-carte { display: flex; }
  .cbb-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbb-bloc-magasins { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .cbb-article-grille { grid-template-columns: minmax(0, 1fr); }
  .cbb-cote { position: static; }
  .cbb-sommaire { display: none !important; }
}

/* ---------- téléphone (maquette 390 px) */
@media (max-width: 700px) {
  .cbb { padding-bottom: 40px; }
  .cbb-contenu { padding: 0 16px; }
  .cbb-section { margin-top: 44px; }
  .cbb-titre-section { margin-bottom: 16px; }
  .cbb-titre-section h2, .cbb-bloc-magasins h2 { font-size: 24px; }
  .cbb-bandeau { height: 240px; }
  .cbb-bandeau-voile { background: linear-gradient(180deg, rgba(28,26,23,0.1) 20%, rgba(28,26,23,0.82) 100%); }
  .cbb-bandeau-texte { padding: 0 16px 42px; gap: 6px; }
  .cbb-bandeau .cbb-ariane { display: none; }
  .cbb-bandeau h1 { font-size: 28px; line-height: 1.12; }
  .cbb-bandeau p { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cbb-barre { margin: -22px -16px 0; padding: 0; gap: 14px; background: transparent; box-shadow: none; border-radius: 0; }
  .cbb-barre { flex-direction: column; align-items: stretch; }
  .cbb-recherche-haut { display: none; }
  .cbb-recherche-tel { display: flex; width: auto; margin: 0 16px; box-shadow: 0 12px 30px rgba(60,45,20,0.16); }
  .cbb-pastilles { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
  .cbb-pastilles::-webkit-scrollbar { display: none; }
  .cbb-sous { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .cbb-sous .cbb-magasin { flex: none; }
  .cbb-une { margin-top: 18px; gap: 18px; }
  .cbb-carte-grande .cbb-carte-titre { font-size: 21px; }
  .cbb-une-cote, .cbb-grille { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* liste compacte : petite photo à gauche, titre à droite */
  .cbb-une-cote .cbb-carte, .cbb-grille .cbb-carte { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; }
  .cbb-une-cote .cbb-carte-photo, .cbb-grille .cbb-carte-photo { aspect-ratio: 6 / 5; border-radius: 16px; }
  .cbb-une-cote .cbb-carte-titre, .cbb-grille .cbb-carte-titre { font-size: 15px; }
  .cbb-une-cote .cbb-carte-cat, .cbb-grille .cbb-carte-cat { font-size: 10px; }
  .cbb-carte-date { font-size: 12px; }
  .cbb-section-liste { margin-top: 24px; }
  .cbb-tuiles { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .cbb-tuiles::-webkit-scrollbar { display: none; }
  .cbb .cbb-tuile { flex: none; width: 210px; height: 200px; }
  .cbb-tuile-texte strong { font-size: 16px; }
  .cbb-bloc-magasins { padding: 22px 16px; border-radius: 26px; gap: 14px; }
  .cbb-bloc-magasins > img { display: none; }
  .cbb .cbb-magasin { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .cbb-lettre { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 16px; border-radius: 26px; margin-top: 16px; }
  .cbb-lettre strong { font-size: 19px; }
  .cbb-article-haut-dedans { padding: 20px 16px 22px; gap: 10px; }
  .cbb-article-haut h1 { font-size: 28px; line-height: 1.12; }
  .cbb-article-date { font-size: 13px; }
  .cbb-article-grille { margin-top: 0; gap: 28px; }
  .cbb-une-photo { margin: 0 -16px 22px; }
  .cbb-une-photo img { border-radius: 0; }
  .cbb-texte-corps { font-size: 16px; }
  .cbb-texte-corps h2 { font-size: 22px; }
  .cbb-texte-corps h3 { font-size: 19px; }
  .cbb-apercu { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
}

/* 1.0.1 — les réglages de police d'Elementor (titres, liens) ne s'appliquent pas à nos blocs */
#cbb, #cbb h1, #cbb h2, #cbb h3, #cbb a, #cbb strong, #cbb input, #cbb button { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: normal; }
#cbb .cbb-bandeau h1, #cbb .cbb-article-haut h1 { letter-spacing: -0.02em; }
#cbb .cbb-titre-section h2, #cbb .cbb-bloc-magasins h2 { letter-spacing: -0.01em; }
#cbb .cbb-carte-cat, #cbb .cbb-surtitre { letter-spacing: 0.08em; }
#cbb .cbb-texte-corps .elementor *:not(i):not([class*="icon"]) { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }
