/* base.css: Poulin Électrique, written for the Cloudflare Pages version (Dec 2026).
   Replaces the few structural rules that Squarespace's template used to give the page:
   box model, the top menu (desktop bar, folders, phone menu), the skip link.
   All colours, fonts and the look come from custom.css and the site code (unchanged). */

/* No global border-box: the site code was written against content-box, like the old template. */
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-wrap: break-word; }   /* long words wrap, as in the old template */
img, video { max-width: 100%; }
img { height: auto; }
button { font: inherit; }
p { line-height: 1.5em; }   /* the old template's paragraph default */
a { color: inherit; }       /* the old template's link default */
h4 { line-height: 1.1712; }   /* the old template's small-heading line height (footer titles) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- Top menu (same class names as before, so the site code keeps working) ---------- */
#header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  font-family: Poppins, sans-serif; line-height: 1;
}
.sqs-announcement-bar-dropzone { display: none; }
.header-announcement-bar-wrapper { position: relative; z-index: 2; padding: 1.7vw 2vw; }
.header-skip-link {
  position: absolute; left: -16000px; top: 24px; z-index: 2;
  padding: 18px 30px; text-decoration: none;
}
.header-skip-link:focus { left: 24px; }
.header-border, .header-dropshadow { display: none; }
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; }
.header-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.header-display-desktop, .header-display-mobile { position: relative; box-sizing: border-box; width: 100%; align-items: center; }
.header-display-desktop { display: flex; }
.header-display-mobile { display: none; }
.header-title-nav-wrapper { display: flex; align-items: center; flex: 1 1 auto; }
.header-title { flex: 0 0 auto; }
.header-title-logo a { display: block; line-height: 0; }
.header-title-logo img { display: block; width: auto; height: auto; max-height: 36px; }
.header-nav { flex: 1 1 auto; }
.header-nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.header-nav-item { position: relative; display: flex; align-items: center; }
.header-nav-item a, .header-nav-folder-title { color: inherit; text-decoration: none; }
.header-nav-folder-title { display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.header-nav-folder-content {
  position: absolute; top: 100%; left: 0; z-index: 10;
  display: none; min-width: 220px; text-align: left;
}
.header-nav-item--folder:focus-within > .header-nav-folder-content { display: block; }
.header-nav-folder-item a { display: flex; text-decoration: none; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; }
.header-actions-action--cta { margin-left: 1.7vw; }
.header-actions .showOnMobile { display: none; }
.header-actions .showOnDesktop { display: block; }
.header-actions-action--cta a { display: inline-flex; align-items: center; text-decoration: none; }

/* burger (phone only): same sizes and motion as the old template's two-line icon */
.header-burger { display: none; flex: 0 0 50px; width: 50px; height: 44px; justify-content: flex-end; align-items: flex-end; }
.header-burger-btn { position: relative; display: block; box-sizing: border-box; width: 47px; height: 37px; margin: 0; padding: 1px 6px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger-box { position: relative; display: flex; width: 35px; height: 35px; justify-content: center; align-items: center; }
.burger-inner { position: relative; width: 26px; height: 16px; }
.top-bun, .patty, .bottom-bun {
  position: absolute; top: 0; left: 0; height: 2px; background-color: currentColor;
  transition: transform .25s cubic-bezier(.2, .6, .3, 1), width .25s cubic-bezier(.2, .6, .3, 1);
}
.top-bun { width: 26px; margin: 7px 0; transform: translateY(-9.5px); }
.patty { display: none; width: 100%; margin: auto; }
.bottom-bun { width: 18px; margin: 7px 4px; transform: translateY(9.5px); }
.burger--active .top-bun { transform: translateX(3.5px) rotate(-135deg); }
.burger--active .bottom-bun { transform: translateX(3.5px) rotate(135deg); }

/* phone menu overlay (opened by site.js; --pei-menu-top = height of the top bar) */
.header-menu {
  position: fixed; inset: 0; z-index: 1; box-sizing: border-box;
  display: flex; flex-direction: column; padding-top: var(--pei-menu-top, 144px);
  font-size: 1.2rem; line-height: 1;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s;
}
.header--menu-open .header-menu { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.header-menu-bg { position: absolute; inset: 0; z-index: -1; }
.header-menu-nav { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.header-menu-nav-list { position: relative; display: block; flex: 1 1 auto; overflow: hidden; }
.header-menu-nav-folder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s ease, visibility 0s linear .3s; visibility: hidden;
}
.header-menu-nav-folder--active { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
.header-menu-nav-folder--active.header-menu-nav-folder--open { transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.header-menu-nav-folder-content { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 1 0 auto; }
.header-menu-nav-wrapper { display: block; }
.header-menu-nav-item { position: relative; box-sizing: border-box; padding: 0 2vw; text-align: center; }
.header-menu-nav-item a, .header-menu-controls-control { position: relative; display: inline-flex; align-items: center; margin: 3vw 5vw; color: inherit; text-decoration: none; }
.header-menu-nav-item-content { display: flex; align-items: center; }
/* arrows: a folder name ends with ">", "Retour" starts with "<" (same icon and turn as the old template) */
.header-dropdown-icon { display: flex; flex: 0 0 auto; }
.header-dropdown-icon svg { display: block; width: 100%; height: 100%; fill: rgb(244, 236, 236); stroke: rgb(244, 236, 236); }
.header-menu-nav-item-content-folder .header-dropdown-icon svg { transform: rotate(-90deg); }
.header-menu-controls-control .header-dropdown-icon svg { transform: rotate(90deg); }
.header-menu-controls { padding-bottom: 10px; font-size: .85em; opacity: .5; }   /* the "Retour" row, as in the old template */
.header-menu-cta { display: block; }
.header--menu-open { overflow: hidden; }

.header-menu-cta a { box-sizing: border-box; width: calc(100% - 12vw); margin: 4vw 6vw 6vw; line-height: normal; }

/* Phone layout of the top bar. Same switch as the old template: phones and narrow windows,
   and touch screens up to 1024px wide (tablets). */
.header-menu { display: none; }
@media only screen and (pointer: coarse) and (max-width: 1024px), screen and (max-width: 799px) {
  .header-announcement-bar-wrapper { padding: 6vw; }
  .header-display-desktop { display: none; }
  .header-display-mobile { display: flex; }
  .header-display-mobile .header-nav, .header-display-mobile .header-actions { display: none; }
  .header .header-burger { display: flex; align-items: flex-end; }
  .header-display-mobile .header-title-nav-wrapper { flex: 1 0 calc(100% - 50px); }
  .header-menu { display: flex; }
}

/* text pages (FAQ and towns): the page text sits in a text block, styled like the old template's text */
/* the first section starts below the top bar: site.js sets the exact height (as Squarespace's script did); 144px if scripts are off */
#page .page-section:first-child { padding-top: var(--pei-header-h, 144px); }
#page .sqs-block { display: flow-root; padding-left: 2vw; padding-right: 2vw; }
@media (max-width: 767px) {
  #page .sqs-block { padding-left: 6vw; padding-right: 6vw; }
}
#page .sqs-block-content { font-family: Poppins, sans-serif; line-height: 1.5; color: rgb(90, 3, 3); }
#page .sqs-block-content h4 { font-size: 1.63rem; line-height: 1.1712; letter-spacing: .01em; margin: 2rem 0; }
@media (max-width: 767px) { #page .sqs-block-content h4 { font-size: 1.405rem; } }   /* the old template's smaller phone heading */

/* cookie banner (consent.js) */
.cookie-banner-manager { position: relative; }
.manage-cookies-bar { position: absolute; bottom: 0; left: 0; z-index: 300000; margin: 0 60px; padding: 7px 10px; background: #f5f5f5; }
.manage-bar-action { display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: rgb(90, 3, 3); font: 12px/17px Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.pei-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 18px 56px; background: #0c0c0d; color: #f1ede6;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: Poppins, sans-serif; font-size: 15px; line-height: 1.5;
}
.pei-cookie__text { flex: 1 1 520px; margin: 0; }
.pei-cookie__text a { color: inherit; margin-left: 4px; }
.pei-cookie__prefs { flex: 1 1 100%; display: flex; gap: 24px; flex-wrap: wrap; }
.pei-cookie__prefs label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.pei-cookie__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.pei-cookie__btn {
  padding: 10px 20px; border: 0; border-radius: 4px; cursor: pointer;
  background: #1f1f21; color: #fff; font-weight: 700; font-size: 14px;
}
.pei-cookie__btn--main { background: #d63a34; }
.pei-cookie__btn:focus-visible { outline: 2px solid #f07a2a; outline-offset: 2px; }
@media (max-width: 640px) {
  .pei-cookie { padding: 16px; }
  .pei-cookie__btns { flex-direction: row-reverse; justify-content: flex-end; width: 100%; }
}
#page .sqs-block-content h1 { margin: 2rem 0; }
#page .sqs-block-content .sqs-button-element--primary,
#page .sqs-block-content .sqs-button-element--secondary { line-height: normal; }
