/* Styles spécifiques à la page d'accueil */

/* Séparation entre le header et la section hero */
.header-separator {
    height: 8px;
    background: repeating-linear-gradient(to right, var(--primary-color), var(--secondary-color) 20px, var(--accent-color) 20px, var(--accent-color) 40px);
    position: relative;
    z-index: 99;
    margin-top: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
}

/* Transition entre Hero et Features */
.section-transition.hero-to-features {
    height: 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #f9f9f9;
}

.section-transition.hero-to-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000 0%, #f9f9f9 100%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 75% 60%, 50% 50%, 25% 60%, 0 50%);
    z-index: 1;
    image-rendering: pixelated;
}

.section-transition.hero-to-features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(to right, var(--primary-color), var(--secondary-color) 20px, var(--accent-color) 20px, var(--accent-color) 40px);
    opacity: 0.5;
    animation: pixel-slide 10s linear infinite;
    image-rendering: pixelated;
}

@keyframes pixel-slide {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.feature-card {
    flex: 0 0 calc(33.333% - 30px);
    background-color: var(--flame-dark);
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s steps(3);
    position: relative;
    overflow: hidden;
    border: 4px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff7700'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
    color: var(--pixel-light);
    background-image: linear-gradient(135deg, var(--flame-dark), #441100);
    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23ff7700' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    filter: brightness(1.1);
}

.feature-card.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--flame-dark), var(--primary-color));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--flame-highlight);
    position: relative;
    border: 3px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    image-rendering: pixelated;
    transition: all 0.3s steps(2);
    transition: all 0.2s steps(3);
    image-rendering: pixelated;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-3px);
    color: var(--secondary-color);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.feature-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--flame-highlight);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    text-align: center;
    letter-spacing: 1px;
    padding-bottom: 10px;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.feature-card p {
    color: var(--pixel-light);
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.features {
    position: relative;
    background-color: #f9f9f9;
    padding: 80px 0;
    overflow: hidden;
    border-top: 4px solid #eaeaea;
    border-bottom: 4px solid #eaeaea;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23ddd' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    image-rendering: pixelated;
}

.features .section-title h2 {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-family: 'Press Start 2P', cursive;
}

.features .section-title h2::before,
.features .section-title h2::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.features .section-title h2::before {
    left: -40px;
}

.features .section-title h2::after {
    right: -40px;
    background: linear-gradient(to left, var(--primary-color), transparent);
}

.features .section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
}

/* Styles pour la section contact */
.contact {
    background-color: #f9f9f9;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23ddd' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    image-rendering: pixelated;
}

.contact-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex-direction: column;
}

.contact-info-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--flame-dark);
    padding: 30px;
    border: 4px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff7700'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    image-rendering: pixelated;
    transform: translateZ(0);
    color: var(--pixel-light);
    transition: all 0.3s steps(3);
    background-image: linear-gradient(135deg, var(--flame-dark), #441100);
}

.contact-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23ff7700' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.contact-info-container h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: var(--flame-highlight);
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-container h1 i {
    color: var(--secondary-color);
    animation: icon-float 2s ease infinite;
}

.contact-info-container h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.contact-info-container h2 i {
    color: var(--secondary-color);
    animation: icon-pulse 1.5s infinite alternate;
}

.pixel-divider {
    height: 4px;
    background: repeating-linear-gradient(to right, var(--flame-highlight), var(--secondary-color) 10px, var(--primary-color) 10px, var(--primary-color) 20px);
    margin: 15px 0;
    opacity: 0.8;
    image-rendering: pixelated;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quest-objectives {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.quest-objectives li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    color: var(--pixel-light);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.quest-objectives li i {
    color: var(--secondary-color);
    margin-right: 10px;
    animation: icon-pulse 2s infinite alternate;
}

.quest-reward-text {
    font-style: italic;
    color: var(--flame-highlight);
    font-size: 0.9rem;
    margin-top: 10px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: 0 4px 4px 0;
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border: 4px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff8c00'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    image-rendering: pixelated;
    transform: translateZ(0);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: repeating-linear-gradient(45deg, rgba(255, 140, 0, 0.1), rgba(255, 140, 0, 0.1) 10px, transparent 10px, transparent 20px);
    z-index: -1;
    animation: border-pulse 2s infinite linear;
}

@keyframes border-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.contact-form {
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 25px;
}

.form-group label::before {
    content: '➤';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    animation: label-blink 1.5s infinite;
}

@keyframes label-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #ddd;
    background-color: #f5f5f5;
    color: var(--dark-color);
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.2s steps(3);
    image-rendering: pixelated;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.05);
}

.pixel-input {
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ddd'/%3E%3C/svg%3E") 2 stretch;
    border-width: 4px;
    border-style: solid;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
}

