/* Styles pour la page de commande */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --text: #333333;
    --text-light: #6B7280;
    --light: #F9FAFB;
    --accent: #FF6B00;
}

/* Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Version sans fond pour la page header */
.page-header.no-bg {
    background: none;
    padding: 60px 0 80px;
}

.page-header.no-bg h1,
.page-header.no-bg .subtitle {
    color: var(--text);
}

.page-header.no-bg::before {
    display: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-dot.png');
    opacity: 0.1;
    pointer-events: none;
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.4;
}

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

/* Order Form Section */
.order-form-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 1500px; /* Augmenter la hauteur minimale de la section */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start; /* Changer de start à flex-start pour être plus explicite */
    min-height: 1200px; /* Ajouter une hauteur minimale */
}

/* Form Column */
.form-column {
    border-radius: 20px;
    padding: 40px;
}

.form-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text);
}

.price-tag {
    text-align: right;
}

.trial-offer {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

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

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.price-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-error {
    color: #dc3545;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.terms {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.terms a {
    color: var(--primary);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Template Column */
.template-column {
    position: relative;
    height: auto;
    margin-bottom: 30px;
}

.template-preview {
    border-radius: 20px;
    overflow: hidden;
    height: auto;
}

.template-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.template-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.change-template {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.template-frame {
    height: 800px; /* Réduire la hauteur du conteneur */
    overflow: visible;
}

.template-frame iframe {
    width: 100%;
    height: 800px; /* Réduire la hauteur de l'iframe */
    border: none;
    max-height: none;
}

/* Password Requirements */
.password-requirements {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.password-requirements ul {
    padding-left: 20px;
    margin-top: 5px;
}

.password-requirements li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 3px;
}

.password-strength {
    height: 5px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

/* Modal de choix */
.choice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.choice-modal.active {
    display: block;
}

.choice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.choice-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    width: 90%;
    max-width: 600px;
}

.choice-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.choice-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

.choice-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
}

.choice-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: white;
}

.choice-modal-body {
    padding: 1.5rem;
}

.choice-modal-lead {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.choice-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.choice-card {
    text-decoration: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.choice-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.choice-card-body {
    padding: 1.5rem;
    text-align: center;
}

.icon-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.icon-wrapper i {
    font-size: 3rem;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.choice-card h5 {
    margin: 0 0 0.5rem;
    color: #2d3748;
    font-size: 1.25rem;
}

.choice-card p {
    color: #718096;
    margin: 0 0 1.5rem;
}

.badge-success, .badge-warning {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.badge-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: black;
}

.price-strike {
    display: block;
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.subscription-info {
    color: #4f46e5;
    font-weight: 500;
    font-size: 0.9rem;
}

.subscription-info i {
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .order-grid {
        grid-template-columns: 1fr;
    }

    .template-column {
        position: relative;
        top: 0;
    }

    .template-frame {
        height: 500px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .form-column {
        padding: 30px 20px;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .price-tag {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .choice-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }
}
