@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

body {
    color: #666666;
    font-size: 16px;
    line-height: 1.2;
    position: relative;
}

/* Screen styles */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(30px);
    overflow-y: auto;
    padding: 20px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

.screen.exit {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Logo */
.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    max-width: 150px;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Content container */
.content {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    transform-origin: center;
}

.title-block {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.services-block {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.screen.animate .content > *,
.screen.animate .title-block > *,
.screen.animate .services-block > * {
    animation: fadeUp 0.6s forwards cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

/* Animation delay for child elements */
.screen.animate .title-block > *:nth-child(1) { animation-delay: 0.1s; }
.screen.animate .title-block > *:nth-child(2) { animation-delay: 0.2s; }
.screen.animate .services-block > *:nth-child(1) { animation-delay: 0.3s; }
.screen.animate .services-block > *:nth-child(2) { animation-delay: 0.4s; }
.screen.animate .services-block > *:nth-child(3) { animation-delay: 0.5s; }
.screen.animate .services-block > *:nth-child(4) { animation-delay: 0.6s; }
.screen.animate .content > button { animation-delay: 0.7s; }
.screen.animate form { animation-delay: 0.3s; }

/* Typography - TOUS les textes de même taille */
.section-title,
.highlight-big,
.service-line,
p {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #666666;
    letter-spacing: -0.02em;
}

.section-title:before {
    content: "_ ";
    color: #e63030;
}

.highlight {
    color: #e63030;
    font-weight: 800;
}

.highlight-big {
    color: #e63030;
    font-weight: 900;
}

/* Exception pour le texte du formulaire */
.form-intro {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 30px;
    font-weight: 500;
    align-self: center;
    text-align: center;
}

/* === STYLES DE BOUTON HARMONISÉS === */

/* Style de base pour tous les boutons */
.btn {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Bouton circulaire (ENGINE) */
.engine-btn {
    background-color: #e63030;
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    line-height: 1.3;
    box-shadow: 0 4px 15px rgba(230, 48, 48, 0.2);
}

.engine-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 48, 48, 0.3);
}

.stop-btn {
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stop-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Style commun pour les boutons rectangulaires (NEXT et SHARE) */
.rect-btn {
    background-color: transparent;
    color: #666666;
    border: 2px solid #e63030;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.1rem;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(230, 48, 48, 0.1);
}

.rect-btn:hover {
    background-color: #e63030;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(230, 48, 48, 0.2);
}

.rect-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 48, 48, 0.15);
}

/* Bouton de navigation (NEXT) */
.nav-btn:after {
    content: " >";
    color: #e63030;
    font-weight: 800;
    transition: all 0.3s ease;
}

.nav-btn:hover:after {
    color: white;
    transform: translateX(3px);
}

/* Bouton de partage (SHARE) - même style que NEXT */
.share-btn {
    margin-left: auto;
    display: block;
}

.share-btn:after {
    content: " US >";
    color: #e63030;
    font-weight: 800;
    transition: all 0.3s ease;
}

.share-btn:hover:after {
    color: white;
}

/* Form styles */
form {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Poppins', Arial, sans-serif;
    transition: border-color 0.3s ease;
    color: #666666;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #e63030;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
/* Pour très grands écrans */
@media (min-width: 1800px) {
    .content {
        max-width: 1600px;
    }

    .section-title,
    .highlight-big,
    .service-line,
    p {
        font-size: 4rem;
    }

    .engine-btn {
        width: 150px;
        height: 150px;
        font-size: 1.3rem;
    }

    .rect-btn {
        font-size: 1.2rem;
        padding: 15px 35px;
    }
}

/* Pour tablettes */
@media (max-width: 768px) {
    .section-title,
    .highlight-big,
    .service-line,
    p {
        font-size: 2.5rem;
    }

    .logo {
        max-width: 120px;
        top: 20px;
        left: 20px;
    }

    .engine-btn {
        width: 100px;
        height: 100px;
        font-size: 1rem;
        margin: 30px auto;
    }

    .rect-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }

    .form-intro {
        font-size: 0.8rem;
    }

    .title-block {
        margin-bottom: 30px;
    }

    .services-block {
        margin-bottom: 30px;
    }
}

/* Pour téléphones mobiles */
@media (max-width: 480px) {
    .screen {
        padding: 80px 15px 30px;
        justify-content: flex-start;
    }

    .section-title,
    .highlight-big,
    .service-line,
    p {
        font-size: 1.8rem;
    }

    .logo {
        max-width: 100px;
        top: 15px;
        left: 15px;
    }

    .engine-btn {
        width: 90px;
        height: 90px;
        font-size: 0.9rem;
        margin: 25px auto;
    }

    .rect-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .content {
        padding: 20px 10px;
    }

    .title-block {
        margin-bottom: 20px;
    }

    .services-block {
        margin-bottom: 20px;
    }
}

/* Pour orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .screen {
        padding: 70px 15px 20px;
    }

    .content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .title-block, .services-block {
        width: 100%;
        margin-bottom: 15px;
    }

    .section-title,
    .highlight-big,
    .service-line,
    p {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .form-intro {
        font-size: 0.7rem;
    }

    .logo {
        max-width: 80px;
        top: 10px;
        left: 10px;
    }

    .engine-btn {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
        margin: 15px auto;
    }

    .rect-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}