/*
 * CPE Paul Gérin-Lajoie — lifting 2026 chaud (Grok Bot)
 * Cassiopeia + user.css only. Pas SPPB / Helix / thème sombre PIGraN.
 * Palette tirée des photos extract : jaune mur, orange/ciel bâtiment, vert jardin.
 */

@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,500;0,700;0,800;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  --cpe-cream: #f6efe2;
  --cpe-sand: #efe3ce;
  --cpe-paper: #fffaf1;
  --cpe-ink: #2a2218;
  --cpe-muted: #6a5c4c;
  --cpe-forest: #1b6b52;
  --cpe-forest-deep: #134536;
  --cpe-forest-soft: #2d8a6a;
  --cpe-sun: #f2c14e;
  --cpe-orange: #e56b2a;
  --cpe-sky: #3a9fcb;
  --cpe-sky-soft: #d4eef8;
  --cpe-leaf: #5aaa62;
  --cpe-line: #e7d8bf;
  --cpe-shadow: 0 16px 40px rgba(48, 32, 16, 0.12);
  --cpe-font-display: "Nunito", "Segoe UI", sans-serif;
  --cpe-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --cassiopeia-color-primary: #1b6b52;
  --cassiopeia-color-link: #1b6b52;
  --hue: 152;
  --template-bg-light: #f6efe2;
  --template-text-dark: #2a2218;
  --template-special-color: #1b6b52;
}

html { background: var(--cpe-cream); }

body {
  background: var(--cpe-cream);
  color: var(--cpe-ink);
  font-family: var(--cpe-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--cpe-forest); }
a:hover { color: var(--cpe-orange); }

.article-info,
.mod-breadcrumbs,
nav.mod-breadcrumbs,
.container-banner,
.pagenavigation,
.com-content-article .icons,
.com-content-article > .page-header,
.container-sidebar-left,
.container-sidebar-right { display: none !important; }

/* ----- Top bar ----- */
.container-topbar {
  background: var(--cpe-forest-deep);
  color: #f8efd8;
  font-size: 0.86rem;
}

.cpe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
}

.cpe-topbar a { color: #f8efd8; text-decoration: none; }
.cpe-topbar a:hover { color: var(--cpe-sun); }
.cpe-topbar-social { display: flex; gap: 0.75rem; align-items: center; }
.cpe-topbar-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.cpe-topbar-contact span { opacity: 0.7; margin-right: 0.35rem; }

/* ----- Header coloré + logo zone + pills ----- */
header.header,
.container-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: var(--cpe-forest) !important;
  background-image: none !important;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(16, 40, 30, 0.18);
  color: #fff8e8;
}

.container-header::after {
  content: "";
  grid-column: 1 / -1;
  height: 6px;
  background: linear-gradient(90deg, var(--cpe-sun) 0 25%, var(--cpe-orange) 25% 50%, var(--cpe-sky) 50% 75%, var(--cpe-leaf) 75% 100%);
}

.container-header .container-topbar {
  grid-column: 1 / -1;
  width: 100%;
}

.container-header .grid-child,
.container-header .container-nav {
  padding: 0.65rem 1.25rem;
}

.container-header .navbar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.container-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.cpe-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: url("/images/2020/04/26/cpe-pigran-2.jpg") 50% 28% / cover no-repeat;
  box-shadow: 0 0 0 3px var(--cpe-sun);
  flex-shrink: 0;
}

