/* style.css - Version équilibrée */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FBF7F0 0%, #F5EFE0 100%);
    color: #2C3A2B;
    line-height: 1.6;
    min-height: 100vh;
    padding: 30px 20px;
}

/* Grand cadre extérieur (identique sur toutes les pages) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 60px;
    padding: 40px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25);
    min-height: 70vh;
}

/* ===== MENU (identique partout) ===== */
.main-menu {
    background: #F5EFE0;
    border-radius: 60px;
    padding: 12px 25px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #2C3A2B;
}

.logo span {
    color: #D9A13B;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    background: white;
    color: #4C6A3B;
}

.nav-links a:hover {
    background: #D9A13B;
    color: white;
}

.btn-licence {
    background: transparent !important;
    border: 2px solid #8FBC8F;
}

/* ===== PAGE D'ACCUEIL (large, pas de restrictions) ===== */
.hero {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2C3A2B;
}

.highlight {
    color: #D9A13B;
}

.hero-image {
    flex: 1;
    text-align: center;
    font-size: 120px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.benefit-card {
    background: #FBF7F0;
    border-radius: 30px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 50px 0;
}

.pricing-card {
    background: #FBF7F0;
    border-radius: 30px;
    padding: 25px;
    width: 260px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #D9A13B;
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #D9A13B;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
}

.price span {
    font-size: 14px;
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0;
}

.pricing-card li {
    margin: 10px 0;
}

/* ===== PAGES AVEC FORMULAIRES (activation, essai, achat, generer) ===== */
/* Ces styles ne s'appliquent qu'aux formulaires, pas à l'accueil */
form .form-group,
.essai-form .form-group,
.activation-form .form-group {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

form input, 
form select,
.essai-form input,
.activation-form input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #E9DCCF;
    border-radius: 40px;
    background: white;
}

form button,
.essai-form button,
.activation-form button {
    display: block;
    margin: 20px auto 0;
}

/* Style général pour tous les formulaires */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4C6A3B;
}

input, select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #E9DCCF;
    border-radius: 40px;
    background: white;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #D9A13B;
    box-shadow: 0 0 0 3px rgba(217, 161, 59, 0.1);
}

/* Boutons */
button, .btn {
    background: #D9A13B;
    color: #2C3A2B;
    padding: 12px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 161, 59, 0.3);
}

/* Compteur essais */
.compteur {
    background: #F5EFE0;
    padding: 15px;
    border-radius: 40px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Zone histoire */
.histoire-texte {
    background: #FBF7F0;
    border-radius: 30px;
    padding: 30px;
    line-height: 1.6;
    font-size: 17px;
    color: #2C3A2B;
}

.histoire-texte p {
    margin-bottom: 12px;
}

/* Titres */
h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #4C6A3B;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin: 40px 0 25px;
    color: #4C6A3B;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #E9DCCF;
    margin-top: 50px;
    color: #999;
}

/* Messages succès/erreur */
.success {
    background: #8FBC8F;
    color: white;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.error {
    background: #E9DCCF;
    color: #c0392b;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 20px;
}

/* Info box */
.info {
    background: #F5EFE0;
    padding: 15px;
    border-radius: 30px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .main-menu {
        flex-direction: column;
        text-align: center;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    form .form-group,
    .essai-form .form-group,
    .activation-form .form-group {
        max-width: 100%;
    }
}