 :root {
 --background: #24192d;
  --background-deep: #17111e;
  --surface: rgba(48, 34, 58, 0.82);
  --surface-light: rgba(67, 47, 79, 0.72);
  --surface-soft: rgba(77, 55, 91, 0.45);
  --text: #f4eedc;
  --text-soft: #ddd3c2;
  --muted: #aaa0ad;

  --gold: #d8b247;
  --gold-light: #ead18a;
  --gold-soft: rgba(216, 178, 71, 0.16);
  --gold-border: rgba(216, 178, 71, 0.55);

  --violet: #a965b5;
  --violet-light: #c17dcc;
  --violet-dark: #70417d;
  --accent: #d8b247;
  --accent-light: #ead18a;
  --accent-dark: #9f7d25;
  --border: rgba(216, 178, 71, 0.20);
  --border-strong: rgba(216, 178, 71, 0.42);

  --shadow:
    0 25px 70px rgba(0, 0, 0, 0.40);
  --shadow-small:
    0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-gold:
    0 0 35px rgba(216, 178, 71, 0.10);

  --font-display:
    Georgia, "Times New Roman", serif;
  --font-ui:
    Arial, Helvetica, sans-serif;
  --radius: 10px;
  --radius-large: 18px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}
.btntir {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
}
.oracle {
  width: 100%;
  min-height: 100vh;
}
.ORTIR-container {
  padding: 0 !important;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 500ms ease, transform 500ms ease, visibility 500ms ease;
}
.screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.content {
  width: min(720px, 100%);
}
.content--form {
  width: min(500px, 100%);
}
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    0 0 18px rgba(216, 178, 71, 0.18);
}
.screen--intro {
  text-align: center;
}
.intro-content {
  width: min(900px, 100%);
}
.tir32IntroImage {
  display: block;
  width: min(100%, 650px);
  max-height: 400px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 12px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35), 0 0 35px rgba(216, 178, 71, 0.08);
  transition:
    transform 300ms ease, box-shadow 300ms ease;
}
.intro-subtitle {
  max-width: 470px;
  margin: 28px auto 42px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.screen-presentation {
  text-align: left;
}
.historical-text {
  margin: 40px 0px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgba(63, 44, 75, 0.78), rgba(31, 21, 39, 0.78));
  box-shadow:
    var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-soft);
}
.historical-text p {
  margin: 0 0 26px;
}
.historical-text p:last-child {
  margin-bottom: 0;
}
.screen h2, .screen h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.25);
}
.screen h2 {
  line-height: 1.15;
}
.screen h3 {
  line-height: 1.2;
}
blockquote {
  margin: 34px 0;
  padding: 20px 0 20px 28px;
  border-left: 2px solid var(--gold);
  color: #cfc2b4;
  font-style: italic;
  background:
    linear-gradient(90deg, rgba(216, 178, 71, 0.06), transparent);
}
.intro-copy {
  margin: 24px 0 42px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.form-group {
  margin-bottom: 28px;
}
label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
}
input[type="date"] {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    rgba(24, 17, 31, 0.68);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 6px 18px rgba(0, 0, 0, 0.15);
  transition:
    border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
input[type="date"]:hover {
  border-color:
    rgba(216, 178, 71, 0.55);
}
input[type="date"]:focus {
  border-color: var(--gold);
  background:
    rgba(31, 21, 39, 0.90);
  box-shadow:
    0 0 0 3px rgba(216, 178, 71, 0.10), 0 8px 25px rgba(0, 0, 0, 0.22);
}
/* Chrome / Safari calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter:
    invert(77%) sepia(28%) saturate(700%) hue-rotate(3deg) brightness(95%);
  opacity: 0.85;
  cursor: pointer;
}
.field-error {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e48c8c;
}
.screen--loading {
  text-align: center;
}
.loading-content {
  width: min(500px, 100%);
}
.loader {
  width: 46px;
  height: 46px;
  margin: 0 auto 0px;
  border: 2px solid rgba(216, 178, 71, 0.16);
  border-top-color: var(--gold);
  border-right-color: var(--violet-light);
  border-radius: 50%;
  box-shadow:
    0 0 25px rgba(216, 178, 71, 0.10);
  animation: spin 900ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
 .screen--result {
  align-items: flex-start;
  padding: 0px;
}
.result {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgba(57, 41, 69, 0.92), rgba(27, 19, 34, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(216, 178, 71, 0.06);
  overflow: hidden;
}
.result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.75;
}
.screen--result .eyebrow {
  margin-bottom: 15px;
  text-align: center;
}
.initial-block {
  max-width: 560px;
  margin: 0 auto 10px;
  text-align: center;
}
.initial {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 15vw, 100px);
  height: clamp(80px, 15vw, 100px);
  margin: 0 auto 10px;
  font-size: clamp(25px, 10vw, 40px);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 178, 71, 0.10) 0%, rgba(169, 101, 181, 0.06) 45%, transparent 72%);
  color: var(--gold-light);
  font-family: var(--font-display);
  line-height: 1;
  text-shadow:
    0 0 25px rgba(216, 178, 71, 0.18);
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.30), 0 0 35px rgba(216, 178, 71, 0.08), inset 0 0 25px rgba(216, 178, 71, 0.05);
}
.initial::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(216, 178, 71, 0.18);
  border-radius: 50%;
}
.initial-explanation {
  max-width: 520px;
  margin: 0 auto 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  line-height: 1.3;
  color: var(--muted);
}
.result-section {
  margin: 0px;
  padding: 0px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.result-label {
  margin: 0 0 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-section h2 {
  font-family: var(--font-display);
  color: var(--gold-light);
  text-shadow:
    0 0 25px rgba(216, 178, 71, 0.12);
  margin-bottom: 15px !important;
}
.oracle-text {
  width: 100%;
}
.result-main-text {
  position: relative;
  margin: 10px 0px;
  padding: 0 6px;
  font-family: var(--font-display);
  line-height: 1.45;
  text-align: center;
  color: var(--text);
}
.result-main-text::before {}
.result-secondary-text {
  position: relative;
  margin: 12px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(69, 49, 81, 0.58), rgba(32, 23, 40, 0.72));
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  box-shadow:
    var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.result-secondary-text:hover {
  transform: translateY(-2px);
  border-color:
    rgba(216, 178, 71, 0.35);
  background:
    linear-gradient(145deg, rgba(76, 54, 88, 0.65), rgba(34, 24, 42, 0.78));
}
#result-text1, #result-text2, #result-text3 {
  position: relative;
  padding-top: 38px;
}
#result-text1::before, #result-text2::before, #result-text3::before {
  position: absolute;
  top: 13px;
  left: 24px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
#result-text1::before {
  content: "TODAY";
}

#result-text2::before {
  content: "IN THE FUTURE";
}

#result-text3::before {
  content: "IN THE PAST";
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .screen, .button--primary, input[type="date"], .result-secondary-text, #tir32IntroImage {
    transition: none;
  }
  .loader {
    animation: none;
  }
}
@media (max-width: 600px) {
  .screen {
    padding: 32px 18px;
  }
  .intro-subtitle {
    margin-top: 26px;
    margin-bottom: 34px;
    font-size: 15px;
  }
  #tir32IntroImage {
    max-height: 210px;
    border-radius: 10px;
  }
  .historical-text {
    margin: 30px 0;
    padding: 26px 22px;
    font-size: 17px;
    line-height: 1.8;
    border-radius: 14px;
  }
  input[type="date"] {
    min-height: 56px;
    font-size: 16px;
  }
  .screen--result {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .result {
    padding: 28px 20px 34px;
    border-radius: 14px;
  }
  .screen--result .eyebrow {
    margin-bottom: 24px;
  }
  .initial {
    width: 112px;
    height: 112px;
    margin-bottom: 18px;
    font-size: 76px;
  }
  .initial-explanation {
    margin-bottom: 34px;
    font-size: 14px;
    line-height: 1.65;
  }
  .result-section {
    margin-bottom: 34px;
    padding: 23px 0 25px;
  }
  .result-section h2 {
    font-size: 48px;
  }
  .result-main-text {
    padding: 0;
    margin-bottom: 34px;
    font-size: 20px;
    line-height: 1.7;
  }
  .result-main-text::before {
    font-size: 48px;
  }
  .result-secondary-text {
    padding: 20px 18px;
    font-size: 16px;
    line-height: 1.7;
  }
  #result-text1, #result-text2, #result-text3 {
    padding-top: 46px;
  }
  #result-text1::before, #result-text2::before, #result-text3::before {
    left: 18px;
  }
  .button--primary {
    min-height: 47px;
    padding: 11px 24px;
  }
  .intro-content .btntir {
    margin-bottom: 60px !important;
  }
  #oracle-form .btntir {
    margin-bottom: 60px !important;
  }
  
}

@media (max-width: 600px) {

    input[type="date"] {
        width: 100%;
        min-height: 56px;

        padding: 0 12px;

        border: 1px solid var(--border-strong);
        border-radius: var(--radius);

        background-color: #18111f !important;

        color: #f4eedc !important;
        -webkit-text-fill-color: #f4eedc !important;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;

        opacity: 1 !important;

        /* IMPORTANT :
           on laisse le navigateur gérer
           l'apparence native du champ */
        -webkit-appearance: auto;
        appearance: auto;

        color-scheme: dark;
    }

    input[type="date"]::-webkit-datetime-edit {
        color: #f4eedc !important;
        -webkit-text-fill-color: #f4eedc !important;
    }

    input[type="date"]::-webkit-datetime-edit-text {
        color: #aaa0ad !important;
        -webkit-text-fill-color: #aaa0ad !important;
    }

    input[type="date"]::-webkit-datetime-edit-day-field,
    input[type="date"]::-webkit-datetime-edit-month-field,
    input[type="date"]::-webkit-datetime-edit-year-field {
        color: #f4eedc !important;
        -webkit-text-fill-color: #f4eedc !important;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {

        display: block !important;

        opacity: 1 !important;

        visibility: visible !important;

        width: 20px;
        height: 20px;

        cursor: pointer;

        filter:
            invert(78%)
            sepia(40%)
            saturate(650%)
            hue-rotate(5deg)
            brightness(100%);
    }

    input[type="date"]:focus {

        color: #f4eedc !important;
        -webkit-text-fill-color: #f4eedc !important;

        background-color: #1f1527 !important;

        border-color: var(--gold) !important;

        outline: none;

        box-shadow:
            0 0 0 3px rgba(216, 178, 71, 0.10),
            0 8px 25px rgba(0, 0, 0, 0.22);
    }
}