/* ============================================
   TIME TO PLAY LANDING PAGE - Design exact
   ============================================ */

/* Import de la police Dancing Script */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

/* Styles pour la version standalone (sans menu/footer) */
.timetoplay-standalone {
    margin: 0;
    padding: 0;
    font-family: var(--font-ibm);
}

.timetoplay-standalone * {
    box-sizing: border-box;
}

/* Container principal */
.timetoplay-page {
    width: 100%;
    min-height: 100vh;
    background: url('/images/timetoplayBack.png');
    background-repeat: repeat;
    background-size: auto;
    position: relative;
    overflow-x: hidden;
}

/* Section principale */
.timetoplay-page .timetoplay-main {
    background: url('/images/timetoplayBack.png') repeat !important;
    background-color: transparent !important;
    position: relative;
}

.timetoplay-page .timetoplay-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Titre principal */
.timetoplay-welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.timetoplay-welcome__title {
    font-family: var(--font-ibm);
    font-style: normal;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    font-weight: bold;
    color: #000000;
}

.timetoplay-welcome__subtitle {
    font-family: var(--font-ibm);
    font-size: 18px;
    font-weight: normal;
    color: #000;
    margin: 0;
}

/* Container du formulaire */
.timetoplay-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Formulaire en grid */
.timetoplay-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background: transparent;
    padding: 0;
}

/* Sections du formulaire */
.timetoplay-form-section {
    background: transparent;
}

.timetoplay-form-section__title {
    font-size: 25px;
    font-weight: normal;
    color: #000;
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--font-brush);
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #000;
    border-radius: 25px;
    font-family: var(--font-ibm);
    font-size: 16px;
    color: #333;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #999;
    font-weight: normal;
}

.form-group input:focus {
    outline: none;
    border-color: #e31e24;
}

/* Section produits - radio buttons */
.timetoplay-products {
    margin-bottom: 2rem;
}

.timetoplay-products__grid {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.timetoplay-product-item {
    display: flex;
    font-family: var(--font-ibm);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.timetoplay-product-item__radio {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
    background-color: white;
}

.timetoplay-product-item__radio:checked {
    border-color: #e31e24;
}

.timetoplay-product-item__radio:checked::after {
    content: '';
    position: absolute;
    border: 3px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #e31e24;
    border-radius: 50%;
}

.timetoplay-product-item__label {
    font-family: var(--font-ibm);
    font-size: 14px;
    color: #000;
    cursor: pointer;
    font-weight: 600;
}

/* Email dans la section droite */
.timetoplay-form-section--right .form-group {
    margin-top: 2rem;
}

/* Consentement */
.timetoplay-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.timetoplay-consent__checkbox {
    width: 16px;
    height: 16px;
    text-align: center;
    border: 1px solid #000;
    background: white;
    appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.timetoplay-consent__checkbox:checked {
    background: #e31e24;
    border: 1px solid #000;
}

.timetoplay-consent__checkbox:checked::after {
    content: '';
    position: absolute;
    border: 2.5px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: transparent;
}

.timetoplay-consent__label {
    font-family: var(--font-ibm);
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.timetoplay-consent__label a {
    color: #000000;
    text-decoration: underline;
}

/* Notes légales */
.timetoplay-legal {
    text-align: center;
    margin-top: 2rem;
}

.timetoplay-legal__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timetoplay-legal__footer {
    flex: 0 0 auto;
    text-align: center;
}

.timetoplay-legal__footer-title {
    font-family: var(--font-ibm);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.25rem 0;
}

.timetoplay-legal__footer-subtitle {
    font-family: var(--font-ibm);
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
    font-style: italic;
}

.timetoplay-legal__mandatory {
    font-family: var(--font-ibm);
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.timetoplay-legal__links {
    font-family: var(--font-ibm);
    font-size: 11px;
    color: #666;
    margin: 0;
    text-align: center;
}

.timetoplay-legal__links a {
    color: #666;
    text-decoration: underline;
}

/* États d'erreur */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #e31e24;
}

.form-error {
    color: #e31e24;
    font-size: 12px;
    margin-top: 5px;
    font-family: var(--font-ibm);
}

@media (min-width: 769px) {
    .timetoplay-form {
        grid-template-columns: 1fr 1fr;
    }

    .timetoplay-form-section--submit {
        grid-column: 1 / -1;
    }

    .timetoplay-products__grid {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .timetoplay-product-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        flex: 1;
    }

    .timetoplay-product-item__label {
        font-size: 12px;
    }

    .timetoplay-legal__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }

    .timetoplay-legal__footer {
        text-align: left;
        flex: 0 0 auto;
    }

    .timetoplay-legal__links {
        text-align: right;
        flex: 1;
        align-self: flex-end;
    }
}

.btn__icon {
    width: 16px;
    height: 16px;
    margin-right: 3px;
    display: inline-block;
}
