/* ==========================================================================
   Baby Boom — composants de contenu (site + éditeur de blocs)
   ========================================================================== */

@font-face { font-family: "Quote Note"; src: url("../fonts/QuoteNote-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }

:root {
  --bb-cream: #FEF8F1;
  --bb-paper: #FFFCF7;
  --bb-ink: #213438;
  --bb-pink: #E35A8D;
  --bb-pink-d: #C03C71;
  --bb-green: #99B85A;
  --bb-green-d: #5C7A22;
  --bb-yellow: #F7D94C;
  --bb-yellow-d: #B79A00;
  --bb-line: rgba(33, 52, 56, 0.1);
}

/* ---------- Base typographique du contenu ---------- */
.editor-styles-wrapper,
.bb-content {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--bb-ink);
  -webkit-font-smoothing: antialiased;
}
.bb-content p,
.editor-styles-wrapper p { font-size: 16.5px; line-height: 1.65; margin: 0; }
.bb-content h2, .bb-content h3,
.editor-styles-wrapper h2, .editor-styles-wrapper h3 { margin: 0; letter-spacing: -0.01em; color: inherit; }
.bb-content a, .editor-styles-wrapper a { color: var(--bb-pink); text-decoration: none; }
.bb-content a:hover { color: var(--bb-green); }

/* ---------- Pastilles décoratives : textes script (Quote Note) ---------- */
.bb-script { font-family: "Quote Note", cursive; font-size: clamp(22px, 2.1vw, 30px) !important; line-height: 1.25 !important; margin: 0; }
.bb-script--pink { color: var(--bb-pink); }
.bb-script--green { color: var(--bb-green); }
.bb-script--yellow { color: var(--bb-yellow); }

/* ---------- Grilles ---------- */
.bb-grid, .bb-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { display: grid; gap: 14px; }
.bb-grid--s, .bb-grid--s > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bb-grid--m, .bb-grid--m > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.bb-grid--l, .bb-grid--l > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Sections de page ---------- */
.bb-section > h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.bb-section > .bb-intro { font-size: 16px; line-height: 1.55; margin: -12px 0 18px; opacity: 0.78; }

/* Panneau teinté « L'essentiel » */
.bb-panel { border-radius: 28px; padding: 26px 30px; }
.bb-panel > h2 { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.bb-panel > .bb-note { margin: -8px 0 14px; opacity: 0.7; font-size: 15px; }
.bb-panel--pink { background: rgba(227, 90, 141, 0.1); }
.bb-panel--green { background: rgba(153, 184, 90, 0.14); }
.bb-panel--yellow { background: rgba(247, 217, 76, 0.2); }
.bb-panel--neutral { background: rgba(33, 52, 56, 0.05); }
.bb-points { gap: 18px; }
.bb-point-title { font-size: 17px !important; font-weight: 700 !important; margin: 0 0 5px !important; letter-spacing: 0 !important; }
.bb-point p { font-size: 15px; line-height: 1.5; opacity: 0.82; }

/* ---------- Cartes ---------- */
.bb-card {
  border: 2px solid var(--bb-line);
  border-radius: 22px;
  padding: 20px 22px;
  background: #fff;
}
.bb-card > * + * { margin-top: 7px; }
.bb-card-tag { font-size: 12px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bb-pink); line-height: 1.4 !important; }
.bb-card-title { font-size: 17.5px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
.bb-card p { font-size: 15px; line-height: 1.5; opacity: 0.82; }
.bb-card p.bb-card-strong { font-weight: 700; opacity: 1; font-size: 15px; letter-spacing: 0.04em; }
.bb-card p.bb-card-tag { opacity: 1; font-size: 12px; }
.bb-card .bb-card-link, .bb-card .bb-more { opacity: 1; font-size: 14px; font-weight: 700; margin-top: 12px; }
.bb-card--pink { border: 3px solid var(--bb-pink); }
.bb-card--green { border: 3px solid var(--bb-green); }
.bb-card--yellow { border: 3px solid var(--bb-yellow); }
.bb-card--pink .bb-card-title, .bb-card--pink .bb-card-strong { color: var(--bb-pink-d); }
.bb-card--green .bb-card-title, .bb-card--green .bb-card-strong { color: var(--bb-green-d); }
.bb-card--yellow .bb-card-title, .bb-card--yellow .bb-card-strong { color: var(--bb-yellow-d); }
.bb-card--plain { border: 2px solid rgba(33, 52, 56, 0.07); border-radius: 24px; padding: 22px 20px; }
.bb-card--plain .bb-card-title { font-size: 17.5px !important; }
.bb-card--big { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.bb-card--big > * + * { margin-top: 0; }
.bb-card--big .bb-card-title { font-size: 19px !important; font-weight: 800 !important; }
.bb-card--big p { font-size: 15px; }

/* ---------- Définitions (mentions légales) ---------- */
.bb-defs { margin-top: 8px; }
.bb-def { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 2px solid rgba(33, 52, 56, 0.07); }
.bb-def p.bb-def-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bb-pink); flex: none; width: 200px; line-height: 1.6; }
.bb-def p.bb-def-value { font-size: 16px; line-height: 1.55; flex: 1; min-width: 240px; }

/* ---------- Accordéons ---------- */
.wp-block-details {
  background: #fff;
  border: 2px solid var(--bb-line);
  border-radius: 24px;
  padding: 0 26px;
  margin: 0;
}
.wp-block-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { content: ""; }
.wp-block-details > summary::after { content: "+"; color: var(--bb-pink); font-size: 24px; font-weight: 800; flex: none; line-height: 1; }
.wp-block-details[open] > summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { margin-top: 0; margin-bottom: 12px; }
.wp-block-details > :last-child { margin-bottom: 24px; }
.wp-block-details p { font-size: 16.5px; line-height: 1.65; }
.wp-block-details .bb-more { margin-top: 4px; }
.wp-block-details .bb-more a { font-size: 15px; font-weight: 700; }
.wp-block-details .bb-grid { margin-top: 6px; }
.wp-block-details .wp-block-list, .bb-content .wp-block-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.wp-block-details .wp-block-list li, .bb-content .wp-block-list li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.wp-block-details .wp-block-list li::before, .bb-content .wp-block-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--bb-pink);
}
/* accordéons consécutifs : plus serrés que le reste de la page */
.bb-main__inner > .wp-block-details + .wp-block-details { margin-top: -22px; }

