/*
Theme Name: Bleu & Blanc — Blocksy Child
Theme URI: https://bleuetblanc.info/
Description: Thème enfant Blocksy éditorial pour Bleu & Blanc.
Author: Bleu & Blanc
Template: blocksy
Version: 0.7.5
Text Domain: bleu-et-blanc
*/

:root {
  --bb-navy: #002f49;
  --bb-navy-deep: #002237;
  --bb-navy-soft: #064f68;
  --bb-cyan: #18c7e6;
  --bb-cyan-strong: #00acd3;
  --bb-cyan-light: #75e3f2;
  --bb-pale: #effbfe;
  --bb-white: #fff;
  --bb-text: #052f48;
  --bb-muted: #587487;
  --bb-line: #ccebf2;
  --bb-ui-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --bb-display-font: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  --bb-shell: 1320px;
  --bb-shadow-soft: 0 14px 42px rgba(0, 70, 98, .09);
  --bb-shadow-card: 0 14px 34px rgba(0, 69, 96, .11);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bb-text);
  background: #f2fbfe;
  font-family: var(--bb-ui-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
a { text-underline-offset: .16em; }
img { max-width: 100%; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header média */
.bb-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  overflow: hidden;
  isolation: isolate;
  color: var(--bb-navy-deep);
  background: linear-gradient(106deg, #12c3e3 0%, #24cfe9 58%, #77e3f2 100%);
  border-bottom: 2px solid rgba(255, 255, 255, .72);
  box-shadow: 0 10px 30px rgba(0, 70, 97, .13);
}
.admin-bar .bb-site-header { top: 32px; }
.bb-header-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr 46px;
  align-items: center;
  gap: 34px;
  width: min(var(--bb-shell), calc(100% - 40px));
  min-height: 84px;
  margin-inline: auto;
}



/* Logo typographique validé */
.bb-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.bb-brand--wordmark {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transform: rotate(-1.4deg);
}
.bb-wordmark-main {
  display: block;
  color: #fff;
  font-family: var(--bb-display-font);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #003b58, 4px 4px 0 rgba(0, 59, 88, .18);
  white-space: nowrap;
}
.bb-wordmark-main i {
  color: #003b58;
  font-style: normal;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .65);
}
.bb-wordmark-sub {
  margin: 6px 0 0 4px;
  padding: 3px 7px;
  color: #fff;
  background: #003b58;
  border-radius: 5px;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(255, 255, 255, .20);
}

.bb-nav { justify-self: center; }
.bb-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bb-nav a {
  position: relative;
  display: block;
  padding: 11px 11px 10px;
  color: var(--bb-navy-deep);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 860;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease;
}
.bb-nav a:hover,
.bb-nav .current-menu-item > a,
.bb-nav .current_page_item > a {
  color: #fff;
  background: rgba(0, 48, 73, .22);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}
.bb-header-search {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--bb-navy-deep);
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 80, 108, .12);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.bb-header-search:hover {
  color: var(--bb-navy-deep);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 80, 108, .16);
}
.bb-header-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
.bb-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .82);
  border-radius: 13px;
  cursor: pointer;
}
.bb-menu-toggle span,
.bb-menu-toggle span::before,
.bb-menu-toggle span::after {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--bb-navy-deep);
  content: '';
}
.bb-menu-toggle span::before { position: absolute; top: -6px; }
.bb-menu-toggle span::after { position: absolute; top: 6px; }



/* Footer */
.bb-site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  color: #fff;
  background: linear-gradient(120deg, #002c45 0%, #064e68 62%, #078ca7 100%);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -14px 42px rgba(0, 63, 88, .08);
}
.bb-site-footer::before {
  position: absolute;
  right: -110px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  content: '';
}
.bb-footer-wave {
  height: 7px;
  background: linear-gradient(90deg, #18c9e8, #8ceefa 50%, #18c9e8);
}
.bb-footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-shell), calc(100% - 40px));
  margin-inline: auto;
  padding: 46px 0 28px;
}
.bb-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 62px;
}
.bb-footer-brand { max-width: 440px; }
.bb-footer-brand .bb-brand { margin-bottom: 18px; }
.bb-footer-brand p {
  max-width: 410px;
  margin: 0;
  color: #d6f2f8;
  font-size: .91rem;
  line-height: 1.7;
}
.bb-footer-title {
  margin: 0 0 16px;
  color: #63e3f4;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bb-footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bb-footer-links a {
  position: relative;
  color: #f3fcff;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.bb-footer-links a::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5ce3f4;
  content: '';
  transition: width .18s ease;
}
.bb-footer-links a:hover { color: #fff; }
.bb-footer-links a:hover::after { width: 100%; }
.bb-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #b8dce6;
  font-size: .78rem;
}

/* Intégration Blocksy hors accueil */
[data-prefix="single_blog_post"] .entry-header,
.hero-section { --theme-text-color: var(--bb-navy); }
.entry-card { border-radius: 18px; }

@media (max-width: 1100px) {
  .bb-header-inner { grid-template-columns: minmax(190px, auto) 1fr 44px; gap: 18px; }
  .bb-nav ul { gap: 2px; }
  .bb-nav a { padding-inline: 8px; font-size: .72rem; }
}

@media (max-width: 920px) {
  .bb-header-inner {
    grid-template-columns: 1fr auto auto;
    min-height: 76px;
    gap: 10px;
  }
  .bb-wordmark-main { font-size: 1.5rem; }
  .bb-wordmark-sub { font-size: .49rem; }
  .bb-header-search { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
  .bb-menu-toggle { display: block; grid-column: 3; grid-row: 1; }
  .bb-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0 -12px;
    padding: 8px 12px 14px;
    background: rgba(0, 47, 73, .96);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 18px 28px rgba(0, 49, 72, .16);
  }
  .bb-nav.is-open { display: block; }
  .bb-nav ul { display: grid; gap: 4px; }
  .bb-nav a { color: #fff; padding: 12px 13px; border-radius: 9px; }
  .bb-nav a:hover,
  .bb-nav .current-menu-item > a,
  .bb-nav .current_page_item > a { color: var(--bb-navy-deep); background: #fff; transform: none; }
}

@media (max-width: 782px) { .admin-bar .bb-site-header { top: 46px; } }

@media (max-width: 640px) {
  .bb-header-inner,
  .bb-footer-inner { width: min(100% - 26px, var(--bb-shell)); }
  .bb-wordmark-main { font-size: 1.3rem; }
  .bb-wordmark-sub { display: none; }
  .bb-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .bb-footer-bottom { flex-direction: column; }
}
