/*
 Theme Name:   GeneratePress Child - MACCUS
 Theme URI:    https://maccus.fr
 Description:  Thème enfant GeneratePress pour MACCUS avec template plugin showcase
 Author:       MACCUS
 Author URI:   https://maccus.fr
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* ============================================
   MACCUS Plugin Showcase Template Styles
   ============================================ */

/* --- Global Section Headings --- */
.maccus-plugin-overview h2,
.maccus-plugin-features h2,
.maccus-plugin-screenshots h2,
.maccus-plugin-steps h2,
.maccus-plugin-techinfo h2,
.maccus-plugin-faq h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: #0c1222;
    margin-bottom: 48px;
    position: relative;
}

.maccus-plugin-overview h2::after,
.maccus-plugin-features h2::after,
.maccus-plugin-screenshots h2::after,
.maccus-plugin-steps h2::after,
.maccus-plugin-techinfo h2::after,
.maccus-plugin-faq h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #1e73be, #3b9ae8);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.maccus-plugin-hero {
    background: linear-gradient(160deg, #0a0f1e 0%, #111b33 45%, #162544 100%);
    padding: 96px 24px 64px !important;
    position: relative;
    overflow: hidden;
}

.maccus-plugin-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(30,115,190,0.08), transparent),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 100% 100%, 36px 36px;
    pointer-events: none;
}

.maccus-plugin-hero .plugin-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 16px !important;
    line-height: 1.1;
}

.maccus-plugin-hero .plugin-tagline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.65);
    max-width: 620px;
    margin: 0 auto 20px !important;
    line-height: 1.65;
}

.maccus-plugin-hero .plugin-hero-meta p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,0.12);
    margin: 0;
}

.maccus-plugin-hero .plugin-hero-meta p:last-child {
    border-right: none;
}

.maccus-plugin-hero .wp-block-buttons {
    margin: 36px 0 40px !important;
}

.maccus-plugin-hero .plugin-cta-btn .wp-block-button__link {
    background: linear-gradient(135deg, #1e73be 0%, #2d8fd4 100%);
    border: none;
    padding: 15px 34px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(30,115,190,0.35);
    text-decoration: none;
}

.maccus-plugin-hero .plugin-cta-btn .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,115,190,0.45);
    color: #ffffff;
}

.maccus-plugin-hero .plugin-cta-outline .wp-block-button__link {
    color: rgba(255,255,255,0.8) !important;
    border-color: rgba(255,255,255,0.25);
    padding: 15px 34px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.maccus-plugin-hero .plugin-cta-outline .wp-block-button__link:hover {
    border-color: rgba(255,255,255,0.6);
    color: #ffffff !important;
    background: rgba(255,255,255,0.06);
}

.maccus-plugin-hero .plugin-hero-screenshot img {
    border-radius: 14px;
    box-shadow:
        0 25px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.06);
    max-width: 880px;
    margin: 0 auto;
}

/* ===== OVERVIEW SECTION ===== */
.maccus-plugin-overview {
    padding: 88px 24px !important;
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.maccus-plugin-overview .section-subtitle {
    color: #575760;
    font-size: 1.1rem;
    margin-bottom: 36px !important;
}

.maccus-plugin-overview > p:not(.section-subtitle) {
    color: #3a3a44;
    line-height: 1.85;
    font-size: 1.05rem;
    margin-bottom: 20px !important;
}

/* ===== FEATURES SECTION ===== */
.maccus-plugin-features {
    background: linear-gradient(180deg, #f4f7fb 0%, #edf1f7 100%);
    padding: 88px 24px !important;
}

.maccus-plugin-features .feature-grid {
    gap: 24px !important;
    max-width: 1100px;
    margin: 0 auto;
}

.maccus-plugin-features .feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 28px !important;
    border: 1px solid transparent;
    border-left: 4px solid #1e73be;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.maccus-plugin-features .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: rgba(30,115,190,0.15);
}

.maccus-plugin-features .feature-icon {
    font-size: 2.2rem;
    margin-bottom: 4px !important;
    line-height: 1;
}

.maccus-plugin-features .feature-card h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0c1222;
    margin-bottom: 8px !important;
}

.maccus-plugin-features .feature-card p:not(.feature-icon) {
    color: #575760;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0 !important;
}

/* ===== SCREENSHOTS SECTION ===== */
.maccus-plugin-screenshots {
    padding: 88px 24px !important;
    background: #ffffff;
}

.maccus-plugin-screenshots .wp-block-gallery {
    gap: 20px !important;
}

.maccus-plugin-screenshots .wp-block-gallery img,
.maccus-plugin-screenshots .wp-block-image img {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
}

.maccus-plugin-screenshots .wp-block-gallery img:hover,
.maccus-plugin-screenshots .wp-block-image img:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: scale(1.015);
}

/* ===== STEPS SECTION ===== */
.maccus-plugin-steps {
    padding: 88px 24px !important;
    background: #ffffff;
}

.maccus-plugin-steps .steps-grid {
    gap: 32px !important;
    max-width: 1000px;
    margin: 0 auto;
}

.maccus-plugin-steps .step-card {
    text-align: center;
    padding: 28px 20px !important;
}

.maccus-plugin-steps .step-number {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 4.5rem !important;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(30,115,190,0.18) 0%, rgba(30,115,190,0.03) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px !important;
}

.maccus-plugin-steps .step-card h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0c1222;
    margin-bottom: 10px !important;
}

.maccus-plugin-steps .step-card > p {
    color: #575760;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== TECH INFO SECTION ===== */
.maccus-plugin-techinfo {
    background: linear-gradient(180deg, #f4f7fb 0%, #edf1f7 100%);
    padding: 88px 24px !important;
}

.maccus-plugin-techinfo .wp-block-table {
    max-width: 580px;
    margin: 0 auto;
}

.maccus-plugin-techinfo table {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
}

.maccus-plugin-techinfo table td {
    padding: 18px 28px;
    border: none;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
}

.maccus-plugin-techinfo table tr:last-child td {
    border-bottom: none;
}

.maccus-plugin-techinfo table td:first-child {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    color: #0c1222;
    width: 45%;
}

.maccus-plugin-techinfo table td:last-child {
    color: #575760;
}

/* ===== CTA / DOWNLOAD SECTION ===== */
.maccus-plugin-download {
    background: linear-gradient(160deg, #0a0f1e 0%, #111b33 45%, #162544 100%);
    padding: 88px 24px !important;
    position: relative;
    overflow: hidden;
}

.maccus-plugin-download::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 500px 350px at 80% 50%, rgba(30,115,190,0.06), transparent),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 100% 100%, 28px 28px;
    pointer-events: none;
}

.maccus-plugin-download h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: #ffffff !important;
    margin-bottom: 16px !important;
}

.maccus-plugin-download h2::after {
    display: none;
}

.maccus-plugin-download p {
    color: rgba(255,255,255,0.6) !important;
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 36px !important;
    line-height: 1.65;
}

.maccus-plugin-download .wp-block-button__link {
    background: linear-gradient(135deg, #1e73be 0%, #2d8fd4 100%) !important;
    border: none;
    padding: 16px 44px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(30,115,190,0.35);
    text-decoration: none;
    color: #ffffff !important;
}

.maccus-plugin-download .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,115,190,0.5);
}

/* ===== FAQ SECTION ===== */
.maccus-plugin-faq {
    padding: 88px 24px !important;
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #ffffff;
}

.maccus-plugin-faq .wp-block-details {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    margin-bottom: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.maccus-plugin-faq .wp-block-details:hover {
    border-color: #b8cfe0;
    box-shadow: 0 2px 16px rgba(30,115,190,0.06);
}

.maccus-plugin-faq .wp-block-details[open] {
    border-color: #1e73be;
    box-shadow: 0 2px 16px rgba(30,115,190,0.08);
}

.maccus-plugin-faq .wp-block-details summary {
    padding: 20px 28px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #0c1222;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s ease;
}

.maccus-plugin-faq .wp-block-details summary:hover {
    color: #1e73be;
}

.maccus-plugin-faq .wp-block-details summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    color: #1e73be;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.maccus-plugin-faq .wp-block-details[open] summary::after {
    transform: rotate(45deg);
}

