/* base.css
   Rebuilt local foundation for jcastelbranco.com
   Scope: shared header/footer/layout for overview, multiexpo, waterbus, apropos, contact
*/

:root{
  --jcb-bg: #f3f3f3;
  --jcb-surface: #ffffff;
  --jcb-text: #111111;
  --jcb-text-soft: #444444;
  --jcb-border: rgba(17,17,17,.14);
  --jcb-footer: #8e9ca8;
  --jcb-footer-text: #ffffff;
  --jcb-max: 1680px;
  --jcb-header-h: 120px;
  --jcb-space-x: clamp(20px, 3vw, 48px);
  --jcb-space-y: clamp(20px, 3vw, 40px);
  --jcb-nav-gap: clamp(18px, 2vw, 34px);
  --jcb-icon-size: 34px;
  --jcb-icon-glyph: 16px;
  --jcb-font: Arial, Helvetica, sans-serif;
}

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

html{
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--jcb-bg);
  color: var(--jcb-text);
  font-family: var(--jcb-font);
  line-height: 1.5;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

svg{
  max-width: 100%;
  max-height: 100%;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  opacity: .88;
}

#siteWrapper,
.site-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
#page,
.sqs-layout,
.content-wrapper{
  width: 100%;
}

#page{
  flex: 1 0 auto;
}

.hidden,
.visually-hidden,
.screen-reader-text{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#floatingCart,
.sqs-announcement-bar-dropzone,
.header-burger,
.header-menu,
.user-accounts-link,
.header-display-mobile,
.mobile-nav-toggle,
.header-menu-nav-folder-content,
.gallery-lightbox-outer-wrapper,
.gallery-lightbox,
.gallery-reel-list,
.gallery-stripe,
.gallery-slideshow,
.gallery-grid,
.gallery-carousel,
.gallery-controls,
.gallery-control-icon-btn{
  display: none !important;
}

/* HEADER */

#header{
  position: relative;
  z-index: 20;
  background: var(--jcb-surface) !important;
  color: var(--jcb-text) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#header .header-announcement-bar-wrapper{
  display: block !important;
}

#header .header-display-desktop{
  display: block !important;
}

#header .header-display-mobile{
  display: none !important;
}

#header .header-background,
#header .header-border,
#header .header-dropshadow{
  display: none !important;
}

#header .header-skip-link{
  position: absolute;
  left: -9999px;
}

#header .header-inner{
  min-height: var(--jcb-header-h);
  max-width: none;
  margin: 0 auto;
  padding: 28px var(--jcb-space-x);
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(22px, 2vw, 36px);
}

#header .header-title,
#header .header-title-nav-wrapper{
  min-width: 0;
}

#header .header-title-logo,
#header .header-title-text{
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}

#header .header-title-logo a,
#header .header-title-text a{
  display: inline-block;
}

#header nav,
#header .header-nav,
#header .header-nav-wrapper{
  min-width: 0;
}

#header .header-nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px var(--jcb-nav-gap);
}

#header .header-nav-item{
  margin: 0 !important;
  padding: 0 !important;
}

#header .header-nav-item a{
  display: inline-block;
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--jcb-text) !important;
}

#header .header-nav-item--active a::after,
#header .header-nav-item a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
}

#header .header-actions{
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

#header .header-actions-action,
#header .social-links,
#header .social-account-links,
#header .header-actions .sqs-svg-icon--wrapper{
  display: inline-flex !important;
  align-items: center;
}

#header .social-links,
#header .social-account-links{
  gap: 12px;
}

#header .header-actions > *{
  flex: 0 0 auto;
}

#header .header-actions .sqs-svg-icon--wrapper{
  justify-content: center;
  width: var(--jcb-icon-size);
  height: var(--jcb-icon-size);
}

#header .header-icon,
#header .header-actions .icon,
#header .header-actions .sqs-svg-icon--social{
  width: var(--jcb-icon-size) !important;
  height: var(--jcb-icon-size) !important;
  min-width: var(--jcb-icon-size) !important;
  min-height: var(--jcb-icon-size) !important;
}

#header .header-icon,
#header .header-actions .sqs-svg-icon--social{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jcb-text);
  border-radius: 6px;
  background: transparent;
  padding: 0;
}

#header .header-icon svg,
#header .header-actions .icon svg,
#header .header-actions .sqs-svg-icon--social svg{
  width: var(--jcb-icon-glyph) !important;
  height: var(--jcb-icon-glyph) !important;
  display: block;
  color: var(--jcb-text) !important;
}

#header .header-icon svg *,
#header .header-actions .icon svg *,
#header .header-actions .sqs-svg-icon--social svg *{
  vector-effect: non-scaling-stroke;
  stroke: currentColor !important;
  fill: currentColor !important;
}

#header .language-picker{
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 14px;
  white-space: nowrap;
}

#header .language-picker a,
#header .language-picker button,
#header .language-picker summary{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#header .language-picker svg{
  width: 14px !important;
  height: 14px !important;
}

/* CONTENT */

main,
#page{
  padding: 0;
}

#page .sections,
#page .content-wrapper,
#page .content{
  width: 100%;
  max-width: none;
}

.page-section,
.section,
.content-wrapper{
  background: transparent !important;
}