.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .site-title,
.container-header a.brand-logo,
.container-header .brand-logo span {
  color: #fff8e8 !important;
  font-family: var(--cpe-font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.15;
}

.container-header .site-description {
  color: #d9f0e4 !important;
  font-size: 0.78rem;
  margin-left: 60px;
  letter-spacing: 0.01em;
}

.container-header .mod-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > button {
  color: #fff8e8 !important;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--cpe-font-display);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 248, 232, 0.1);
  border: 1px solid rgba(255, 248, 232, 0.14);
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > .active > a,
.container-header .mod-menu > li.current > a,
.container-header .mod-menu > li.active > span,
.container-header .mod-menu > li.parent.active > span {
  background: var(--cpe-sun);
  color: #2a2218 !important;
  border-color: var(--cpe-sun);
}

.container-header .mod-menu .mod-menu__sub {
  background: #fffaf1;
  border: 1px solid var(--cpe-line);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: var(--cpe-shadow);
  min-width: 15rem;
}

.container-header .mod-menu .mod-menu__sub a {
  color: var(--cpe-ink) !important;
  border-radius: 10px;
  display: block;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
}

.container-header .mod-menu .mod-menu__sub a:hover,
.container-header .mod-menu .mod-menu__sub .active > a {
  background: var(--cpe-sky-soft);
  color: var(--cpe-forest-deep) !important;
}

/* ----- Layout ----- */
.site-grid { background: var(--cpe-cream); }

.grid-child.container-component {
  max-width: 1180px;
  width: 100%;
  color: var(--cpe-ink);
  background: transparent;
}

.pg-home .container-component,
body.pg-home .container-component,
.pg-inner .container-component,
body.pg-inner .container-component {
  max-width: none;
  padding-inline: 0;
  grid-column: 1 / -1;
}

.com-content-article { color: var(--cpe-ink); }

/* ----- Home hero photo ----- */
.cpe-home { background: var(--cpe-cream); }

.cpe-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff8e8;
}

.cpe-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.cpe-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 69, 54, 0.18) 0%, rgba(19, 69, 54, 0.08) 38%, rgba(18, 40, 30, 0.78) 100%),
    linear-gradient(90deg, rgba(18, 40, 30, 0.45), transparent 55%);
}

.cpe-hero__content {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto 5.5rem;
  padding: 0 0.25rem;
}

.cpe-hero h1 {
  font-family: var(--cpe-font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff8e8;
  margin: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  max-width: 16ch;
}

.cpe-hero .cpe-place {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--cpe-sun);
  color: #2a2218;
  font-family: var(--cpe-font-display);
  font-weight: 800;
  font-size: 1rem;
}

.cpe-video-wrap {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: -4.6rem auto 2.2rem;
  padding: 0 1.25rem;
}

.cpe-video,
.cpe-video-wrap video {
  width: 100%;
  display: block;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 22px 50px rgba(20, 30, 20, 0.28);
  border: 6px solid #fffaf1;
}

.cpe-video--yt {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.cpe-video--yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Honneur / Respect — carte chaude */
.cpe-welcome {
  max-width: 820px;
  margin: 0.4rem auto 3rem;
  padding: 2.1rem 2rem 2.2rem;
  text-align: center;
  background:
    linear-gradient(180deg, #fff6df 0%, #ffe7c4 100%);
  border: 1px solid #f3c98a;
  border-radius: 24px;
  box-shadow: var(--cpe-shadow);
  position: relative;
}

.cpe-welcome::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--cpe-orange), var(--cpe-sun));
}

.cpe-honneur {
  font-family: var(--cpe-font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--cpe-orange);
  line-height: 1.2;
  margin: 0.4rem 0 1rem;
}

.cpe-child {
  color: #4a3c2e;
  font-size: 1.08rem;
  margin: 0;
}

/* Citation — bandeau photo fort */
.cpe-quote {
  position: relative;
  background:
    linear-gradient(180deg, rgba(19, 69, 54, 0.72), rgba(18, 40, 30, 0.78)),
    url("/images/2020/04/26/cpe-pigran-3.jpg") center 40% / cover no-repeat;
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff8e8;
}

.cpe-quote blockquote {
  max-width: 860px;
  margin: 0 auto;
  border: 0;
  padding: 0;
}

