:root {
    --primary: #6247aa;
    --primary-light: #7e64c4;
    --secondary: #2962ff;
    --secondary-light: #768fff;
    --accent: #ffd166;
    --success: #06d6a0;
    --error: #ef476f;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --card-bg: #2b7aa0;
    --form-bg: rgba(51, 94, 158, 0.8);
    --border-radius: 16px;
    --button-radius: 30px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: 
        radial-gradient(circle at 10% 20%, rgba(91, 37, 216, 1) 0%, rgba(65, 103, 219, 1) 90%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 70px;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z"/%3E%3Cpath d="M6 5V0H5v5H0v1h5v94h1V6h94V5H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background-image: none;
    overflow: hidden;
    z-index: -1;
}

.figurine-banner {
    position: absolute;
    top: calc(100% + 40px);
    left: 0;
    width: 100vw;
    height: 200px;
    background: transparent;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.figurine-banner-inner {
    display: flex;
    align-items: center;
    height: 100%;
    animation: figurineScroll 60s linear infinite;
    width: max-content;
    min-width: 200vw;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.banner-figurine {
    width: 130px;
    height: 200px;
    margin: 0 30px;
    background-image: url('assets/images/starterpack-min.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    transform: rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
    --rotate: calc(var(--index, 0) * 4deg - 10deg);
    --scale: calc(0.9 + (var(--index, 0) % 5) * 0.03);
    flex-shrink: 0;
    transform-style: preserve-3d;
}

/* Appliquer différentes transformations à chaque figurine pour plus de variété */
.figurine-banner-inner .banner-figurine:nth-child(odd) {
    transform: rotate(5deg) scale(0.95);
}

.figurine-banner-inner .banner-figurine:nth-child(3n) {
    transform: rotate(-8deg) scale(1.05);
}

.figurine-banner-inner .banner-figurine:nth-child(4n) {
    transform: rotate(10deg) scale(0.9);
}

.figurine-banner-inner .banner-figurine:nth-child(5n) {
    transform: rotate(-5deg) scale(1.1);
}

@keyframes figurineScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3)); /* Animation plus fluide */
    }
}

/* Layout principal */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Section HERO */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 2rem 8rem;
    height: 100vh;
    max-height: 800px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--button-radius);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: none;
    cursor: pointer;
    animation: fadeIn 1.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    z-index: 2;
    max-width: 500px;
    width: 100%;
}

/* Carte Figurine */
.figurine-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2/3;
    background-image: url('assets/images/starterpack-min.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(5deg);
    animation: floatCard 6s ease-in-out infinite, fadeIn 1s ease;
    cursor: pointer;
    will-change: transform;
}

@keyframes floatCard {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: rotateY(-3deg) rotateX(3deg) translateY(-10px);
    }
}

.figurine-badge {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.figurine-badge.age {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--card-bg);
    font-size: 1rem;
}

.figurine-badge.action {
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: white;
    font-size: 0.65rem;
    text-align: center;
    padding: 5px;
}

.card-header {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 5;
}

.starter-pack-title {
    background-color: var(--accent);
    color: #333;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 5px;
    border: 2px solid #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.card-body {
    display: flex;
    height: 75%;
}

.character-container {
    display: none;
}

.accessories-container {
    display: none;
}

/* Section principale avec étapes et formulaire */
.main-section {
    display: flex;
    justify-content: space-between;
    padding: 4rem 2rem;
    gap: 3rem;
}

.steps-container {
    flex: 1;
    max-width: 500px;
}

.steps-container h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background-color: var(--primary-light);
}

.step-text {
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-item:hover .step-text {
    transform: translateX(5px);
}

/* Ligne verticale connectant les étapes */
.steps-container .step-item:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    width: 2px;
    height: calc(100% + 2rem);
    background-color: var(--primary-light);
    z-index: 1;
}

/* Formulaire */
.form-container {
    flex: 1;
    padding: 2rem;
    background-color: var(--form-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--light);
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
    transition: all 0.3s ease;
}

input.error {
    border-color: var(--error) !important;
    animation: shake 0.5s ease;
}

input.valid {
    border-color: #4caf50 !important;
}

.upload-button.error {
    border-color: var(--error) !important;
    animation: shake 0.5s ease;
}

.upload-button.valid {
    border-color: #4caf50 !important;
}

.generate-btn {
    position: relative;
    transition: all 0.2s ease;
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.generate-btn.loading {
    padding-left: 40px;
}

.generate-btn.loading::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.6s ease;
}

