.guide-page {
  background:
    radial-gradient(circle at top left, rgba(5, 219, 171, .1), transparent 30%),
    linear-gradient(180deg, #f8fcfb 0%, #eff7f5 28%, #f7fbfa 100%);
  color: #0f5560;
}

.guide-main {
  padding-top: clamp(8.75rem, 10vw, 10rem);
  position: relative;
  overflow: hidden;
}

.guide-main:before {
  content: "";
  position: absolute;
  top: 8rem;
  right: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(5, 219, 171, .14) 0%, rgba(5, 219, 171, 0) 72%);
  pointer-events: none;
}

.guide-main > .spacer-huge {
  height: clamp(2.75rem, 5vw, 4.5rem);
}

.guide-content .spacer-large {
  display: none;
}

.guide-hero {
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.guide-hero .container {
  max-width: 1440px;
}

.guide-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "content media";
  justify-content: initial;
  column-gap: clamp(4.5rem, 7vw, 8.5rem);
  row-gap: clamp(1.5rem, 2vw, 2rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 3rem);
  border: 1px solid rgba(12, 101, 112, .08);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(244, 250, 248, .88));
  box-shadow: 0 28px 70px rgba(8, 85, 98, .08);
}

.guide-hero-top {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  z-index: 4;
}

.guide-back {
  position: relative;
  z-index: 5;
  margin-top: 0;
}

.guide-back .button.is-secondary {
  min-height: 3.5rem;
  padding: .95rem 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(11, 95, 108, .14);
  box-shadow: 0 14px 28px rgba(8, 85, 98, .08);
}

.guide-meta {
  margin-left: 0;
  flex: 0 0 auto;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(5, 219, 171, .1);
  color: #0c5f6d;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.guide-hero-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(100%, 34rem);
  width: 100%;
  justify-self: start;
  padding-right: 0;
}

.guide-hero-content .heading-style-h1 {
  max-width: 9.5ch;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 5.3vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.05em;
  color: #0b5d6c;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 20ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1.55;
  color: #2b6670;
  text-wrap: pretty;
}

.guide-hero-note {
  display: grid;
  gap: 1.25rem;
  max-width: 100%;
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid rgba(12, 101, 112, .1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 40px rgba(8, 85, 98, .08);
  backdrop-filter: blur(14px);
}

.guide-hero-note-title {
  margin-bottom: .3rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0b5d6c;
}

.guide-hero-note-subtitle {
  color: #5a7980;
  font-size: 1rem;
  line-height: 1.55;
}

.guide-hero-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.guide-hero-placeholder {
  grid-area: media;
  max-width: min(100%, 34rem);
  width: 100%;
  align-self: start;
  justify-self: end;
  margin-top: 0;
  position: relative;
}

.guide-hero-placeholder:before {
  content: "";
  position: absolute;
  inset: auto -1.5rem -1.5rem 3rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(5, 219, 171, .18), rgba(12, 95, 109, .04));
  filter: blur(20px);
  pointer-events: none;
}

.guide-hero-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(29rem, 42vw, 39rem);
  aspect-ratio: .95;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 2rem;
  box-shadow: 0 28px 58px rgba(8, 85, 98, .14);
}

.guide-body {
  position: relative;
  z-index: 1;
}

.guide-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.guide-content > * {
  min-width: 0;
}

.guide-intro,
.guide-summary-card,
.guide-section,
.guide-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  height: 100%;
}

.guide-intro {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(20rem, 24vw, 23.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgba(12, 101, 112, .08);
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(241, 248, 247, .92));
  box-shadow: 0 22px 55px rgba(8, 85, 98, .08);
}

.guide-intro p {
  margin: 0;
  color: #446b72;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.guide-intro p:first-child {
  color: #0e5d6c;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  line-height: 1.68;
}

.guide-intro p + p {
  margin-top: 1rem;
}

.guide-summary-card {
  grid-column: 7 / -1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(20rem, 24vw, 23.5rem);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, #0c6471 0%, #0a525d 100%);
  box-shadow: 0 24px 60px rgba(7, 66, 76, .18);
}

.guide-summary-title {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-summary-card .offer-list-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-content: stretch;
  height: 100%;
  gap: .75rem;
  margin-top: 0;
}

.guide-summary-card .offer-list-item {
  height: 100%;
  min-height: 0;
  padding: .95rem 1rem;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: none;
}

#metier,
#domiciliation,
#services,
#demarches,
#documents,
#organisation {
  grid-column: span 6;
}

#idomyou,
#attention,
#faq,
.guide-cta {
  grid-column: 1 / -1;
}

.guide-section {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.5vw, 2.3rem);
  border: 1px solid rgba(12, 101, 112, .08);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 55px rgba(8, 85, 98, .08);
}

#idomyou {
  background: linear-gradient(135deg, rgba(5, 219, 171, .08), rgba(255, 255, 255, .98) 58%);
}

#attention {
  background: linear-gradient(135deg, rgba(255, 244, 228, .92), rgba(255, 255, 255, .98) 50%);
}

#faq {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.guide-section .heading-style-h2 {
  max-width: 16ch;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #0b5d6c;
  text-wrap: balance;
}

.guide-section p {
  margin: 0;
  color: #4c6f76;
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.guide-section p + p {
  margin-top: .95rem;
}

.offer-list-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.4rem;
}

.offer-list-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(12, 101, 112, .09);
  border-radius: 1.2rem;
  background: #f5faf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  color: #184b56;
  line-height: 1.6;
}

.offer-list-item img {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .18rem;
  flex: 0 0 auto;
}

.guide-faq {
  display: grid;
  gap: .95rem;
  margin-top: 1.4rem;
}

