:root {
  --color-primary: #e63946;
  --color-bg: #18181b;
  --spacing-unit-xs: 10px;
  --spacing-unit-s: 20px;
  --spacing-unit: 40px;
  --spacing-unit-l: 80px;
  --border-radius: 20px;
}

* {
  box-sizing: border-box;
  font-family: 'Asap', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: #18181b;
  color: #fff;
  margin: 0 auto;
  padding: 0rem;
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
    user-select: none;
}

a {
  color: #AAA;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}
a:active {
  color: #fff;
}
.hidden {
  display: none;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-unit-s) 0;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 70px;
  font-weight: 900;
  letter-spacing: 2px;
}

h2 {
  text-transform: uppercase;
  font-size: 1.1em;
  font-weight: 800;
}
.r-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.r-row>* {
  margin: 0;
  width: 100%;
}


.hero {
  padding-top: var(--spacing-unit-s);
}

@media (max-width: 600px) {
  .mobile-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--spacing-unit);
    z-index: 100;
  }
  .mobile-fixed.with-bg {
    background: var(--color-bg);
  }
  .mobile-fixed.with-bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom,
        transparent,
        var(--color-bg));
    pointer-events: none;
    /* le dégradé ne bloque pas les clics */
    z-index: 2;
  }
}

/* RIFT */
.r-rift {
  position: relative;
  max-width: 768px;
  height: 100vh;
  max-height: 844px;
  margin: 0 auto;
  overflow: auto;
  font-size: 35px;
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  /* box-shadow: 0 0 64px 0 rgba(255,255,255, 0.05); */
}

.r-steps {
  display: flex;
  height: 100%;
  width: 100%;
  margin: auto 0;
  flex-direction: column;
  gap: 2rem;
}
.r-step {
  height: 100%;
  min-height: auto;
  width: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
.r-step-container {
  height: 100%;
  min-height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: none;
  position: relative;
  padding: var(--spacing-unit);
}
@media (min-width: 600px) {
  .r-step-container {
    padding: var(--spacing-unit-l);
  }
}
.r-step-content {
  width: 100%;
  min-height: auto;
}

.t-tilt, .t-tilt-l {
  font-size: 60px;
  font-weight: 600;
  font-stretch: semi-condensed;
  letter-spacing: 1px;
  transform: rotate(-7deg);
}
.t-tilt-r {
  font-size: 60px;
  font-weight: 600;
  font-stretch: semi-condensed;
  letter-spacing: 1px;
  transform: rotate(7deg);
}
.r-step#step-cover {
  text-align: center;
}


.r-step img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
}

/* Text */
.t-small {
  font-size: 0.8em;
  font-weight: 200;
}
.t-left {
  text-align: left;
}
.t-center {
  text-align: center;
}

p,
ul,
a {
  margin: 0;
  margin-bottom: var(--spacing-unit-s);
}
button,
img {
  margin: 0;
  margin-bottom: var(--spacing-unit);
}

p:last-child,
ul:last-child,
a:last-child,
button:last-child,
img:last-child {
  margin-bottom: 0;
}
input, textarea {
  background: #353839;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1em;
  padding: 25px 20px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 24px;
  color:#fff;
}
input::placeholder, textarea::placeholder {
  color: #FFF;
  opacity: 0.5;
}

.r-select {
  margin: var(--spacing-unit) 0;
}

.r-select .options {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0;
}

.r-option {
  margin: 0 auto;
  height: auto;
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  margin-bottom: calc(var(--spacing-unit) / 3);
  width: 100%;
  background: #23232b;
  color: #fff;
  border:none;
  border-radius: var(--border-radius);
  padding: 1em 1.5em;
  font-size: 0.6em;
  cursor: pointer;
  transition: all 0.13s;
  outline: none;
  text-align: left;
  word-break: break-word;
}

.r-option.selected,
.r-option:active {
  background: #fff;
  color: #23232b;
}


/* Buttons */
.r-btn { /*Buttons must be accessible even without webc components (in njk files) */
  display: inline-block;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 20px 20px;
  font-family: 'Asap', sans-serif;
  font-size: 32px;
  font-weight: 600;
  font-stretch: semi-condensed;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); /* pour Safari */
}

.r-btn:hover, a.r-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.r-btn:active, a.r-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.r-btn-secondary {
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  font-size: 0.8em;
  font-style: italic;
  font-weight: 400;
}
.r-btn-success {
  background: #5BA63D;
  box-shadow: 0 6px 0 #336A25;
}
.r-btn-success:hover {
  background: #6CBF4A;
  box-shadow: 0 6px 0 #3B8D2E;
}
.r-btn-success:active {
  background: #6CBF4A;
  box-shadow: 0 0 0 #336A25;
  transform: translateY(6px);
  transition: all 0.1s;
}

