/* Styles marketing — Hero, Pricing, Features, CTA, Testimonials */

/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */
.hero-section {
    background: var(--hero-gradient);
    color: #fff;
    padding: 6rem 0 5rem;
    text-align: center;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 6rem);
}

.hero-section h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .site-btn-primary {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
}

.hero-section .site-btn-primary:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-dark);
}

.hero-section .site-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-section .site-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Hero compact (pages intérieures) */
.hero-compact {
    background: var(--hero-gradient);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 3rem);
}

.hero-compact h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero-compact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ------------------------------------------------
   Stats bar
   ------------------------------------------------ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ------------------------------------------------
   Category cards (accueil)
   ------------------------------------------------ */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--brand-teal);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-card .plugin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.category-card .plugin-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

.category-card .plugin-list li i {
    color: var(--brand-teal);
    margin-right: 0.35rem;
}

/* ------------------------------------------------
   Plugin preview cards (accueil)
   ------------------------------------------------ */
.plugin-preview-card {
    position: relative;
    overflow: hidden;
}

.plugin-preview-card .plugin-icon {
    font-size: 2rem;
    color: var(--brand-teal);
    margin-bottom: 0.75rem;
}

.plugin-preview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.plugin-preview-card .plugin-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.plugin-preview-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

/* ------------------------------------------------
   Pricing cards
   ------------------------------------------------ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--brand-teal);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-card.popular::before {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-period {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    padding: 0.75rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li i {
    color: var(--color-good);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Toggle mensuel/annuel */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.pricing-toggle span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-toggle span.active {
    color: var(--brand-dark);
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--brand-teal);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.pricing-savings {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-good);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

/* ------------------------------------------------
   Pricing matrix (comparison table)
   ------------------------------------------------ */
.pricing-matrix-wrapper {
    overflow-x: auto;
}

.pricing-matrix {
    width: 100%;
    border-collapse: collapse;
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.pricing-matrix th {
    background: var(--bg-card-alt);
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-matrix th:first-child,
.pricing-matrix td:first-child {
    text-align: left;
    font-weight: 600;
}

.pricing-matrix td:first-child a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.pricing-matrix td:first-child a:hover {
    color: var(--brand-teal);
}

.matrix-check {
    color: var(--color-good);
    font-size: 1.1rem;
}

.matrix-cross {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.matrix-quota {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.matrix-unlimited {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
}

/* ------------------------------------------------
   Feature grid (plugin pages)
   ------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-teal-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ------------------------------------------------
   Use case cards
   ------------------------------------------------ */
.use-case-card {
    border-left: 3px solid var(--brand-gold);
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ------------------------------------------------
   Testimonial cards
   ------------------------------------------------ */
.testimonial-card {
    padding: 1.5rem;
    position: relative;
}

.testimonial-card .testimonial-quote {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-card .testimonial-quote::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--brand-teal);
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-style: normal;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-teal-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.testimonial-info .testimonial-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.testimonial-info .testimonial-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--brand-gold);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* ------------------------------------------------
   CTA Banner
   ------------------------------------------------ */
.cta-banner {
    background: var(--hero-gradient);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: 1rem;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .site-btn-primary {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
}

.cta-banner .site-btn-primary:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
}

/* ------------------------------------------------
   FAQ / Accordion
   ------------------------------------------------ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}

.faq-question:hover {
    background: var(--bg-card-alt);
}

.faq-question i {
    transition: transform 0.2s;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ------------------------------------------------
   Plugin page — tech info
   ------------------------------------------------ */
.tech-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-info-item {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card-alt);
    border-radius: 0.75rem;
}

.tech-info-item .tech-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.tech-info-item .tech-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
}

/* ------------------------------------------------
   Illustration wrapper
   ------------------------------------------------ */
.illustration-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-card-alt);
    border-radius: 1rem;
    min-height: 240px;
}

.illustration-wrapper svg {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------
   Navigation transverse (catégories)
   ------------------------------------------------ */
.transverse-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.transverse-nav .site-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.transverse-nav .site-card i {
    font-size: 1.5rem;
    color: var(--brand-teal);
}

.transverse-nav .site-card h4 {
    font-size: 1rem;
    margin: 0 0 0.15rem;
}

.transverse-nav .site-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ------------------------------------------------
   Plugin large card (catégorie pages)
   ------------------------------------------------ */
.plugin-large-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.plugin-large-card:nth-child(even) {
    direction: rtl;
}

.plugin-large-card:nth-child(even) > * {
    direction: ltr;
}

.plugin-large-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plugin-large-info .plugin-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.plugin-large-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.plugin-large-info .tech-badge {
    display: inline-block;
    font-size: 0.78rem;
    background: var(--bg-card-alt);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------
   Mini pricing table (plugin pages)
   ------------------------------------------------ */
.mini-pricing {
    border-collapse: collapse;
    width: 100%;
}

.mini-pricing th,
.mini-pricing td {
    padding: 0.6rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.mini-pricing th {
    background: var(--bg-card-alt);
    font-weight: 600;
    color: var(--text-secondary);
}

.mini-pricing th:first-child,
.mini-pricing td:first-child {
    text-align: left;
}

/* ------------------------------------------------
   Contact form
   ------------------------------------------------ */
.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
}

.contact-success i {
    font-size: 3rem;
    color: var(--color-good);
    margin-bottom: 1rem;
}

.contact-success h3 {
    margin-bottom: 0.5rem;
}

.contact-success p {
    color: var(--text-secondary);
}

/* ------------------------------------------------
   Screenshot gallery (plugin pages)
   ------------------------------------------------ */
.screenshot-gallery {
    margin-top: 2rem;
}

.screenshot-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.screenshot-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.screenshot-tab:hover {
    border-color: var(--brand-teal);
    color: var(--brand-dark);
}

.screenshot-tab.active {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

.screenshot-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: rgba(0, 76, 76, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 6px;
}

.screenshot-viewer svg {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card-alt);
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.screenshot-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.screenshot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.screenshot-dot.active {
    background: var(--brand-teal);
    width: 24px;
    border-radius: 4px;
}
