/* Section Hero */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.page-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    color: white;
}

.page-header-subtitle {
    font-size: 1.4rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Filtres */
.filters-container {
    background: var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn i {
    margin-right: 12px;
    font-size: 1.1em;
    min-width: 20px;
    text-align: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Grille des templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.template-preview {
    position: relative;
    aspect-ratio: 9/16;
}

.template-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.preview-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.preview-btn:hover {
    background: var(--primary-dark);
}

.template-info {
    padding: 20px;
}

.template-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.template-header h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.sector-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.template-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.template-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-select,
.btn-login {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-select:hover,
.btn-login:hover {
    background: var(--primary);
    color: white;
}

.active-badge {
    color: var(--success);
    font-weight: 500;
}

/* Modal de prévisualisation */
.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background: var(--gray-light);
    padding: 20px;
}

.phone-outer {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-inner {
    background: white;
    aspect-ratio: 9/19.5;
    width: 100%;
    border-radius: 35px;
    overflow: hidden;
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Section Design Sur Mesure */
.custom-design-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.custom-design-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.custom-design-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.custom-design-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.custom-design-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.custom-design-price {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-detail {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Section Trust */
.trust-section {
    background: var(--light);
    padding: 80px 0;
    text-align: center;
}

.trust-section h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.trust-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.trust-actions {
    margin-top: 2rem;
}

/* Bouton CTA commun */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-design-section .cta-button {
    background: white;
    color: var(--primary);
}

.trust-section .cta-button {
    background: var(--primary);
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .filters-container {
        padding: 20px;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .preview-container {
        min-height: 400px;
    }

    .custom-design-section,
    .trust-section {
        padding: 60px 0;
    }

    .custom-design-content h2,
    .trust-section h2 {
        font-size: 2rem;
    }

    .custom-design-content p,
    .trust-text {
        font-size: 1.1rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}