.guide-faq-item {
  border: 1px solid rgba(12, 101, 112, .09);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(8, 85, 98, .08);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guide-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(8, 85, 98, .1);
  border-color: rgba(12, 101, 112, .16);
}

.guide-faq-question {
  position: relative;
  padding: 1.25rem 4.25rem 1.25rem 1.35rem;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.55;
  color: #0e5d6c;
}

.guide-faq-question:after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #eef8f6;
  color: #0d5f6c;
  font-size: 1.45rem;
  line-height: 2.1rem;
  text-align: center;
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease;
}

.guide-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.35rem;
  color: #54747b;
  line-height: 1.7;
  opacity: 0;
  transition: max-height .22s ease, padding .22s ease, opacity .22s ease;
}

.guide-faq-item.is-open .guide-faq-answer {
  max-height: 14rem;
  padding: 0 1.35rem 1.25rem;
  opacity: 1;
}

.guide-faq-item.is-open .guide-faq-question:after {
  background: rgba(5, 219, 171, .16);
  transform: translateY(-50%) rotate(45deg);
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  grid-template-areas:
    "title action"
    "copy action";
  gap: .55rem 2rem;
  align-items: center;
  padding: clamp(1.35rem, 2vw, 1.8rem) clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(5, 219, 171, .16), transparent 28%),
    linear-gradient(135deg, #0b5e6b 0%, #0a7484 100%);
  box-shadow: 0 24px 60px rgba(7, 66, 76, .18);
  color: #fff;
}

.guide-cta-title {
  margin: 0;
  grid-area: title;
  justify-self: start;
  text-align: left;
  max-width: 11ch;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.guide-cta > div:nth-child(2) {
  grid-area: copy;
  justify-self: start;
  text-align: left;
  max-width: 32rem;
  font-size: .98rem;
  color: rgba(255, 255, 255, .84);
  line-height: 1.55;
}

.guide-cta .button {
  grid-area: action;
  justify-self: end;
  align-self: center;
  min-height: 3.75rem;
  padding: 1rem 1.6rem;
  border-radius: 1rem;
  background: #05dbab;
  color: #083f48;
  line-height: 1.1;
  padding-top: calc(1rem + 3px);
  padding-bottom: calc(1rem - 3px);
  box-shadow: 0 18px 36px rgba(3, 41, 48, .16);
}

.footer-section .brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 991px) {
  .guide-main {
    padding-top: 8.5rem;
  }

  .guide-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "content"
      "media";
    row-gap: 1.5rem;
    padding: 1.5rem;
  }

  .guide-hero-top,
  .guide-hero-content,
  .guide-hero-placeholder {
    grid-column: 1 / -1;
  }

  .guide-hero-content {
    grid-area: content;
    max-width: none;
  }

  .guide-hero-placeholder {
    grid-area: media;
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
  }

  .guide-hero-placeholder img {
    min-height: 24rem;
  }

  .guide-content {
    grid-template-columns: 1fr;
  }

  .guide-intro,
  .guide-summary-card,
  .guide-section,
  .guide-cta,
  #metier,
  #domiciliation,
  #services,
  #demarches,
  #documents,
  #organisation,
  #idomyou,
  #attention,
  #faq {
    grid-column: 1 / -1;
  }

  .guide-intro,
  .guide-summary-card {
    min-height: auto;
  }

  .guide-summary-card {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    padding: 1.2rem;
    border-radius: 1.6rem;
    background:
      radial-gradient(circle at top right, rgba(5, 219, 171, .16), rgba(5, 219, 171, 0) 38%),
      linear-gradient(165deg, #0c6572 0%, #094b55 100%);
    box-shadow: 0 20px 44px rgba(7, 66, 76, .16);
  }

  .guide-summary-title {
    align-self: flex-start;
    margin-bottom: 0;
    padding: .55rem .9rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    font-size: .76rem;
    letter-spacing: .12em;
  }

  .guide-summary-card .offer-list-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: .7rem;
    height: auto;
  }

  .guide-summary-card .offer-list-item {
    min-height: auto;
    height: auto;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .09));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    line-height: 1.5;
  }

  .guide-summary-card .offer-list-item img {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .2rem;
  }

  .offer-list-container {
    grid-template-columns: 1fr;
  }

  .guide-cta {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "copy"
      "action";
  }

  .guide-cta-title,
  .guide-cta > div:nth-child(2),
  .guide-cta .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .guide-main {
    padding-top: 7.75rem;
  }

  .guide-hero-top {
    grid-row-gap: .75rem;
    flex-wrap: wrap;
  }

  .guide-hero-inner {
    padding: 1.15rem;
    border-radius: 1.5rem;
  }

  .guide-hero-placeholder img {
    min-height: 18rem;
  }

  .guide-meta {
    margin-left: auto;
  }

  .guide-hero-content .heading-style-h1 {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
  }

  .hero-subtitle {
    max-width: none;
    font-size: 1.05rem;
  }

  .guide-hero-note,
  .guide-intro,
  .guide-summary-card,
  .guide-section,
  .guide-cta {
    padding: 1.25rem;
    border-radius: 1.4rem;
  }

  .guide-summary-card {
    gap: .85rem;
    padding: 1rem;
  }

  .guide-summary-title {
    padding: .48rem .78rem;
    font-size: .72rem;
  }

  .guide-summary-card .offer-list-container {
    gap: .62rem;
  }

  .guide-summary-card .offer-list-item {
    padding: .9rem;
    border-radius: 1rem;
    font-size: .98rem;
    line-height: 1.45;
  }

  .guide-faq-question {
    padding-right: 3.7rem;
  }
}