/* ---------- Boutons « pastille » ---------- */
.wp-block-buttons.bb-pills, .wp-block-buttons.bb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.bb-pills { padding-top: 8px; }
.wp-block-button.bb-pill .wp-block-button__link {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bb-pill--pink .wp-block-button__link { background: rgba(227, 90, 141, 0.12); color: var(--bb-pink-d); }
.bb-pill--pink .wp-block-button__link:hover { background: var(--bb-pink); color: #fff; }
.bb-pill--green .wp-block-button__link { background: rgba(153, 184, 90, 0.16); color: var(--bb-green-d); }
.bb-pill--green .wp-block-button__link:hover { background: var(--bb-green); color: #fff; }
.bb-pill--yellow .wp-block-button__link { background: rgba(247, 217, 76, 0.3); color: var(--bb-ink); }
.bb-pill--yellow .wp-block-button__link:hover { background: var(--bb-yellow); color: var(--bb-ink); }
.bb-pill--dark .wp-block-button__link { background: var(--bb-ink); color: var(--bb-cream); }
.bb-pill--dark .wp-block-button__link:hover { background: var(--bb-pink); color: #fff; }
.bb-pill--white .wp-block-button__link { background: #fff; color: var(--bb-ink); border: 2px solid rgba(33, 52, 56, 0.12); padding: 14px 28px; font-size: 16px; }
.bb-pill--white .wp-block-button__link:hover { border-color: var(--bb-green); color: var(--bb-green-d); background: #fff; }
.bb-pill--ghost .wp-block-button__link { background: rgba(255, 255, 255, 0.2); color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); }
.bb-pill--ghost .wp-block-button__link:hover { background: #fff; color: var(--bb-pink-d); }
/* bouton principal rose (accueil) */
.bb-actions .bb-pill--pink .wp-block-button__link { background: var(--bb-pink); color: #fff; font-size: 16px; padding: 16px 30px; box-shadow: 0 4px 0 var(--bb-pink-d); }
.bb-actions .bb-pill--pink .wp-block-button__link:hover { background: var(--bb-pink-d); color: #fff; }
.bb-pills .bb-pill--pink .wp-block-button__link { background: rgba(227, 90, 141, 0.12); color: var(--bb-pink-d); box-shadow: none; padding: 13px 24px; font-size: 15px; }
.bb-pills .bb-pill--pink .wp-block-button__link:hover { background: var(--bb-pink); color: #fff; }
.bb-actions .bb-pill--dark .wp-block-button__link { padding: 14px 26px; }
.bb-step .bb-pill--white .wp-block-button__link { background: #fff; color: var(--bb-pink-d); border: 0; font-size: 15px; padding: 12px 22px; }
.bb-step .bb-pill--white .wp-block-button__link:hover { background: var(--bb-yellow); color: var(--bb-ink); }
.bb-step .bb-pill--ghost .wp-block-button__link { font-size: 15px; padding: 12px 22px; }

/* ---------- Citation ---------- */
.wp-block-quote.bb-quote { margin: 0; padding: 20px 24px; background: rgba(153, 184, 90, 0.14); border: 0; border-radius: 22px; }
.wp-block-quote.bb-quote p { font-size: 16.5px; line-height: 1.6; font-style: italic; }

/* ---------- Notes ---------- */
.bb-content p.bb-note { font-size: 14.5px; opacity: 0.7; }

/* ---------- Photos ---------- */
.bb-photo { position: relative; margin: 0; overflow: hidden; background: rgba(153, 184, 90, 0.22); border-radius: 28px; aspect-ratio: 16 / 9; }
.bb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-photo--wide { aspect-ratio: 21 / 9; }
.bb-photo--landscape { aspect-ratio: 16 / 9; }
.bb-photo--tab { aspect-ratio: 4 / 3; border-radius: 26px; background: rgba(153, 184, 90, 0.18); }
.bb-photo--square { aspect-ratio: 1 / 1; border-radius: 20px; }
.bb-photo--dark { aspect-ratio: 16 / 10; border-radius: 24px; background: rgba(254, 248, 241, 0.12); }
.bb-photo--contact { aspect-ratio: 16 / 11; border-radius: 30px; background: rgba(153, 184, 90, 0.2); }
.bb-photo--blob { aspect-ratio: 1 / 1; border-radius: 44% 56% 52% 48% / 50% 46% 54% 50%; background: var(--bb-yellow); }
.bb-tint-yellow { background: rgba(247, 217, 76, 0.3); }
.bb-tint-pink { background: rgba(227, 90, 141, 0.2); }
.bb-tint-green { background: rgba(153, 184, 90, 0.25); }
/* sur le site, un emplacement photo resté vide est masqué (sauf la bulle de l'accueil) */
.bb-content .bb-photo.is-empty:not(.bb-photo--blob) { display: none; }
.bb-picto { margin: 0; flex: none; }
.bb-picto img { height: 104px; width: auto; display: block; }
.bb-inline-img img { max-width: 100%; height: auto; }
.bb-deco { margin: 0; position: absolute; z-index: 2; }
.bb-deco img { width: 100%; height: auto; display: block; }

/* ---------- Mise en page de l'éditeur ---------- */
.editor-styles-wrapper .bb-photo:not(:has(img[src])) { aspect-ratio: auto; min-height: 140px; }
.editor-styles-wrapper .wp-block-details > summary { cursor: text; }