.page-section .content,
.section .content{
  width: min(var(--jcb-max), calc(100vw - (2 * var(--jcb-space-x))));
  margin: 0 auto;
}

.sqs-block,
.sqs-block-content,
pre,
code{
  max-width: 100%;
}

.sqs-block-html,
.sqs-block-form,
.sqs-block-markdown,
.sqs-block-image{
  width: min(980px, calc(100vw - (2 * var(--jcb-space-x))));
  margin-left: auto;
  margin-right: auto;
}

.sqs-block-html h1,
.sqs-block-html h2,
.sqs-block-html h3,
.sqs-block-markdown h1,
.sqs-block-markdown h2,
.sqs-block-markdown h3{
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
}

.sqs-block-html p,
.sqs-block-markdown p{
  color: var(--jcb-text-soft);
  margin: 0 0 18px;
  font-size: 16px;
}

.form-wrapper,
.form-item,
.form-item input,
.form-item textarea,
.form-item select{
  font-family: var(--jcb-font);
}

.form-item input,
.form-item textarea,
.form-item select{
  width: 100%;
  border: 1px solid var(--jcb-border);
  background: #fff;
  color: var(--jcb-text);
  padding: 12px 14px;
  border-radius: 0;
  box-shadow: none;
}

.form-button-wrapper input[type="submit"],
button[type="submit"],
.sqs-button-element--primary{
  appearance: none;
  border: 1px solid var(--jcb-text);
  background: var(--jcb-text);
  color: #fff;
  padding: 12px 22px;
  cursor: pointer;
  font: inherit;
}

/* FOOTER */

#footer-sections,
footer{
  margin-top: auto;
  background: var(--jcb-footer);
  color: var(--jcb-footer-text);
}

footer .footer-inner,
#footer-sections .content,
footer .content{
  width: min(var(--jcb-max), calc(100vw - (2 * var(--jcb-space-x))));
  margin: 0 auto;
  padding: 34px var(--jcb-space-x) 46px;
  text-align: center;
}

footer p,
#footer-sections p{
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(15px, 1.6vw, 18px);
}

footer .sqs-svg-icon--wrapper,
#footer-sections .sqs-svg-icon--wrapper{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 6px;
  vertical-align: middle;
  background: #ffffff !important;
  border-radius: 2px;
}

footer .sqs-svg-icon--social,
#footer-sections .sqs-svg-icon--social{
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

footer .sqs-svg-icon--social svg,
#footer-sections .sqs-svg-icon--social svg{
  width: 16px !important;
  height: 16px !important;
  color: #8e9ca8 !important;
  fill: currentColor !important;
}

footer .sqs-svg-icon--social svg *,
#footer-sections .sqs-svg-icon--social svg *{
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* RESPONSIVE */

@media (max-width: 1100px){
  #header .header-inner{
    grid-template-columns: 1fr;
    row-gap: 18px;
    justify-items: center;
    text-align: center;
  }

  #header .header-actions{
    justify-content: center;
    flex-wrap: wrap;
  }

  #header .header-title-logo,
  #header .header-title-text{
    white-space: normal;
  }
}

@media (max-width: 720px){
  :root{
    --jcb-header-h: auto;
    --jcb-icon-size: 32px;
    --jcb-icon-glyph: 15px;
  }

  #header .header-inner{
    padding-top: 22px;
    padding-bottom: 18px;
  }

  #header .header-nav-list{
    gap: 10px 18px;
  }

  #header .header-nav-item a{
    font-size: 14px;
  }

  .sqs-block-html,
  .sqs-block-form,
  .sqs-block-markdown,
  .sqs-block-image{
    width: calc(100vw - (2 * var(--jcb-space-x)));
  }

  footer .footer-inner,
  #footer-sections .content,
  footer .content{
    padding-top: 28px;
    padding-bottom: 34px;
  }
}

/* FOOTER — neutralise les effets Squarespace qui rendent les icônes noires */

footer .social-icons-style-knockout,
#footer-sections .social-icons-style-knockout,
footer .social-icons-style-knockout * ,
#footer-sections .social-icons-style-knockout *{
  mix-blend-mode: normal !important;
}

footer .fe-block,
#footer-sections .fe-block,
footer .sqs-block,
#footer-sections .sqs-block{
  mix-blend-mode: normal !important;
}

footer .sqs-svg-icon--wrapper,
#footer-sections .sqs-svg-icon--wrapper{
  background: #ffffff !important;
  color: #8e9ca8 !important;
  box-shadow: none !important;
}

footer .sqs-svg-icon--wrapper > div,
#footer-sections .sqs-svg-icon--wrapper > div{
  background: transparent !important;
}

footer .sqs-svg-icon--social,
#footer-sections .sqs-svg-icon--social{
  color: #8e9ca8 !important;
}

footer .sqs-svg-icon--social .sqs-use--icon,
#footer-sections .sqs-svg-icon--social .sqs-use--icon{
  fill: currentColor !important;
  stroke: currentColor !important;
}

footer .sqs-svg-icon--social .sqs-use--mask,
#footer-sections .sqs-svg-icon--social .sqs-use--mask{
  fill: transparent !important;
  stroke: transparent !important;
}