:root {
    --primary: #FF9249;
    --primary-alt: #C85A14;
    --secondary: #D28CFF;
    --cta-gradient: linear-gradient(180deg, var(--primary) 0%, var(--primary-alt) 100%);
    --color-white: #ffffff;
    --color-dark: #0f0f0f;
    --dark-grey-1: #0F0F0F;
    --dark-grey-2: #161616;
    --dark-grey-3: #1D1D1D;
    --dark-grey-4: #2C2F31;
    --dark-grey-5: #424248;
    --grey-1: #5E5E5E;
    --grey-2: #828282;
    --grey-3: #A4A4A4;
    --grey-4: var(--monochrome-12);
    --transparent-white-1: #ffffffb3;
    --transparent-white-2: #ffffff33;
    --transparent-white-3: #ffffff1a;
    --transparent-white-4: #ffffff0f;
    --monochrome-0: #000;
    --monochrome-12: #ccc;
    --monochrome-15: #fff;
    --font-family-primary: Lato, Arial, sans-serif;
    --font-family-secondary: Inter, Arial, Helvetica, sans-serif;
    --font-family-title: "Bebas Neue", Arial, Helvetica, sans-serif;
    --spacing-small: 12px;
    --spacing-medium: 20px;
    --spacing-large: 40px;
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --title-primary-color: var(--monochrome-15);
    --title-primary-font-family: var(--font-family-title);
    --title-primary-font-size: 3rem;
    --title-primary-font-weight: 400;
    --title-primary-line-height: 1.1;
    --title-primary-text-transform: uppercase;
    --title-secondary-color: var(--monochrome-15);
    --title-secondary-font-family: var(--font-family-primary);
    --title-secondary-font-size: 1.5rem;
    --title-secondary-font-weight: 400;
    --title-secondary-line-height: 1.1;
    --button-primary-bg-color: var(--cta-gradient);
    --button-primary-color: var(--dark-grey-1);
    --button-primary-radius: 8px;
    --button-primary-font-family: var(--font-family-secondary);
    --button-primary-font-size: 1rem;
    --button-primary-font-weight: 600;
    --button-primary-line-height: 1.5;
    --text-font-size-small: .9rem;
    --text-font-size: 1rem;
    --text-line-height: 1.3;
    --text-font-weight: 400;
    --transition-speed: .5s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--font-family-primary);
    font-size: 16px;
    background-color: var(--color-dark);
    color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Common layout classes */
.column {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-small);
}

.title-primary {
    color: var(--title-primary-color);
    font-family: var(--title-primary-font-family);
    font-size: var(--title-primary-font-size);
    font-weight: var(--title-primary-font-weight);
    line-height: var(--title-primary-line-height);
    text-transform: var(--title-primary-text-transform);
    margin: 0;
    transition: all var(--transition-speed);
    z-index: 2;
}

@media(max-width: 768px) {
    .title-primary {
       font-size: 2rem;
       line-height: 35px; 
    }
}

.title-primary.faded {
    color: var(--transparent-white-1);
}

/* Main Container */
.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("../images/image-desktop-sfw.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Header Styles */
.header {
    position: relative;
    width: 100%;
    z-index: 100;
}

.header .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-small)*1.3) calc(var(--spacing-medium)*1.5);
}

.header .header__container .header__logo {
    width: 100%;
    max-width: 135px;
}

.header .header__container .header__logo img {
    width: 100%;
}

.header .header__container .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-small);
    padding: var(--spacing-small) var(--spacing-medium);
}

@media(max-width: 768px) {
    .header .header__container {
        padding: var(--spacing-medium) var(--spacing-small);
    }

    .header .header__container .header__logo {
        max-width: 90px;
    }

    .header .header__container .button-primary {
        gap: calc(var(--spacing-small)*.5);
        padding: calc(var(--spacing-small)*.5) var(--spacing-small);
        font-size: .8rem;
    }
    
    .header .header__container .button-primary svg {
        width: 15px;
        height: auto;
    }
}

/* Button Styles */
.button-primary {
    background: var(--cta-gradient);
    color: var(--dark-grey-1);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: var(--font-family-secondary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.button-primary:hover {
    transform: scale(1.05);
}

.button-primary svg {
    width: 18px;
    height: 18px;
}

.button-primary-small {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Main Content Styles */
.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 12px;
    z-index: 1;
}

/* Background Image */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 15, 1), rgba(15, 15, 15, 0) 50%);
    z-index: 0;
    pointer-events: none;
}


.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 1;
    margin-top: 10%;
    margin-bottom: 25px;
}

@media(min-width: 1024px) {
    .toggle-container {
        margin-bottom: 0;
    }
}

