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

/* Hero Section */
.hero {
    background: var(--accent-gradient);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 0;
    border-radius: 32px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary-color);
}

/* Calculateur de tarif */
.price-calculator {
    background: var(--light-bg);
    padding: 4rem 0;
}

.calculator-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.calc-field input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.calc-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-result {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--accent-gradient);
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 25px 45px rgba(8, 173, 160, 0.25);
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-currency {
    font-size: 1.5rem;
    opacity: 0.9;
}

.result-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 1rem 0;
}

/* Section Produits */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 40px rgba(15,23,42,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(79, 31, 120, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(8,173,160,0.2);
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-code {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--dark-text);
}

.product-description {
    color: var(--muted-text);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.product-features {
    list-style: none;
    margin: 1rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Section Souscription */
.subscription-section {
    background: radial-gradient(circle at top, rgba(79, 31, 120, 0.1), transparent 60%), var(--light-bg);
    padding: 4rem 0;
}

.subscription-content {
    text-align: center;
}

.subscription-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subscription-content > p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 25px rgba(8,173,160,0.2);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--secondary-color);
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Section À propos */
.about-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--secondary-color);
}

/* Section Contact */
.contact-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

/* Footer */
.main-footer {
    background: linear-gradient(120deg, #391457, #08ada0);
    color: white;
    padding: 3rem 0 1rem;
    border-radius: 32px 32px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(214, 69, 100, 0.08);
    border: 1px solid rgba(214, 69, 100, 0.3);
    border-radius: 16px;
    color: var(--danger-color);
}

/* Styles pour la page de souscription */
.subscription-steps {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 0.5rem;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step.completed .step-circle::after {
    content: '✓';
}

.step-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.subscription-step {
    min-height: 400px;
}

.products-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-selection-card {
    background: var(--card-bg);
    border: 2px solid rgba(79, 31, 120, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-selection-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 18px 28px rgba(8,173,160,0.2);
}

.product-selection-card.selected {
    border-color: var(--primary-color);
    background: rgba(8, 173, 160, 0.08);
}

.product-selection-card h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .calc-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .products-selection-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la page de détail du produit */
.product-detail {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15,23,42,0.15);
    border: 1px solid rgba(79, 31, 120, 0.1);
}

.product-detail-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(79, 31, 120, 0.08);
    margin-bottom: 2rem;
}

.product-detail-header .product-code {
    font-size: 0.9rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-detail-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.product-price-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.product-detail-content {
    margin: 2rem 0;
}

.product-section {
    margin-bottom: 3rem;
}

.product-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid rgba(8, 173, 160, 0.3);
    padding-bottom: 0.5rem;
}

.guarantees-list {
    list-style: none;
    padding: 0;
}

.guarantees-list li {
    padding: 0.75rem;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--light-bg);
}

.guarantees-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.conditions-content {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 16px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(79, 31, 120, 0.1);
}

.conditions-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item strong {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(79, 31, 120, 0.1);
    flex-wrap: wrap;
}

/* Styles pour le formulaire de souscription amélioré */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.form-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(8, 173, 160, 0.08);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(8, 173, 160, 0.12);
}

.days-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    margin-top: 0.5rem;
}

.days-display.days-calculated {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
    text-align: center;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 173, 160, 0.15);
}