.pixel-input:focus {
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff8c00'/%3E%3C/svg%3E") 2 stretch;
    animation: input-pulse 1.5s infinite;
}

@keyframes input-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: inset 3px 3px 0 rgba(255, 140, 0, 0.1);
    background-color: #fff;
}

.form-control:hover {
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s steps(3);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;
}

.contact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.contact .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.contact .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact .btn-primary:hover::after {
    left: 100%;
}

.pixel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 0;
    position: relative;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    padding: 12px 24px;
    color: white;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s steps(3);
    image-rendering: pixelated;
    border: 3px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffffff'/%3E%3C/svg%3E") 2 stretch;
}

.pixel-btn:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.pixel-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
}

.pixel-btn i {
    margin-right: 8px;
    animation: icon-bounce 1s infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.contact-form-container .section-title h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.contact-form-container .section-title h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
    animation: envelope-shake 2s infinite;
}

@keyframes envelope-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--flame-dark);
    color: var(--flame-highlight);
    padding: 3px 8px;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', cursive;
    border: 2px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    z-index: 2;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.feature-card[data-level="1"] .level-badge {
    border-color: var(--primary-color);
}

.feature-card[data-level="2"] .level-badge {
    border-color: var(--secondary-color);
}

.feature-card[data-level="3"] .level-badge {
    border-color: var(--accent-color);
}

.feature-progress {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-progress-bar {
    height: 100%;
    background: repeating-linear-gradient(to right, var(--flame-highlight), var(--secondary-color) 10px, var(--primary-color) 10px, var(--primary-color) 20px);
    position: relative;
    transition: width 0.5s steps(5);
    box-shadow: 0 0 5px rgba(255, 183, 0, 0.5);
}

.feature-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite linear;
}

@media (max-width: 992px) {
    .feature-card {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 40px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-image, 
    .about-content {
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-flex-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info-container,
    .contact-form-container {
        width: 100%;
    }
}

/* Ajout de media queries spécifiques pour les écrans moyens */
@media (min-width: 769px) and (max-width: 992px) {
    .features-container {
        justify-content: center;
        gap: 30px;
    }
    
    .feature-card {
        flex: 0 0 calc(50% - 30px);
        margin: 0 15px 40px;
        padding: 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .feature-progress {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .rpg-stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .rpg-stat {
        margin-bottom: 15px;
    }
    
    .feature-card {
        flex: 0 0 100%;
    }
    
    .contact-flex-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info-container,
    .contact-form-container {
        width: 100%;
        margin-bottom: 0;
        padding: 20px;
    }
    
    .contact-info-container h1 {
        font-size: 1.5rem;
    }
    
    .contact-info-container h2 {
        font-size: 1.2rem;
    }
    
    .contact-form-container .section-title h2 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .pixel-input {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    textarea.pixel-input {
        min-height: 100px;
    }
}

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

/* Animations pour les cartes de fonctionnalités */
@keyframes card-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes icon-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.feature-card:hover .feature-icon i {
    animation: icon-float 1.5s ease infinite;
}

.feature-card[data-level="1"] .feature-icon {
    border-bottom: 3px solid var(--primary-color);
}

.feature-card[data-level="2"] .feature-icon {
    border-bottom: 3px solid var(--secondary-color);
}

.feature-card[data-level="3"] .feature-icon {
    border-bottom: 3px solid var(--accent-color);
}

header.scrolled {
    background: rgba(51, 51, 51, 0.95);
    padding: 0.5rem 0;
}

.form-control.error {
    border-color: var(--danger-color);
}

/* Styles pour les éléments RPG */
.rpg-stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rpg-stat {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.rpg-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 80%);
    opacity: 0.2;
    z-index: 0;
}

.rpg-stat-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.rpg-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 1;
}

.rpg-progress {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.rpg-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 75%;
    position: relative;
}

.rpg-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .rpg-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rpg-badge {
        margin: 5px;
    }
    
    .quest-container {
        padding: 15px;
    }
    
    .contact {
        padding: 40px 0;
    }
    
    .contact-flex-container {
        gap: 25px;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 15px;
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    }
    
    .contact-info-container h1 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .contact-info-container h2 {
        font-size: 1.1rem;
        margin: 10px 0;
    }
    
    .contact-info-container p,
    .quest-objectives li {
        font-size: 0.8rem;
    }
    
    .contact-form-container .section-title h2 {
        font-size: 1.2rem;
        padding: 0 5px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .pixel-input {
        padding: 6px;
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .btn.pixel-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        width: 100%;
    }
}

.rpg-badges {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.rpg-badge {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.rpg-badge::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
}

.rpg-badge i {
    position: relative;
    z-index: 1;
}

.quest-container {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
}

.quest-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-description {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Styles améliorés pour le CTA de la section hero */
.hero .btn-primary {
    font-size: 1.1rem;
    padding: 12px 24px;
    border: 3px solid #fff;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"><rect x="0" y="0" width="8" height="8" fill="none" stroke="white" stroke-width="2"/></svg>') 2 stretch;
    box-shadow: 0 0 0 2px var(--flame-dark), 4px 4px 0 rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--flame-dark), var(--secondary-color));
    animation: cta-pulse 2s infinite alternate;
    margin-top: 10px;
    image-rendering: pixelated;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: cta-shine 3s infinite;
    z-index: 1;
}

.hero .btn-primary:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 0 0 0 2px var(--flame-dark), 7px 7px 0 rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, var(--secondary-color), var(--flame-highlight));
    text-shadow: 0 0 5px var(--flame-highlight);
}

.hero .btn-primary:active {
    transform: translateY(0) translateX(0);
    box-shadow: 0 0 0 2px var(--flame-dark), 0 0 0 rgba(0, 0, 0, 0.8);
    transition: all 0.05s;
}

.hero .btn-primary i {
    margin-right: 8px;
    font-size: 1.2rem;
    animation: icon-bounce 1s infinite alternate;
    display: inline-block;
    position: relative;
    z-index: 2;
}

@keyframes cta-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes cta-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes icon-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

/* Transition entre Features et About */
.section-transition.features-to-about {
    height: 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #f9f9f9;
}

.section-transition.features-to-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f9f9f9 0%, #fff 100%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 75% 60%, 50% 50%, 25% 60%, 0 50%);
    z-index: 1;
    image-rendering: pixelated;
}