.cpe-quote p {
  font-family: var(--cpe-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: #fff8e8;
  margin: 0 0 1.15rem;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.cpe-quote footer {
  color: var(--cpe-sun);
  font-size: 1rem;
  font-style: normal;
  font-family: var(--cpe-font-display);
  font-weight: 800;
}

/* Partenaires — grille de logos */
.cpe-partners {
  text-align: center;
  padding: 3.6rem 1.25rem 4.2rem;
  background:
    linear-gradient(180deg, rgba(246, 239, 226, 0.88), rgba(246, 239, 226, 0.94)),
    url("/images/2020/04/01/cpe-pigran__910x500.jpeg") center 70% / cover no-repeat;
}

.cpe-partners h2 {
  font-family: var(--cpe-font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--cpe-forest-deep);
  margin: 0 0 1.8rem;
}

.cpe-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}

.cpe-logos a,
.cpe-logos figure {
  margin: 0;
  background: #fffaf1;
  border-radius: 18px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--cpe-shadow);
  border: 1px solid var(--cpe-line);
}

.cpe-logos img {
  max-height: 78px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ----- Inner pages : bandeau + carte ----- */
.cpe-page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(19, 69, 54, 0.25), rgba(18, 40, 30, 0.72)),
    var(--cpe-page-photo) center 40% / cover no-repeat;
  color: #fff8e8;
}

.cpe-page-hero__inner {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 3.6rem;
}

.cpe-page-hero h1 {
  font-family: var(--cpe-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff8e8;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cpe-is-inner .com-content-article__body {
  position: relative;
  z-index: 2;
  margin-top: -2.8rem;
  padding: 0 1.25rem 3.4rem;
}

.cpe-inner-body,
.pg-inner-body {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.2rem 2.15rem 2.4rem;
  background: var(--cpe-paper);
  border: 1px solid var(--cpe-line);
  border-radius: 24px;
  box-shadow: var(--cpe-shadow);
}

.cpe-inner-body > h1:first-child,
.pg-inner-body > h1:first-child { display: none; }

.cpe-inner-body h1,
.pg-inner-body h1,
.cpe-inner-body h2,
.pg-inner-body h2 {
  font-family: var(--cpe-font-display);
  font-weight: 800;
  color: var(--cpe-forest-deep);
  letter-spacing: -0.02em;
}

.cpe-inner-body h2,
.pg-inner-body h2 {
  font-size: 1.28rem;
  margin: 1.7rem 0 0.65rem;
}

.cpe-inner-body img,
.pg-inner-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 1.2rem auto 0;
}

.cpe-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.cpe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 1.8rem;
}

.cpe-card,
.cpe-list {
  background: #fff6e6;
  border-radius: 16px;
}

.cpe-card {
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid #f0d7a8;
}