.maccus-plugin-faq .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.maccus-plugin-faq .wp-block-details > :not(summary) {
    padding: 0 28px 24px;
    color: #575760;
    line-height: 1.75;
    font-size: 0.95rem;
}

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes maccusFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maccus-plugin-overview,
.maccus-plugin-features,
.maccus-plugin-screenshots,
.maccus-plugin-steps,
.maccus-plugin-techinfo,
.maccus-plugin-download,
.maccus-plugin-faq {
    animation: maccusFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.maccus-plugin-overview    { animation-delay: 0.05s; }
.maccus-plugin-features    { animation-delay: 0.1s; }
.maccus-plugin-screenshots { animation-delay: 0.15s; }
.maccus-plugin-steps       { animation-delay: 0.2s; }
.maccus-plugin-techinfo    { animation-delay: 0.25s; }
.maccus-plugin-download    { animation-delay: 0.3s; }
.maccus-plugin-faq         { animation-delay: 0.35s; }

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    .maccus-plugin-hero {
        padding: 72px 24px 56px !important;
    }

    .maccus-plugin-hero .plugin-hero-screenshot img {
        max-width: 100%;
    }

    .maccus-plugin-features .feature-grid {
        gap: 20px !important;
    }

    .maccus-plugin-features .feature-card {
        padding: 30px 24px !important;
    }

    .maccus-plugin-steps .steps-grid {
        gap: 24px !important;
    }

    .maccus-plugin-techinfo .wp-block-table {
        max-width: 100%;
    }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {

    /* Hero */
    .maccus-plugin-hero {
        padding: 56px 18px 44px !important;
    }

    .maccus-plugin-hero .plugin-title {
        font-size: 2rem !important;
        letter-spacing: -0.02em;
    }

    .maccus-plugin-hero .plugin-tagline {
        font-size: 1rem !important;
    }

    .maccus-plugin-hero .plugin-hero-meta {
        flex-wrap: wrap !important;
        gap: 6px 0 !important;
        justify-content: center !important;
    }

    .maccus-plugin-hero .plugin-hero-meta p {
        border-right: none;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .maccus-plugin-hero .wp-block-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        margin: 28px 0 32px !important;
    }

    .maccus-plugin-hero .wp-block-buttons .wp-block-button {
        width: 100%;
    }

    .maccus-plugin-hero .plugin-cta-btn .wp-block-button__link,
    .maccus-plugin-hero .plugin-cta-outline .wp-block-button__link {
        display: block;
        text-align: center;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .maccus-plugin-hero .plugin-hero-screenshot img {
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    }

    /* All sections — reduced padding */
    .maccus-plugin-overview,
    .maccus-plugin-features,
    .maccus-plugin-screenshots,
    .maccus-plugin-steps,
    .maccus-plugin-techinfo,
    .maccus-plugin-download,
    .maccus-plugin-faq {
        padding: 52px 16px !important;
    }

    /* Section headings */
    .maccus-plugin-overview h2,
    .maccus-plugin-features h2,
    .maccus-plugin-screenshots h2,
    .maccus-plugin-steps h2,
    .maccus-plugin-techinfo h2,
    .maccus-plugin-faq h2 {
        font-size: 1.5rem !important;
        margin-bottom: 32px !important;
    }

    /* Overview */
    .maccus-plugin-overview {
        max-width: 100% !important;
    }

    .maccus-plugin-overview > p:not(.section-subtitle) {
        font-size: 0.98rem;
    }

    /* Features — stack to single column */
    .maccus-plugin-features .feature-grid {
        flex-direction: column !important;
        gap: 14px !important;
    }

    .maccus-plugin-features .feature-card {
        padding: 26px 22px !important;
        flex-basis: 100% !important;
    }

    .maccus-plugin-features .feature-icon {
        font-size: 1.8rem;
    }

    /* Screenshots — single column gallery */
    .maccus-plugin-screenshots .wp-block-gallery {
        columns: 1 !important;
    }

    .maccus-plugin-screenshots .wp-block-gallery.columns-2 {
        flex-direction: column !important;
    }

    .maccus-plugin-screenshots .wp-block-gallery .wp-block-image {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Steps — stack to single column */
    .maccus-plugin-steps .steps-grid {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .maccus-plugin-steps .step-card {
        padding: 20px 16px !important;
    }

    .maccus-plugin-steps .step-number {
        font-size: 3rem !important;
    }

    .maccus-plugin-steps .step-card h4 {
        font-size: 1.05rem;
    }

    /* Tech info table */
    .maccus-plugin-techinfo .wp-block-table {
        max-width: 100%;
        overflow-x: auto;
    }

    .maccus-plugin-techinfo table td {
        padding: 14px 18px;
        font-size: 0.88rem;
    }

    /* Download CTA */
    .maccus-plugin-download h2 {
        font-size: 1.5rem !important;
    }

    .maccus-plugin-download p {
        font-size: 0.98rem !important;
    }

    .maccus-plugin-download .wp-block-button__link {
        padding: 14px 32px !important;
        font-size: 0.95rem !important;
        width: 100%;
        display: block;
        text-align: center;
    }

    /* FAQ */
    .maccus-plugin-faq {
        max-width: 100% !important;
    }

    .maccus-plugin-faq .wp-block-details summary {
        padding: 16px 20px;
        font-size: 0.92rem;
    }

    .maccus-plugin-faq .wp-block-details > :not(summary) {
        padding: 0 20px 18px;
        font-size: 0.88rem;
    }

    /* Disable entrance animations on mobile for performance */
    .maccus-plugin-overview,
    .maccus-plugin-features,
    .maccus-plugin-screenshots,
    .maccus-plugin-steps,
    .maccus-plugin-techinfo,
    .maccus-plugin-download,
    .maccus-plugin-faq {
        animation: none !important;
    }
}

/* ===== RESPONSIVE — SMALL PHONE (≤480px) ===== */
@media (max-width: 480px) {
    .maccus-plugin-hero {
        padding: 44px 14px 36px !important;
    }

    .maccus-plugin-hero .plugin-title {
        font-size: 1.65rem !important;
    }

    .maccus-plugin-hero .plugin-tagline {
        font-size: 0.92rem !important;
    }

    .maccus-plugin-overview,
    .maccus-plugin-features,
    .maccus-plugin-screenshots,
    .maccus-plugin-steps,
    .maccus-plugin-techinfo,
    .maccus-plugin-download,
    .maccus-plugin-faq {
        padding: 40px 12px !important;
    }

    .maccus-plugin-overview h2,
    .maccus-plugin-features h2,
    .maccus-plugin-screenshots h2,
    .maccus-plugin-steps h2,
    .maccus-plugin-techinfo h2,
    .maccus-plugin-faq h2 {
        font-size: 1.3rem !important;
        margin-bottom: 24px !important;
    }

    .maccus-plugin-features .feature-card {
        padding: 22px 18px !important;
        border-left-width: 3px;
    }

    .maccus-plugin-features .feature-card h3 {
        font-size: 1rem;
    }

    .maccus-plugin-steps .step-number {
        font-size: 2.5rem !important;
    }

    .maccus-plugin-techinfo table td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .maccus-plugin-techinfo table td:first-child {
        width: 50%;
    }

    .maccus-plugin-faq .wp-block-details summary {
        padding: 14px 16px;
        font-size: 0.88rem;
    }

    .maccus-plugin-faq .wp-block-details > :not(summary) {
        padding: 0 16px 16px;
        font-size: 0.85rem;
    }
}