/* Step Container */
.step-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 224px;
    height: 80px;
    gap: 23px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border-radius: 48px;
    border: 4px solid var(--tertiary, #E65F5B);
    background: var(--color-grey-11, #1D1D1D);
}

@media(max-width: 768px) {
    .step-container {
        max-width: 200px;   
        height: 72px;
        gap: 8px;
    }
}

.step-container.active {
    border: 4px solid #FF9249;
    background: var(--color-grey-11, #1D1D1D);
}

.step-container.active .typing-indicator .ball {
    background-image: url("../images/icon-fond-sombre-orange.svg");
    animation: heartbeat 4s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(0.7); 
        opacity: 0.4;
      }
      20% {
        transform: scale(1);
        opacity: 1;
      }
      40% {
        transform: scale(0.7); 
        opacity: 0.4;
      }

      80% {
        transform: scale(1);
        opacity: 1;
      }
      100% {
        transform: scale(0.7); 
        opacity: 0.4;
      }
  }


/* Footer Styles */
.footer {
    width: 100%;
    background: var(--dark-grey-1);
    padding: 40px 0 24px;
    z-index: 1;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-medium) * 1.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.footer__rta-logo {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.footer__rta-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.footer__copyright.mobile {
    display: none;
}

.footer__copyright.mobile p {
    text-align: center;
}

.footer__copyright p {
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--monochrome-15);
    margin: 0;
    white-space: nowrap;
}

.footer__right {
    display: flex;
    align-items: center;
}

.footer__spicier-logo {
    height: 25px;
}

.footer__spicier-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer__links {
    border-top: .8px solid #b6b6b6;
    padding-top: 9.2px;
    height: 24.8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer__links .rta-logo {
    display: none;
}

.footer__links .rta-logo img {
    display: block;
    width: 31px;
    height: auto;
}

.footer__links a {
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 1.6px 0;
    white-space: nowrap;
}

.footer__links a:hover {
    text-decoration: underline;
}

@media(max-width: 768px) {
    .footer__container {
        padding: 0 var(--spacing-small);
    }

    .footer__top {
        flex-direction: column;
        gap: var(--spacing-small);
        align-items: flex-start;
    }
    .footer__left {
        display: none;
    }

    .footer__copyright.desktop {
        display: none;
    }

    .footer__copyright.mobile {
        display: flex;
    }

    .footer__copyright p {
        font-size: 12px;
        white-space: normal;
    }
    
    .footer__right {
        align-self: flex-end;
        justify-content: center;
        order: 1;
        width: 100%;
    }

    .footer__links {
        justify-content: center;
        align-items: center;
        height: auto;
        gap: var(--spacing-small);
    }

    .footer__links .rta-logo {
        display: block;
    }

    .footer__links a {
        font-size: 13px;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .main-container {
        background-image: url("../images/image-desktop-sfw.jpg");
    }
}

@media (min-width: 992px) {
    .button-primary-small {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .main-container {
        background-image: url("../images/image-desktop-sfw.jpg");
    }
}

.typing-indicator {
    margin-right: 15px;
}

.typing-indicator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.typing-indicator .ball {
    display: inline-block;
    width: 30px;
    height: 35px;
    margin: 0 1px;
    background-image: url("../images/icon-fond-sombre.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    animation: typing 1s infinite;
}

@media(max-width: 768px) {
    .typing-indicator .ball {
        width: 22px;
        height: 27px;
    }
}

.typing-indicator .ball:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .ball:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.toggle-switch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border-radius: 40px;
    background: #424248;
    width: 60px; /* Adjust width */
    height: 35px; /* Adjust height */
    position: relative;
}

.toggle-switch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in-out;
}

.toggle-switch-inner:before,
.toggle-switch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 35px; /* Same as label height */
    padding: 0;
    line-height: 35px; /* Same as label height */
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.toggle-switch-inner:before {
    content: "";
    padding-left: 10px;
    background-color: #4CAF50; /* Green for ON */
    color: white;
    background: var(--switch, #98613C);
}

.toggle-switch-inner:after {
    content: "";
    padding-right: 10px;
    color: white;
    text-align: right;
    background: #424248;
}

.toggle-switch-switch {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin: 2px;
    background: #fff;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    right: 27px; 
    border-radius: 12px; 
    transition: right 0.3s ease-in-out;
}

.toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner {
    margin-left: 0;
}

.toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch {
    right: 3px; 
}

.video-desktop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 1;
}

.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 27px;
    z-index: 2;
}

.button-container .button-primary {
    width: 225px;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.button-container .button-primary svg {
    width: 20px;
    height: 20px;
}

@media(max-width: 768px) {
    .button-container.mobile {
        display: flex;
        justify-content: start;
        margin-top: 0px;
        margin-bottom: 20px;
    }
    .button-container.mobile .button-primary{
        width: 98%;
    }

    .button-container.desktop {
        display: none;
    }
}

@media(min-width: 768px) {
    .button-container.desktop {
        display: flex;
    }

    .button-container.mobile {
        display: none;
    }
}

.main-content .text {
    position: absolute;
    bottom: 0;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding: 0 calc(var(--spacing-medium) * 1.5) 0;
    width: 100%;
    max-width: 1200px;
}

@media(max-width: 768px) {
    .main-content .text {
        padding: 0 12px;
    }
}