.cpe-card:nth-child(2) { background: #e7f6ee; border-color: #c9e6d3; }
.cpe-card:nth-child(3) { background: var(--cpe-sky-soft); border-color: #b7dceb; }

.cpe-card h2 {
  margin-top: 0;
  font-size: 1.08rem;
  color: var(--cpe-forest-deep);
}

.cpe-vmv {
  display: grid;
  gap: 1rem;
  margin: 0.4rem 0 0.6rem;
}

.cpe-vmv article {
  background: #fff6e6;
  border: 1px solid #f0d7a8;
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.15rem;
}

.cpe-vmv article:nth-child(2) { background: #e7f6ee; border-color: #c9e6d3; }
.cpe-vmv article:nth-child(3) { background: var(--cpe-sky-soft); border-color: #b7dceb; }

.cpe-vmv h2 { margin-top: 0; }

.cpe-list {
  list-style: none;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid #f0d7a8;
}

.cpe-list li {
  padding: 0.4rem 0 0.4rem 1.15rem;
  position: relative;
}

.cpe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cpe-orange);
}

.cpe-mesi {
  margin-top: 1.6rem;
  font-family: var(--cpe-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cpe-orange);
}

.cpe-btn,
a.cpe-btn,
.pg-btn {
  display: inline-block;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  background: var(--cpe-orange);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--cpe-font-display);
  font-size: 0.95rem;
  border: 1px solid var(--cpe-orange);
}

.cpe-btn:hover,
.pg-btn:hover { background: #c9551c; color: #fff !important; }

/* ----- Footer 2026 (bandeau, pas 3 colonnes WP) ----- */
.container-footer,
footer.footer {
  background: var(--cpe-forest-deep) !important;
  color: #f4ead6;
  border-top: 0;
  padding: 0;
}

.container-footer .grid-child {
  max-width: none;
  padding: 0;
}

.cpe-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem 2.4rem;
}

.cpe-footer h2 {
  font-family: var(--cpe-font-display);
  font-size: 1.05rem;
  color: var(--cpe-sun);
  margin: 0 0 0.55rem;
}

.cpe-footer h2 a { color: var(--cpe-sun); text-decoration: none; }
.cpe-footer p { margin: 0.2rem 0; color: #e8dcc4; }
.cpe-footer a { color: #fff8e8; }

.cpe-brand-foot {
  min-width: min(100%, 280px);
}

.cpe-brand-foot strong {
  display: block;
  font-family: var(--cpe-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff8e8;
}

.cpe-brand-foot img {
  height: 36px;
  width: auto;
  display: block;
  margin: 0.65rem 0 0.35rem;
  background: #fffaf1;
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
}

.cpe-footer__side {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2.4rem;
}

.cpe-infolettre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 340px;
}

.cpe-infolettre input[type="email"] {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: #fffaf1;
  font: inherit;
  min-width: 180px;
  flex: 1;
}

.cpe-infolettre button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  background: var(--cpe-sun);
  color: #2a2218;
  font-weight: 800;
  font-family: var(--cpe-font-display);
  cursor: pointer;
}

.cpe-infolettre button:hover { filter: brightness(0.96); }

.cpe-copy {
  background: #0e3328;
  color: #cfc0a4;
  font-size: 0.84rem;
  padding: 0.75rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cpe-copy small { opacity: 0.75; }

.back-to-top-link {
  background: var(--cpe-orange) !important;
  color: #fff !important;
}

.cpe-inner-body iframe { max-width: 100%; }

@media (max-width: 991.98px) {
  header.header, .container-header {
    position: sticky !important;
    grid-template-columns: 1fr;
  }
  .container-header .site-description { margin-left: 60px; }
  .cpe-split, .cpe-cards { grid-template-columns: 1fr; }
  .cpe-logos { grid-template-columns: 1fr; max-width: 280px; }
  .cpe-welcome { margin-inline: 1rem; }
  .cpe-hero { min-height: 520px; }
  .cpe-hero__content { margin-bottom: 4.8rem; }
  .cpe-hero h1 { max-width: none; }
}


/* ----- Lift2 polish: chaleur, sans-serif, footer bandeau ----- */
.container-topbar { background: #176048; }

.container-header::after {
  height: 8px;
  background: linear-gradient(90deg, #f4c430 0 25%, #e56b2a 25% 50%, #3a9fcb 50% 75%, #4fb35a 75% 100%);
}

.cpe-mark {
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 3px #f4c430, 0 4px 10px rgba(0,0,0,.18);
}

.container-header .site-description { margin-left: 68px; }

.cpe-welcome {
  background: linear-gradient(180deg, #ffe7b3 0%, #ffd48a 100%);
  border-color: #f0b24a;
}

.cpe-honneur { color: #d45516; }

.cpe-inner-body,
.pg-inner-body,
.cpe-inner-body p,
.pg-inner-body p,
.cpe-inner-body span,
.pg-inner-body span,
.cpe-inner-body li,
.pg-inner-body li,
.cpe-child,
.cpe-home {
  font-family: var(--cpe-font-body) !important;
}

.cpe-inner-body span[style],
.pg-inner-body span[style] {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

h1, h2, h3, h4,
.cpe-honneur,
.cpe-hero h1,
.cpe-page-hero h1,
.cpe-quote p {
  font-family: var(--cpe-font-display) !important;
}

.cpe-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) auto;
  align-items: start;
  gap: 1.4rem 2rem;
}

.cpe-footer__side {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .cpe-footer { grid-template-columns: 1fr; }
  .cpe-footer__side { justify-content: flex-start; }
  .container-header .site-description { margin-left: 68px; }
}
