/* Isologique · header and hero, from H8 « Boutons lime » of the hero round */

:root {
  --brown: #694237;
  --brown-dark: #553429;
  --ink: #4a2e26;
  --lime: #C8D200;
  --lime-pale: #F4F7D2;
  --lime-hover: #E9EFA6;
  --heat: #D9480F;
  --cold: #1F5FA8;
  --sun: #F6C324;
  /* Content 1440 wide at most, centred on larger screens */
  --gutter: max(clamp(16px, 5.556vw, 80px), calc((100vw - 1440px) / 2 + 80px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Recursive", system-ui, sans-serif;
  font-variation-settings: "CASL" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); }
a:hover { color: #3b241e; }
:where(a:not([href])) { cursor: pointer; text-decoration: underline; }
.hand { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; background: #ffffff; }
.hd {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 84px;
  padding: 0 var(--gutter);
}
.brand { display: block; margin-right: auto; }
.brand img { width: 280px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.nav a, .trades a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .trades a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tel, .menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--brown);
  background: #ffffff;
  color: var(--brown);
  font: 600 16px "Recursive", sans-serif;
  font-variation-settings: "CASL" 1;
  text-decoration: none;
}
.menu-btn { display: none; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--brown); color: #ffffff; }
.trades {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
  height: 48px;
  padding: 0 var(--gutter);
  border-top: 1.5px solid rgba(105, 66, 55, .22);
  border-bottom: 1.5px solid rgba(105, 66, 55, .22);
  font-size: 15px;
  font-weight: 500;
}
.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: #ffffff;
  border-top: 1.5px solid rgba(105, 66, 55, .22);
  border-bottom: 2px solid var(--brown);
  box-shadow: 0 7px 0 var(--lime);
}
.menu[hidden] { display: none; }
.menu-title {
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  font-variation-settings: "CASL" .55;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(105, 66, 55, .15);
}
.menu-more { margin-top: 16px !important; }
.menu-more a { font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 490px) 720px;
  column-gap: clamp(32px, 6.111vw, 88px);
  align-items: center;
  min-height: 768px;
  padding: 30px max(clamp(24px, 4.306vw, 62px), calc((100vw - 1440px) / 2 + 62px)) 0 var(--gutter);
}
.txt { display: flex; flex-direction: column; gap: 24px; align-self: start; margin-top: 31px; }
.kicker {
  margin: 0 0 -12px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  font-variation-settings: "CASL" .55;
}
h1 { margin: 0; }
h1 img { width: 490px; }
.sub { margin: 0; font-size: 18px; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--brown);
  font: 600 16px "Recursive", sans-serif;
  font-variation-settings: "CASL" 1;
  text-decoration: none;
}
.btn-p { background: var(--brown); color: #ffffff; }
.btn-p:hover { background: var(--brown-dark); color: #ffffff; }
.btn-s { background: #ffffff; color: var(--brown); }
.rge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.rge img { width: 140px; height: 77px; object-fit: cover; object-position: 50% 54%; }

/* The season switch, over the house */
.visual { min-width: 0; }
.top {
  position: relative;
  top: -35px;
  z-index: 3;
  display: flex;
  justify-content: center;
  height: 48px;
  margin-bottom: 8px;
}
.seasons { display: flex; flex: none; }
.ss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--brown);
  background: #ffffff;
  color: var(--brown);
  font: 600 15px "Recursive", sans-serif;
  font-variation-settings: "CASL" 1;
  cursor: pointer;
}
.ss + .ss { margin-left: -2px; }
.ss[aria-pressed="true"] { background: var(--brown); color: #ffffff; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .core { fill: var(--sun); }
.ss .snow { color: var(--cold); }
.ss[aria-pressed="true"] .snow { color: #9CC8F5; }

/* The stage: 720 × 560, the scene starting 35 px above it for the team */
.stage { position: relative; width: 720px; height: 560px; }
.side { position: absolute; top: 104px; z-index: 2; width: 200px; display: flex; flex-direction: column; gap: 4px; }
.side.av { left: 18px; }
.side.ap { right: 18px; text-align: right; }
.side h2 { margin: 0; font-size: 32px; line-height: 1; font-weight: 820; color: var(--lime); font-variation-settings: "CASL" .55; }
.side p { margin: 0; font-size: 15px; line-height: 1.4; font-variation-settings: "CASL" .35;  opacity: .8;}
.side h2, .side p { width: fit-content; padding: 2px 6px; background: #ffffff; }
.side.ap h2, .side.ap p { align-self: flex-end; }
.scene { position: absolute; left: 0; top: -35px; width: 720px; height: 645px; }
.team {
  position: absolute;
  left: 2.778%;
  top: 0;
  width: 94.444%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 58%, transparent 92%);
  mask-image: linear-gradient(#000 58%, transparent 92%);
}
.home { position: absolute; left: 0; top: 13.178%; width: 100%; height: 86.822%; }
.house { display: block; width: 100%; height: auto; overflow: visible; }

/* The drawing */
.house-fill { fill: #ffffff; }
.ln { fill: none; stroke: var(--brown); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.thin { stroke-width: 1.6; }
.dsh { stroke-dasharray: 3 9; }
.ins { fill: var(--lime); opacity: 0; animation: fadein .7s ease .4s forwards; }
.heat { fill: none; stroke: var(--heat); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 9; animation: flow .9s linear infinite, fadein .6s ease 1.1s both; }
.heat.tip, .heat.stop { stroke-dasharray: none; animation: fadein .6s ease 1.1s both; }
.heat.stop { stroke: var(--brown); stroke-width: 3.4; }
.heat.lite { stroke-width: 2; }
.cold { stroke: var(--cold); }
.sun { fill: var(--sun); stroke: var(--brown); stroke-width: 2; }
.flake { fill: none; stroke: var(--cold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flake.big { stroke-width: 2.2; }
.roof-snow { fill: #EAF2FB; stroke: var(--brown); stroke-width: 1.6; stroke-linejoin: round; }
.small { font: 500 13px "Recursive", sans-serif; font-variation-settings: "CASL" 1; fill: var(--brown); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -17; } }
.s-hiver .ete { display: none; }
.s-ete .hiver { display: none; }
.pt { transition: opacity .35s ease; }
.lit .pt { opacity: .14; }
.lit .pt.on { opacity: 1; }
.lit .pt.on .ln { stroke-width: 4; }

/* The six parts, as buttons on the house */
.labels { position: absolute; left: 0; top: 50px; width: 720px; height: 560px; }
.lbl {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px 0 12px;
  border-radius: 18px 22px 18px 22px;
  background: var(--lime-pale);
  border: 2px solid var(--brown);
  color: var(--brown);
  font: 600 15px "Recursive", sans-serif;
  font-variation-settings: "CASL" 1;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}
.lbl::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #ffffff) center / 10px 2px no-repeat, linear-gradient(#ffffff, #ffffff) center / 2px 10px no-repeat, var(--brown);
}
.lbl:not([aria-expanded="true"]):hover { background: var(--lime-hover); }
.lbl[aria-expanded="true"] { background: var(--brown); color: #ffffff; }
.lbl[aria-expanded="true"]::before { background: linear-gradient(var(--brown), var(--brown)) center / 10px 2px no-repeat, #ffffff; }

/* The explanation of a part */
.pop {
  position: relative;
  padding: 18px 22px 20px;
  margin-right: 8px;
  background: #ffffff;
  border: 2px solid var(--brown);
  box-shadow: 7px 7px 0 var(--lime);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pop[hidden] { display: none; }
.pop h2 { margin: 0; padding-right: 40px; font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--brown); font-variation-settings: "CASL" .55; }
.pop p { margin: 0; font-size: 16px; line-height: 1.5; }
.pop .pop-season { font-size: 14px; font-weight: 700; color: #7a4a3c; font-variation-settings: "CASL" 1; }
.pop .pop-season:empty { display: none; }
.x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--brown);
  font: 600 24px/1 "Recursive", sans-serif;
  cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--brown);
  border-radius: 18px 22px 18px 22px;
  background: var(--lime-pale);
  color: var(--brown);
  font: 600 15px "Recursive", sans-serif;
  font-variation-settings: "CASL" 1;
  text-decoration: none;
}
.chip:hover { background: var(--lime-hover); color: var(--brown); }
.ph { background: var(--lime-pale); padding: 0 3px; }

/* Shown below 760 only: the team over the logo, the phone icon */
.team-m, .tel-ico { display: none; }

/* The white square buttons take the pale lime of the round ones on hover */
.btn-s:hover, .tel:hover, .menu-btn:not([aria-expanded="true"]):hover, .ss:not([aria-pressed="true"]):hover {
  background: var(--lime-pale);
  color: var(--brown);
}

a:focus-visible, button:focus-visible { outline: 3px solid var(--heat); outline-offset: 2px; }

/* With a part open, its explanation takes the place of the subheadline and the RGE line */
@media (min-width: 1280px) {
  .hero.has-open .sub, .hero.has-open .rge { display: none; }
}

/* At desktop the hero fills the screen under the header (84 + 48 + 3 px), H8's 738 px row centred in it
   by its top padding (135 + 30 + 738 + 32 = 935), so that an open explanation only pushes what follows */
@media (min-width: 1280px) {
  .hero {
    grid-template-rows: minmax(738px, auto);
    align-content: start;
    padding-top: max(30px, calc((100vh - 935px) / 2 + 30px));
    padding-top: max(30px, calc((100svh - 935px) / 2 + 30px));
    padding-bottom: 32px;
    min-height: max(800px, calc(100vh - 135px));
    min-height: max(800px, calc(100svh - 135px));
  }
  /* H8's place, so the house stays put when an explanation makes the text column taller */
  .visual { align-self: start; margin-top: 61px; }
}

/* ---------- Below 1280: the trades in « Menu », the house under the text ---------- */

@media (max-width: 1279.98px) {
  .nav, .trades { display: none; }
  .menu-btn { display: inline-flex; }
  /* The compact header stays on screen */
  .site-header { position: sticky; top: 0; }
  .hd { gap: 12px; border-bottom: 1.5px solid rgba(105, 66, 55, .22); }
  .hero {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    align-items: start;
    min-height: 0;
    padding: 40px var(--gutter) 64px;
  }
  .txt { margin-top: 0; }
  .visual { margin-top: 72px; }
  .pop { margin: 32px 8px 0 0; }
}

/* ---------- Below 760: the 360 layout of D2 ---------- */

@media (max-width: 759.98px) {
  .hd { height: 64px; }
  .brand img { width: 180px; }
  /* The phone as an icon beside « Menu », always on screen with the header */
  .tel { justify-content: center; width: 44px; min-height: 44px; padding: 0; }
  .tel-ico { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tel-num {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .menu-btn { min-height: 44px; padding: 0 16px; }
  .menu { max-height: calc(100vh - 64px); }

  .hero { padding: 28px var(--gutter) 40px; }
  .txt { gap: 20px; }
  .kicker { margin-bottom: -10px; font-size: 13px; }
  /* The team opens the page, between the eyebrow and the logo */
  .team-m {
    display: block;
    width: 100%;
    margin-bottom: -24px;
    -webkit-mask-image: linear-gradient(#000 58%, transparent 92%);
    mask-image: linear-gradient(#000 58%, transparent 92%);
  }
  h1 img { width: 100%; }
  .sub { font-size: 17px; }
  .ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; min-height: 52px; }
  .rge { gap: 12px; font-size: 15px; }
  .rge img { width: 112px; height: 62px; }

  .visual { margin-top: 40px; }
  .top { top: 0; margin-bottom: 8px; }
  .stage { width: 100%; height: auto; }
  .sides { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .side { position: static; width: auto; flex: 1 1 0; }
  .side h2 { font-size: 24px; }
  .side p { font-size: 14px; }
  /* The house alone, without the team: the drawing from y 30 to 560, the sun and the large snowflake
     brought down into the empty corner right of the roof */
  .scene { position: relative; top: 0; width: 100%; height: auto; aspect-ratio: 720 / 530; }
  .team { display: none; }
  .sky-sun { transform: translate(600px, 72px) scale(2.6) translate(-360px, -24px); }
  .sky-flake { transform: translate(600px, 72px) scale(2.6) translate(-360px, -21px); }
  .home { top: -5.66%; height: 105.66%; }
  .labels {
    position: static;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .lbl { position: static; min-height: 48px; padding: 6px 12px 6px 10px; white-space: normal; line-height: 1.2; }
  /* The explanation opens as a popup over the page */
  html:has(.sheet[open]) { overflow: hidden; }
  .sheet {
    width: min(100% - 32px, 440px);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .sheet::backdrop { background: rgba(74, 46, 38, .55); }
  .sheet .pop {
    margin: 0 7px 7px 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 18px 20px 20px;
  }
  .pop h2 { font-size: 20px; }
  .pop p { font-size: 16px; line-height: 1.55; }
  .chip { white-space: normal; padding: 8px 16px; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .ins { animation: none; opacity: 1; }
  .heat, .heat.tip, .heat.stop { animation: none; opacity: 1; }
  .pt { transition: none; }
}