.success-message i {
    font-size: 3.5rem;
    color: #4caf50;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Section résultats */
.result-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    text-align: center;
    animation: fadeIn 1s ease;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.figurines {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.figurine {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    animation: pop 0.5s ease;
}

.figurine img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.figurine img:hover {
    transform: scale(1.02);
}

.download-btn {
    background-color: var(--accent);
    color: #333;
    border: none;
    border-radius: var(--button-radius);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.download-btn:hover {
    background-color: #ffc233;
    transform: translateY(-2px);
}

.cta-section {
    background-color: rgba(41, 98, 255, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-section form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: stretch;
}

.cta-section input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    height: 50px;
    padding: 0 1.2rem;
    box-sizing: border-box;
}

.cta-section button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cta-section button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.reset-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--button-radius);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.reset-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Loading screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 98, 255, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading p {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.loading .sub-text {
    font-size: 1rem;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        padding: 4rem 1rem;
        gap: 3rem;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .main-section {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-container, .form-container {
        max-width: 100%;
    }
    
    .figurines {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section form {
        flex-direction: column;
    }
    
    .banner-figurine {
        width: 80px;
        height: 130px;
        margin: 0 15px;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .figurine-card {
        max-width: 300px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .main-section {
        padding: 2rem 1rem;
    }
    
    .steps-container h2 {
        font-size: 2rem;
    }
}

.interactive-card {
    transition: transform 0.2s ease-out !important;
    transform-origin: center center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Accessibilité */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.error-message:not(:empty) {
    opacity: 1;
}

/* Focus styles for better keyboard navigation */
input:focus, 
button:focus,
.upload-button:focus {
    outline: 2px solid #2962ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.2);
}

/* Make sure upload button is accessible via keyboard */
.upload-button {
    position: relative;
    cursor: pointer;
}

.upload-button input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Add focus indicator to the file input's parent when the input is focused */
.upload-button:focus-within {
    outline: 2px solid #2962ff;
    outline-offset: 2px;
}

/* Mentions légales */
.legal-notices {
    background-color: #f8f9fa;
    padding: 30px 15px;
    font-size: 0.9rem;
    color: #495057;
    border-top: 1px solid #e9ecef;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.legal-content h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: var(--primary-text);
}

.legal-content p {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content h3 {
    margin: 0;
    font-size: 1.3rem;
}

.cookie-content p {
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.accept-cookies {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.decline-cookies {
    background-color: transparent;
    color: #cccccc;
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.decline-cookies:hover {
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        gap: 10px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .accept-cookies, .decline-cookies {
        width: 100%;
        text-align: center;
    }
}

/* Styles spécifiques à la page des mentions légales */
.legal-header {
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.legal-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4rem;
}

.legal-main h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.legal-main h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--accent);
}

.legal-main p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .legal-main {
        padding: 1.5rem;
    }
    
    .legal-main h1 {
        font-size: 2rem;
    }
    
    .legal-main h2 {
        font-size: 1.3rem;
    }
}

/* Header and Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(98, 71, 170, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
    padding: 0.5rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.logo-text:after {
    content: "⚡";
    color: #FF3B89;
    font-size: 1.6rem;
    margin-left: 5px;
    display: inline-block;
    text-shadow: 0 0 10px #FF3B89;
    animation: pulsate 1.5s infinite alternate;
}

@keyframes pulsate {
    0% { opacity: 0.7; }
    100% { opacity: 1; transform: scale(1.1); }
}

.logo:hover .logo-text {
    color: #FF3B89;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF3B89;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #FF3B89;
}

.main-nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .logo svg {
        height: 30px;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
}

.cursor-active {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="12" stroke="%23ffd166" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="%236247aa"/></svg>'), auto;
}

.cursor-clicked {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="14" fill="%23ffd166"/><circle cx="16" cy="16" r="8" fill="%236247aa"/></svg>'), auto;
}

/* Starter Pack example */
.starter-pack-example {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.starter-pack-example:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 992px) {
    .hero-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .hero-content, .hero-image {
        flex: 1;
    }
}

/* Menu mobile et hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    outline: none; /* Enlever l'outline par défaut */
}

.hamburger-icon, 
.hamburger-icon:before, 
.hamburger-icon:after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    top: 5px;
}

.mobile-menu-toggle.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger-icon:after {
    transform: rotate(-45deg);
    top: -3px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary);
        z-index: 999;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto; /* Permettre le défilement si beaucoup d'items */
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        padding: 15px 25px;
        width: 100%;
        display: block;
        font-size: 18px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .starter-pack-example {
        max-width: 85%;
        margin: 0 auto;
    }
    
    /* Supprimer la barre verticale entre les étapes en responsive */
    .steps-container .step-item:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 767px) {
    .main-header {
        padding: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .steps-container {
        padding: 15px;
    }
    
    .step-item {
        padding: 10px;
    }
    
    .starter-pack-example {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .starter-pack-example {
        max-width: 180px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        margin-bottom: 25px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .steps-container h2 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Starter Pack example amélioré */
.starter-pack-example {
    max-width: 70%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
}

.starter-pack-example:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 992px) {
    .hero-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .hero-content {
        flex: 1;
        max-width: 55%;
    }
    
    .hero-image {
        flex: 1;
        max-width: 40%;
    }
}

/* Style pour empêcher le défilement quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Overlay pour le menu mobile */
.main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.main-nav.active::before {
    opacity: 1;
    visibility: visible;
}

/* Ajustement de la taille du starter pack sur mobile */
@media (max-width: 767px) {
    .starter-pack-example {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .starter-pack-example {
        max-width: 180px;
    }
} 