@font-face {
  font-family: Raleway;
  src: url("/accueil/assets/raleway.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

.immersive-home {
  --forest: #15362c;
  --deep: #102a22;
  --ink: #17362d;
  --fern: #2c6651;
  --soft: #dceade;
  --paper: #f7f8f2;
  --line: #cddacd;
  --space: clamp(68px, 9vw, 145px);
  --home-header-height: 90px;
  background: var(--paper);
  color: var(--ink);
  font-family: Raleway, "Segoe UI", sans-serif;
}

.valorely-home [hidden] { display: none; }
.valorely-home p { line-height: 1.65; }
.valorely-home h1, .valorely-home h2 { line-height: .98; font-weight: 800; letter-spacing: -.071em; text-wrap: balance; }
.valorely-home h2 { font-size: clamp(2.55rem, 5.25vw, 5.1rem); }
.home-label { font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-hero {
  isolation: isolate;
  position: relative;
  min-height: calc(100svh - var(--home-header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--deep);
}
.hero-photo { margin: 0; position: absolute; z-index: -2; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 38%; }
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #102a22f7 0%, #102a22e6 22%, #102a2280 49%, #102a221a 69%, transparent 88%);
}
.hero-inner { container-type: inline-size; padding-block: clamp(24px, 6svh, 78px); }
.hero-message { max-width: 860px; }
.hero-message .home-label { color: #b6d5bd; }
.hero-message h1 { margin: 17px 0 24px; font-size: min(7.5vw, 10.75cqw, 8.2rem); }
.hero-message h1 > * { display: block; white-space: nowrap; }
.hero-message em { color: #c8e4c9; font-style: normal; }
.hero-intro { max-width: 43ch; font-size: clamp(1.05rem, 1.55vw, 1.3rem); color: #edf5ee; }
.home-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.home-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 19px; border: 1px solid transparent;
  border-radius: 100px; font: inherit; font-size: .94rem; font-weight: 800;
  text-align: center; text-decoration: none;
}
.home-button.primary { background: var(--forest); color: white; }
.home-button.secondary { color: currentColor; border-color: #6a8a79; }
.home-button.primary:hover { background: var(--fern); }
.home-button.secondary:hover { background: #e4eee5; }
.home-hero .primary { color: var(--deep); background: #d1e8d2; }
.home-hero .primary:hover:hover { background: #eaf5e9; }
.home-hero .secondary { border-color: #c2d8ca; }
.home-hero .secondary:hover { background: #ffffff24; }
.home-button:active { scale: .98; }

.home-offer { display: grid; grid-template-columns: 1.05fr .85fr; align-items: center; gap: clamp(30px, 8vw, 130px); padding-block: var(--space); }
.offer-image { margin: 0; position: relative; border-radius: 60% 48% 43% 40% / 46% 52% 44% 52%; overflow: hidden; background: var(--soft); }
.offer-image img { width: 100%; height: auto; aspect-ratio: 1.13; object-fit: cover; }
.offer-copy h2, .zone-grid h2, .home-materials h2 { margin: 10px 0 20px; }
.offer-copy > p:not(.home-label), .zone-grid p:not(.home-label), .home-materials p:not(.home-label) { max-width: 56ch; color: #3b574b; }
.offer-copy .ademe { margin-top: 18px; font-size: .94rem; }

.home-process { background: var(--forest); color: white; padding-block: var(--space); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 7vw, 100px); align-items: center; }
.process-intro .home-label { color: #b9d8bf; }
.process-intro h2 { margin: 9px 0 24px; }
.process-options { display: grid; gap: 4px; max-width: 540px; }
.process-options button, .circuit-options button {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 10px 13px; text-align: start; font: inherit; font-weight: 750; cursor: pointer; border: 0;
}
.process-options button { background: transparent; color: white; border-bottom: 1px solid #ffffff47; border-radius: 4px; }
.process-options button:hover, .process-options button[aria-pressed="true"] { background: #d4e9d4; color: var(--deep); }
.process-options button span, .circuit-options button span { font-size: .85rem; font-variant-numeric: tabular-nums; }
.process-stage {
  display: grid; place-items: center; aspect-ratio: 1; min-height: 260px;
  border-radius: 50%; border: 1px solid #91b79d;
  background: radial-gradient(circle, #2c6651 0 58%, #255442 58% 69%, #15362c 69%);
  text-align: center;
}
.process-panel { width: 72%; padding: 8px; }
.process-icon { width: clamp(56px, 8vw, 104px); height: auto; margin: 0 auto 8px; padding: 10px; border: 1px solid #a7cfb074; border-radius: 50%; }
.process-step { color: #d0e7d4; font-weight: 700; font-size: .92rem; }
.process-panel h3 { margin: 10px 0; font-size: clamp(1.7rem, 3.8vw, 3.65rem); line-height: 1.03; letter-spacing: -.05em; }
.process-panel p { margin-inline: auto; max-width: 33ch; }

.home-circuit {
  padding-block: var(--space) clamp(30px, 4vw, 64px);
  background: #e8f0e7;
}
.circuit-title {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
  align-items: end; gap: 20px; margin-bottom: clamp(24px, 4vw, 48px);
}
.circuit-title h2 { max-width: 16ch; margin-top: 9px; }
.circuit-title > p { max-width: 36ch; color: #3b574b; }
.circuit-explorer {
  padding: clamp(8px, 1.4vw, 17px); border: 1px solid #c0d0c4;
  border-radius: clamp(18px, 3vw, 28px); background: #f7faf4;
}
.circuit-stage figure {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  min-height: clamp(310px, 35vw, 500px); margin: 0;
  overflow: hidden; border-radius: clamp(12px, 2vw, 19px); background: var(--deep);
}
.circuit-stage img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; }
.circuit-stage figcaption {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(22px, 4vw, 60px); color: white;
}
.circuit-stage h3 { margin: 10px 0 15px; font-size: clamp(1.7rem, 3.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.05em; }
.circuit-stage figcaption p { max-width: 40ch; color: #dceade; }
.circuit-count { font-size: .88rem; font-weight: 750; color: #c1e0c3; }
.circuit-toolbar { padding: clamp(10px, 2vw, 18px); }
.circuit-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; list-style: none; margin: 0; padding: 0; }
.circuit-options button {
  height: 100%; min-height: 52px; grid-template-columns: 1.7rem minmax(0, 1fr);
  padding: 9px 10px; border: 1px solid #d5e0d5; border-radius: 9px;
  background: #edf4ed; color: var(--ink); overflow-wrap: anywhere;
}
.circuit-options button:hover { border-color: var(--fern); }
.circuit-options button[aria-pressed="true"] { background: var(--forest); color: white; border-color: var(--forest); }
.circuit-pagination { display: flex; justify-content: end; gap: 8px; margin-top: 14px; }
.circuit-pagination button {
  min-height: 44px; padding: 8px 14px; border: 1px solid #9db5a5; border-radius: 100px;
  background: white; color: var(--ink); font: inherit; font-weight: 750; cursor: pointer;
}
.circuit-pagination button:hover:not(:disabled) { background: #dceade; }
.circuit-pagination button:disabled { opacity: .48; cursor: default; }

.home-zone { background: #e8f0e7; }
.zone-grid { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(25px, 6vw, 80px); padding-block: clamp(22px, 3.5vw, 54px) var(--space); }
.zone-grid img { width: min(100%, 470px); height: auto; justify-self: center; }
.zone-grid .home-button { margin-top: 18px; }
.materials-band { background: white; }
.home-materials { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: var(--space); }
.home-materials .home-button { margin-top: 20px; }
.home-materials h2 { max-width: 15ch; }

@media (max-width: 1080px) {
  .immersive-home { --home-header-height: 70px; }
}

@media (max-width: 760px) {
  .home-hero { align-items: end; }
  .hero-photo img { object-position: 50% 34%; }
  .home-hero::after { background: linear-gradient(180deg, #102a2200 8%, #102a2233 30%, #102a22ce 59%, #102a22f7 84%); }
  .hero-inner { padding-block: clamp(36px, 12svh, 125px) clamp(22px, 5svh, 54px); }
  .hero-message h1 { font-size: min(11vw, 10.75cqw, 5.2rem); }
  .home-offer, .process-grid, .zone-grid, .home-materials { grid-template-columns: minmax(0, 1fr); }
  .offer-image { max-width: 550px; }
  .process-stage { width: min(100%, 390px); justify-self: center; }
  .circuit-title, .circuit-stage figure { grid-template-columns: minmax(0, 1fr); }
  .circuit-stage img { aspect-ratio: 3 / 2; height: auto; }
  .circuit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circuit-options button { grid-template-columns: 1.6rem minmax(0, 1fr); padding-inline: 5px; font-size: .91rem; }
}
@media (max-width: 360px) {
  .process-stage { aspect-ratio: auto; min-height: 270px; }
  .process-panel { width: 80%; }
}
@media (min-width: 550px) and (max-height: 500px) {
  .hero-inner { padding-block: 18px; }
  .hero-message h1 { font-size: min(7vw, 9.5svh, 10.75cqw); margin-block: 9px 13px; }
  .home-actions { margin-top: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-message { animation: rise-in .72s cubic-bezier(.2,.8,.2,1) both; }
  .hero-photo img { animation: image-settle 1.7s cubic-bezier(.18,.71,.24,1) both; }
  [data-panel]:not([hidden]) { animation: rise-in .35s ease-out both; }
  .home-button, .process-options button, .circuit-options button { transition: background-color .22s, color .22s, scale .2s; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-settle { from { opacity: .7; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }