/* Orientation : un cadran dans la marge et une feuille de consultation. */
.orientation-scene {
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 126px);
  background: #f6f4ef;
  color: var(--ink);
}

.orientation-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 77% 56%, #fffaf0 0, transparent 54%),
    linear-gradient(113deg, #f9f8f5 0, #ebe9e3 100%);
}

.consultation-layout {
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  gap: clamp(44px, 7.5vw, 118px);
}

.orientation-heading {
  gap: 17px;
}

.orientation-heading .section-label {
  color: #555248;
}

.compass-face {
  flex: none;
  width: clamp(55px, 5vw, 78px);
  aspect-ratio: 1;
  border: 1px solid #9f927c;
  background: repeating-conic-gradient(from -1deg, #90846d 0 1deg, transparent 1deg 15deg);
}

.compass-face::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #d5cbb7 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), #d5cbb7 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    #f6f3ec;
}

.compass-needle {
  inset: 18% 40%;
  transform: rotate(36deg);
  clip-path: polygon(50% 0, 100% 55%, 50% 100%, 0 45%);
  background: linear-gradient(180deg, #372e20 0 48%, var(--accent) 48%);
}

.orientation-scene .section-intro .section-title {
  max-width: 10em;
  margin: clamp(23px, 3vw, 44px) 0 24px;
  font-size: clamp(48px, 5.5vw, 86px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.orientation-scene .section-intro > p {
  max-width: 41ch;
  color: #484943;
}

.orientation-scene .eaa-note {
  max-width: 42ch;
  margin-top: clamp(23px, 3vw, 42px);
  padding-top: 18px;
  border-color: #cabfac;
}

.orientation-scene .eaa-note > .icon { color: #72531d; }
.orientation-scene .eaa-note p { color: #58584f; }

.orientation-scene #outil {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3.1vw, 46px);
  border: 1px solid #cfc8b9;
  border-top: 3px solid var(--ink);
  border-radius: 2px 2px 7px 2px;
  box-shadow: 5px 5px 0 -1px #e5dfd1, 5px 5px 0 #cdc4b2, 0 26px 38px -35px #5a492e;
  background: #fffdfa;
}

.orientation-scene #outil:empty { display: none; }
.orientation-scene #outil > .eyebrow { margin-bottom: 17px; color: #625944; }
.orientation-scene #outil > .eyebrow::before { width: 24px; height: 2px; background: #a66c18; }
.orientation-scene #outil legend,
.orientation-scene #outil .short-answer h2 {
  font-weight: 900;
  font-size: clamp(26px, 2.4vw, 41px);
  letter-spacing: -.025em;
}

.orientation-scene #question-aide { margin: 9px 0 21px; color: #55544c; }
.orientation-scene #outil .choices { border-top: 1px solid #d9d3c5; }
.orientation-scene #outil .choice {
  gap: 12px;
  min-height: 49px;
  padding: 14px 9px;
  border: 0;
  border-bottom: 1px solid #d9d3c5;
  border-radius: 0;
  background: transparent;
}

.orientation-scene #outil .choice input { translate: 0 .14em; }
.orientation-scene #outil .choice:has(:checked) {
  background: #faedcf;
  box-shadow: inset 3px 0 #9b660e;
}

@media (hover: hover) {
  .orientation-scene #outil .choice:hover { background: #f7f1e6; }
  .orientation-scene #outil .choice:has(:checked):hover { background: #f5e6c3; }
}

.orientation-scene #outil .choice:has(input:focus-visible) {
  position: relative;
  outline-offset: -3px;
}

.orientation-scene #outil .actions { margin-top: 22px; }
.orientation-scene #outil .actions .button { min-height: 45px; }
.orientation-scene #outil .short-answer p { max-width: 70ch; }
.orientation-scene:has(#outil .short-answer) .consultation-layout { align-items: start; }

/* Contact : le sigle Webcover est intégré au champ de couleur ambre. */
.contact-scene {
  isolation: isolate;
  padding-block: clamp(40px, 5.3vw, 76px);
  color: var(--ink);
  background: #ecab3d;
}

.contact-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #f2be65 0, #ecab3d 55%, #e5a132 100%);
}

.contact-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: min(65%, 1000px);
  height: 100%;
  pointer-events: none;
  background-image: url("/assets/brand/webcover.svg");
  background-repeat: no-repeat;
  background-position: left -5vw bottom -8vw;
  background-size: 100% auto;
  filter: brightness(0);
  opacity: .075;
}

.contact-scene .contact-intro {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(30px, 5.5vw, 85px);
}

.contact-scene .contact-heading > .section-label { color: #483410; }
.contact-scene .contact-heading .accent-line { background: #563e18; }
.contact-scene .contact-heading .section-title {
  margin: 18px 0 0;
  font-size: clamp(54px, 6.15vw, 89px);
  line-height: .92;
  letter-spacing: -.045em;
}

.contact-scene .contact-options {
  max-width: 58ch;
  padding-top: 23px;
  border-top: 1px solid #79571f;
}
.contact-scene .contact-options > p { color: #2f2516; }
.contact-scene .contact-options .button { --bs-btn-min-height: 48px; }
.contact-scene .contact-options .btn-solid {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-color: #fff9ee;
  --bs-btn-hover-bg: #382c1b;
  --bs-btn-hover-color: #fff9ee;
  --bs-btn-hover-border-color: var(--ink);
}
.contact-scene .contact-options .btn-outline {
  --bs-btn-border-color: #57401c;
  --bs-btn-hover-border-color: #57401c;
  --bs-btn-hover-bg: #ffcf7a;
}
.contact-scene .contact-options :focus-visible { outline-color: var(--ink); }
.contact-scene .contact-form-panel { margin-top: 56px; }

@media (min-width: 901px) {
  .orientation-scene { min-height: min(94svh, 1060px); }
}

@media (max-width: 900px) {
  .consultation-layout { grid-template-columns: 1fr; gap: 34px; }
  .orientation-scene .section-intro .section-title { max-width: 14em; }
  .orientation-scene .section-intro > p,
  .orientation-scene .eaa-note { max-width: 64ch; }
  .contact-scene .contact-intro { grid-template-columns: 1fr; gap: 25px; }
  .contact-scene .contact-heading br { display: initial; }
}

@media (max-width: 560px) {
  .orientation-scene { padding-block: 63px 72px; }
  .orientation-scene .section-intro .section-title {
    margin: 18px 0 15px;
    font-size: clamp(40px, 10.8vw, 62px);
 }
  .compass-face { width: 46px; }
  .orientation-heading { gap: 12px; }
  .orientation-scene .eaa-note { margin-top: 20px; padding-top: 13px; }
  .orientation-scene #outil { padding: 23px 17px 21px; }
  .orientation-scene #outil .choice { padding: 13px 6px; }
  .contact-scene .contact-heading .section-title {
    font-size: clamp(40px, 11.6vw, 62px);
    margin-top: 12px;
 }
  .contact-scene::after { width: 90%; opacity: .065; }
  .contact-scene .contact-intro { gap: 22px; }
  .contact-scene .contact-options { padding-top: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .orientation-heading.motion-in-view .compass-needle {
    animation: orientation-needle-settle 1.05s var(--scene-ease) both;
 }
  .contact-heading.motion-in-view .section-title {
    animation: enter-page .95s var(--scene-ease) backwards;
 }
  @keyframes orientation-needle-settle {
    from { transform: rotate(-30deg); }
    78% { transform: rotate(40deg); }
    to { transform: rotate(36deg); }
 }
}