.section-transition.features-to-about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(to right, var(--flame-dark), var(--secondary-color) 20px, var(--flame-highlight) 20px, var(--flame-highlight) 40px);
    opacity: 0.5;
    animation: pixel-slide 10s linear infinite;
    image-rendering: pixelated;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #222;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #333;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23444' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    image-rendering: pixelated;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 0 0 45%;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    filter: grayscale(30%) contrast(120%) brightness(90%);
    border: 4px solid #333;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff4500'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
}

.about-image:hover img {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.3);
    filter: grayscale(0%) contrast(120%) brightness(100%);
}

.about-content {
    flex: 0 0 45%;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Transition entre About et Contact */
.section-transition.about-to-contact {
    height: 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #f9f9f9;
}

.section-transition.about-to-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #222 0%, #f9f9f9 100%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 75% 60%, 50% 50%, 25% 60%, 0 50%);
    z-index: 1;
    image-rendering: pixelated;
}

/* Contact Section - Thème clair */
.contact {
    background-color: #f9f9f9;
    color: var(--dark-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23ddd' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    image-rendering: pixelated;
}

/* Conteneur flex pour la section contact */
.contact-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-info-container {
    flex: 1 1 45%;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border: 2px solid #f0f0f0;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff8c00'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
}

.contact-form-container {
    flex: 1 1 45%;
    position: relative;
    z-index: 1;
}

/* Styles responsifs pour la section contact */
@media (max-width: 992px) {
    .contact-flex-container {
        flex-direction: column;
    }
    
    .contact-info-container,
    .contact-form-container {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
}

/* Styles pour grands écrans */
@media (min-width: 1200px) {
    .contact-flex-container {
        flex-direction: row;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .contact-info-container {
        flex: 1 1 40%;
        margin-right: 40px;
    }
    
    .contact-form-container {
        flex: 1 1 50%;
        max-width: 650px;
    }
    
    .contact-form {
        max-width: 100%;
        padding: 40px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-control {
        padding: 15px;
    }
    
    textarea.form-control {
        min-height: 180px;
    }
}

/* Styles existants pour le contenu du conteneur d'information */

.contact-info-container h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.contact-info-container p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #ccc;
}

.contact-info-container h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin: 20px 0 15px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-left: 25px;
}

.contact-info-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.contact-info-container li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #ccc;
}

.contact-info-container li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    animation: pixel-slide 10s linear infinite;
}

.contact-info-container:hover {
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ffb700'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.contact-info-container h2::before {
    content: '⚔️';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1rem;
    animation: icon-bounce 1s infinite alternate;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border: 2px solid #f0f0f0;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ddd'/%3E%3C/svg%3E") 2 stretch;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.2s steps(3);
    image-rendering: pixelated;
    width: 100%;
    box-sizing: border-box;
}

.contact-form:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff8c00'/%3E%3C/svg%3E") 2 stretch;
}

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

.form-submit {
    text-align: center;
}

.responsive-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.2s ease;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    color: var(--dark-color);
    border-radius: 0;
    transition: all 0.2s steps(3);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.form-group:hover label {
    color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    padding: 12px 25px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.2s steps(3);
    image-rendering: pixelated;
}

.contact .btn-primary:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.contact .btn-primary:active {
    transform: translateY(0) translateX(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image, .about-content {
        flex: 0 0 100%;
    }
}