.r-btn-warning {
  background: #F2A900;
  box-shadow: 0 6px 0 #B37C00;
}
.r-btn-warning:hover {
  background: #F2B700;
  box-shadow: 0 6px 0 #B37C00;
}
.r-btn-info {
  background: #1E90FF;
  box-shadow: 0 6px 0 #0A5BBF;
}
.r-btn-info:hover {
  background: #3A9FFF;
  box-shadow: 0 6px 0 #0A5BBF;
}
.r-btn-danger {
  background: #E54E1F;
  box-shadow: 0 6px 0 #B32408;
}
.r-btn-danger:hover {
  background: #F26A3D;
  box-shadow: 0 6px 0 #B32408;
}
.rifts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.rift-card {
  position: relative;
  flex: 1 1 220px;
  /* Largeur flexible, base à 320px */
  max-width: 300px;
  /* Largeur max pour éviter que ça déborde */
  min-width: 200px;
  /* Largeur min (collé au design mobile) */
  box-sizing: border-box;

  background: #23232b;
  border-radius: 18px;
  padding: 2.5rem 0.5rem;
  margin: 0;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.12s;
}
.rift-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.16);
  background: #28283a;
}
.rift-card-number {
  position: absolute;
  top: 12px;
  left: 12px;
  transform: rotate(-20deg);
  font-size: 20px;
  font-weight: 400;
}

.main-content {
  max-width: 1200px;
  margin: auto;
}

r-small, .r-small {
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1.4;
}

.r-quote {
  margin:0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 0.9em;
  padding: 0 20px;
  line-height: 1.4;
  margin-bottom: var(--spacing-unit);
  position: relative;
}

.r-quote:before {
  content: "“";
  position: absolute;
  left: -20px;
  top: -20px;
  font-size: 2.2em;
  color: #d5d5d5;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-style: normal;
}
.r-quote:after {
  content: "”";
  position: absolute;
  right: -20px;
  /* Ajuste selon ton besoin */
  bottom: -20px;
  /* Ajuste selon ton besoin */
  font-size: 2.2em;
  color: #d5d5d5;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-style: normal;
}

r-emoji, .r-emoji {
  display: block;
  font-size: 2em;
  margin-bottom: var(--spacing-unit-s);
}

/* Margins */
.m-t {
  margin-top: var(--spacing-unit);
}
.m-ts {
  margin-top: var(--spacing-unit-s);
}
.m-r {
  margin-right: var(--spacing-unit);
}
.m-rs {
  margin-right: var(--spacing-unit-s);
}
.m-l {
  margin-left: var(--spacing-unit);
}
.m-ls {
  margin-left: var(--spacing-unit-s);
}
.m-bl {
  margin-bottom: var(--spacing-unit-l);
}
.m-bs {
  margin-bottom: var(--spacing-unit-s);
}

/* Padding */
.p-t {
  padding-top: var(--spacing-unit);
}

.p-ts {
  padding-top: var(--spacing-unit-s);
}

.p-r {
  padding-right: var(--spacing-unit);
}

.p-rs {
  padding-right: var(--spacing-unit-s);
}

.p-l {
  padding-left: var(--spacing-unit);
}

.p-ls {
  padding-left: var(--spacing-unit-s);
}

.p-b {
  padding-bottom: var(--spacing-unit);
}

.p-bs {
  padding-bottom: var(--spacing-unit-s);
}

/* Index */
.main-content {
  padding: 0 calc(var(--spacing-unit));
  margin-top: calc(var(--spacing-unit) * 2);
}
.logo-container {
  display: flex;
  flex: auto;
  flex-direction: row;
  /* horizontal */
  align-items: center;
  /* vertical */
  justify-content: center;
  width: 100%;
  text-align: left;
  gap: var(--spacing-unit-s);
  margin-bottom: var(--spacing-unit-s) !important;
}
.logo {
  width: auto;
  height: 110px;
  margin: 0;
}
.brand {
  width: auto;
  font-size: 2.6em;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.promise {
  font-size: 0.9em;
}
.rotating-word {
  text-decoration: underline;
  transition: opacity 0.5s ease;
}
.input--hidden {
  position: absolute;
  left: -5000px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.form-errors {
  color: #B32408;
  font-size: 0.9em;
  margin-top: 0.5rem;
}

.form-info {
  color: #1E90FF;
  font-size: 0.9em;
  margin-top: 0.5rem;
}