/* IAEprep 0.3.7 — announcement banner and cookie window, shared by the public pages and the application. */

/* ---------------------------------------------------------------- banner */
.simbn {
  container-type: inline-size;
  position: relative;
  z-index: 40;
  background: var(--iris, #6946c6);
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
}
.simbn--soft {
  background: var(--pale, #ede7fa);
  color: var(--ink, #2d2347);
  border-bottom: 1px solid var(--line, #ddd5eb);
}
.simbn-in {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 44px;
  padding: 8px 56px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  box-sizing: border-box;
}
.simbn-tag {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.simbn--soft .simbn-tag {
  background: var(--iris, #6946c6);
  color: #fff;
}
.simbn-msg strong {
  font-weight: 750;
}
.simbn-short {
  display: none;
}
.simbn-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.simbn--soft .simbn-code {
  border-color: var(--iris, #6946c6);
  color: var(--iris-dark, #5435a8);
}
.simbn-code svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.simbn-code.simbn-copied {
  border-style: solid;
}
.simbn-code.simbn-copied::after {
  content: "Copié";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.simbn-cta,
.simbn-cta:visited {
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.simbn--soft .simbn-cta {
  color: var(--iris-dark, #5435a8);
}
.simbn-x {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.simbn-x:hover {
  background: rgba(255, 255, 255, 0.16);
}
.simbn--soft .simbn-x:hover {
  background: rgba(105, 70, 198, 0.1);
}
.simbn-x svg {
  width: 18px;
  height: 18px;
}
.simbn button:focus-visible,
.simbn a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}
.simbn-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Stronger than the page styles (public.css, app.css). */
.simbn a.simbn-cta,
.simbn a.simbn-cta:visited,
.simbn a.simbn-cta:hover {
  color: #fff;
}
.simbn--soft a.simbn-cta,
.simbn--soft a.simbn-cta:visited,
.simbn--soft a.simbn-cta:hover {
  color: var(--iris-dark, #5435a8);
}
.simck h2.simck-title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 21px;
  line-height: 1.25;
}
.simck p.simck-text {
  margin: 0 0 12px;
  max-width: none;
}
/* When the banner is narrower than its full message (application column, tablet): short message. */
@container (max-width: 1080px) {
  .simbn-tag,
  .simbn-long {
    display: none;
  }
  .simbn-short {
    display: inline;
  }
}
/* In the application, the banner sits at the top of the content column. */
.simbn--app {
  border-radius: 0 0 16px 16px;
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .simbn-tag,
  .simbn-long {
    display: none;
  }
  .simbn-short {
    display: inline;
  }
}
@media (max-width: 640px) {
  .simbn {
    font-size: 14px;
  }
  .simbn-in {
    justify-content: flex-start;
    gap: 6px 12px;
    padding: 8px 48px 9px 16px;
  }
  .simbn-msg {
    flex-basis: 100%;
  }
  .simbn-x {
    top: 4px;
    transform: none;
    right: 4px;
  }
  .simbn--app {
    border-radius: 0;
  }
}
/* Administration preview, phone width. */
.simbn--narrow .simbn-tag,
.simbn--narrow .simbn-long {
  display: none;
}
.simbn--narrow .simbn-short {
  display: inline;
}
.simbn--narrow .simbn-in {
  justify-content: flex-start;
  padding: 8px 48px 9px 16px;
}
.simbn--narrow .simbn-msg {
  flex-basis: 100%;
}
.simbn--narrow .simbn-x {
  top: 4px;
  transform: none;
}

/* ---------------------------------------------------------------- cookie window */
.simck {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99990;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-sizing: border-box;
  padding: 14px 22px 18px;
  background: #fff;
  color: var(--ink, #2d2347);
  border: 1px solid var(--line, #ddd5eb);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(45, 35, 71, 0.2);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.simck * {
  box-sizing: border-box;
}
.simck[hidden] {
  display: none;
}
.simck-skip {
  display: block;
  margin: 0 0 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--iris-dark, #5435a8);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.simck-title {
  margin: 0 0 4px;
  font: inherit;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink, #2d2347);
}
.simck-text {
  margin: 0 0 12px;
  color: var(--body, #4a4062);
  font-size: 14.5px;
}
.simck-text a {
  color: var(--iris-dark, #5435a8);
  font-weight: 650;
}
.simck-short {
  display: none;
}
.simck-opts {
  margin: 2px 0 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line, #ddd5eb);
}
.simck-opts[hidden] {
  display: none;
}
.simck-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--pale, #ede7fa);
  cursor: pointer;
}
.simck-need {
  cursor: default;
  justify-content: space-between;
}
.simck-opt b {
  display: block;
  font-size: 14.5px;
  color: var(--ink, #2d2347);
}
.simck-opt span span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted, #675d7c);
}
.simck-opt input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--iris, #6946c6);
}
.simck-always {
  flex: none;
  margin-top: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #def3ea;
  color: #21664c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.simck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.simck-manage {
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--iris-dark, #5435a8);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.simck-ok {
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid var(--iris, #6946c6);
  border-radius: 999px;
  background: var(--iris, #6946c6);
  color: #fff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.simck-ok:hover {
  background: var(--iris-dark, #5435a8);
  border-color: var(--iris-dark, #5435a8);
}
.simck button:focus-visible,
.simck a:focus-visible,
.simck input:focus-visible {
  outline: 3px solid var(--iris-dark, #5435a8);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .simck {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 75vh;
    padding: 10px 16px 12px;
    border-radius: 18px;
    font-size: 14px;
  }
  .simck-long {
    display: none;
  }
  .simck-short {
    display: inline;
  }
  .simck-skip {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .simck h2.simck-title {
    font-size: 18px;
    margin-bottom: 2px;
  }
  .simck-text {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 8px;
  }
  .simck-opts {
    margin: 2px 0 8px;
    padding-top: 4px;
  }
  .simck-opt {
    padding: 7px 0;
    gap: 10px;
  }
  .simck-opt b {
    font-size: 14px;
  }
  .simck-opt span span {
    font-size: 12.5px;
  }
  .simck-always {
    font-size: 11px;
    padding: 2px 8px;
  }
  .simck-manage {
    padding: 8px 2px;
    font-size: 14px;
  }
  .simck-ok {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
  }
}
/* 0.3.19 (owner's request of 26 November 2026): on the phone, a more compact window, so that the
   promise and the main button of the page stay visible on arrival. Same text, same buttons, same
   choices: only the layout changes (title and « Continuer sans accepter » on one line, tighter
   spacing). Nothing changes on the computer. */
@media (max-width: 480px) {
  .simck {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 4px 14px 10px;
    bottom: 10px;
    line-height: 1.4;
  }
  .simck > * {
    grid-column: 1 / -1;
  }
  .simck .simck-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 17px;
  }
  .simck .simck-skip {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    margin: 0;
    padding: 0;
    font-size: 13px;
  }
  .simck .simck-text {
    margin: 2px 0 6px;
    font-size: 13.5px;
    line-height: 1.4;
  }
  .simck .simck-row {
    gap: 10px;
  }
  .simck .simck-manage {
    min-height: 42px;
    padding: 0 2px;
  }
  .simck .simck-ok {
    min-height: 42px;
    padding: 8px 20px;
  }
}
@media print {
  .simbn,
  .simck {
    display: none !important;
  }
}

/* ---------------------------------------------------------------- choices in the application */
/* Folded panel (Paramètres du compte): one line until opened. */
.cookie-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.cookie-panel > summary::-webkit-details-marker {
  display: none;
}
.cookie-panel .cookie-sum h2 {
  margin: 0 0 2px;
}
.cookie-panel .cookie-sum .small {
  display: block;
  margin: 0;
}
.cookie-panel .chev {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--iris, #6946c6);
  stroke-width: 2.4;
  transition: transform 0.2s;
}
.cookie-panel[open] > summary .chev {
  transform: rotate(180deg);
}
.cookie-panel > summary:focus-visible {
  outline: 3px solid var(--iris-dark, #5435a8);
  outline-offset: 4px;
  border-radius: 8px;
}
.cookie-body {
  margin-top: 14px;
}
.cookie-needed {
  margin: 12px 0 8px;
}
.cookie-needed > summary {
  cursor: pointer;
  color: var(--iris-dark, #5435a8);
  font-weight: 650;
  font-size: 15px;
}
.cookie-needed .plain-list {
  margin-top: 8px;
  font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .cookie-panel .chev {
    transition: none;
  }
}
.consent-h {
  margin: 20px 0 6px;
  font-size: 16px;
}
.consent-form {
  margin: 4px 0 14px;
}
.consent-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #ddd5eb);
  cursor: pointer;
}
.consent-choice input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--iris, #6946c6);
}
.consent-choice strong,
.consent-choice .small {
  display: block;
}
.consent-form .button {
  margin-top: 12px;
}
/* 0.3.9 — « Aide » button (the window itself loads at the first click: chat.css) */
.simh-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--iris, #6946c6);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(84, 53, 168, 0.35);
  cursor: pointer;
}
.simh-btn:hover {
  background: var(--iris-dark, #5435a8);
}
.simh-btn:focus-visible {
  outline: 3px solid #2d2347;
  outline-offset: 3px;
}
.simh-btn[hidden] {
  display: none;
}
.simh-btn[aria-busy] {
  cursor: progress;
  opacity: 0.85;
}
.simh-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.simh-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #fff;
  color: var(--iris-dark, #5435a8);
  font-size: 12px;
}
.simh-badge[hidden] {
  display: none;
}
@media (max-width: 719px) {
  .simh-btn {
    right: 14px;
    bottom: 14px;
    height: 48px;
    padding: 0 16px 0 13px;
  }
}
@media print {
  .simh-btn {
    display: none;
  }
}
