/*
Theme Name: OnFix
Theme URI: https://onfix.be
Author: OnFix
Author URI: https://onfix.be
Description: Thème WordPress OnFix - Atelier Smartphone
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onfix
Tags: dark, green, smartphone, repair
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

:root {
    --onfix-green: #7ED321;
    --onfix-green-hover: #8FE82C;
    --onfix-black: #0A0A0A;
    --onfix-surface: #111111;
    --onfix-elevated: #1A1A1A;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0A0A0A;
    color: #FFFFFF;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #111111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7ED321; }
::selection { background: rgba(126, 211, 33, 0.3); color: #FFFFFF; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(126, 211, 33, 0.3); }
    50% { box-shadow: 0 0 40px rgba(126, 211, 33, 0.5); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes accordion-down {
    from { height: 0; opacity: 0; }
    to { height: var(--accordion-content-height); opacity: 1; }
}
@keyframes accordion-up {
    from { height: var(--accordion-content-height); opacity: 1; }
    to { height: 0; opacity: 0; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.onfix-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background: transparent;
}

.onfix-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.onfix-nav {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.onfix-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    text-decoration: none;
}

.onfix-logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.onfix-logo-text span { color: #7ED321; }

.onfix-logo-subtitle {
    font-size: 0.75rem;
    color: #a1a1aa;
    border-left: 1px solid #52525b;
    padding-left: 0.5rem;
    margin-left: 0.25rem;
}

.onfix-nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.onfix-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
    text-decoration: none;
}

.onfix-nav-links a:hover { color: #7ED321; }

.onfix-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.onfix-cart-link {
    position: relative;
    color: #fff;
    transition: color 0.2s ease;
}
.onfix-cart-link:hover { color: #7ED321; }

/* Cart count badge (WooCommerce) */
.onfix-cart-count {
    display: none;
    position: absolute;
    top: -7px;
    right: -7px;
    background: #7ED321;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 9999px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    padding: 0 3px;
}
.onfix-cart-count.has-items { display: block; }

/* Account link */
.onfix-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: #a1a1aa;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.onfix-account-link:hover { color: #7ED321; background: rgba(126,211,33,0.08); }

/* Active nav link */
.onfix-nav-links a.active { color: #7ED321; }

.onfix-mobile-btn {
    color: #fff;
    display: flex;
    align-items: center;
}

/* Mobile menu */
.onfix-mobile-menu {
    display: none;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1rem;
}
.onfix-mobile-menu.open { display: block; }
.onfix-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #fff;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}
.onfix-mobile-menu a:hover { background: rgba(126, 211, 33, 0.1); color: #7ED321; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.onfix-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0A;
}

.onfix-hero-inner {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 1rem;
}

.onfix-hero-text {
    text-align: center;
    margin-bottom: 4rem;
}

.onfix-hero-title {
    font-size: clamp(1.875rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.onfix-hero-title .green { color: #7ED321; }

.onfix-hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    color: #a1a1aa;
    max-width: 42rem;
    margin: 0 auto;
}

/* Service cards */
.onfix-services {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
}

.onfix-service-card {
    flex: 1;
    max-width: 200px;
    background: #111111;
    border: 1px solid #27272a;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.onfix-service-card:hover {
    border-color: #7ED321;
}

.onfix-service-icon {
    width: 3rem;
    height: 3rem;
    background: #7ED321;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s ease;
}

.onfix-service-card:hover .onfix-service-icon {
    transform: scale(1.1);
}

.onfix-service-icon svg { color: #000; }

.onfix-service-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.onfix-service-desc {
    font-size: 0.75rem;
    color: #71717a;
}

/* Trust badges */
.onfix-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    color: #71717a;
    font-size: 0.875rem;
}

.onfix-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onfix-trust-item svg { color: #7ED321; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.onfix-why {
    padding: 4rem 1rem;
    background: #0A0A0A;
    border-top: 1px solid #18181b;
}

.onfix-section-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.onfix-section-title .green { color: #7ED321; }

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

.onfix-feature-item {
    text-align: center;
    padding: 1rem;
}

.onfix-feature-icon {
    width: 3rem;
    height: 3rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.onfix-feature-icon svg { color: #7ED321; }

.onfix-feature-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.onfix-feature-desc {
    font-size: 0.875rem;
    color: #71717a;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.onfix-reviews {
    padding: 4rem 1rem;
    background: #111111;
}

.onfix-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.onfix-review-card {
    background: #0A0A0A;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.onfix-stars {
    display: flex;
    gap: 2px;
}

.onfix-star-filled { color: #7ED321; fill: #7ED321; }
.onfix-star-empty { color: #3f3f46; }

.onfix-review-text {
    color: #d4d4d8;
    font-size: 0.875rem;
    margin: 0.75rem 0;
    line-height: 1.6;
}

.onfix-review-author {
    color: #71717a;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.onfix-faq {
    padding: 5rem 1rem;
    background: #0A0A0A;
}

.onfix-faq-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.onfix-faq-title .green { color: #7ED321; }

.onfix-faq-subtitle {
    text-align: center;
    color: #71717a;
    margin-bottom: 4rem;
}

.onfix-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onfix-faq-item {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0 1.5rem;
    transition: border-color 0.3s ease;
}

.onfix-faq-item.open {
    border-color: rgba(126, 211, 33, 0.3);
}

.onfix-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: color 0.2s ease;
}

.onfix-faq-question:hover { color: #7ED321; }

.onfix-faq-chevron {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: #71717a;
    transition: transform 0.2s ease;
}

.onfix-faq-item.open .onfix-faq-chevron {
    transform: rotate(180deg);
}

.onfix-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.onfix-faq-item.open .onfix-faq-answer {
    max-height: 500px;
}

.onfix-faq-answer-inner {
    padding-bottom: 1rem;
    font-size: 0.875rem;
    color: #71717a;
    line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.onfix-cta {
    padding: 4rem 1rem;
    background: #0A0A0A;
    border-top: 1px solid #18181b;
    text-align: center;
}

.onfix-cta-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.onfix-cta-title .green { color: #7ED321; }

.onfix-cta-subtitle {
    color: #71717a;
    margin-bottom: 2rem;
}

.onfix-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.onfix-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #7ED321;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
}

.onfix-btn-primary:hover {
    background: #8FE82C;
    box-shadow: 0 0 20px rgba(126, 211, 33, 0.4);
}

.onfix-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid #3f3f46;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
}

.onfix-btn-secondary:hover {
    background: #18181b;
    border-color: #52525b;
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.onfix-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 1rem;
}

.onfix-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.onfix-footer-brand {}

.onfix-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.onfix-footer-desc {
    color: #71717a;
    max-width: 28rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.onfix-footer-socials {
    display: flex;
    gap: 1rem;
}

.onfix-social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.onfix-social-link:hover {
    background: #7ED321;
    color: #000;
}

.onfix-footer-col-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.onfix-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onfix-footer-links a {
    color: #71717a;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
    text-decoration: none;
}

.onfix-footer-links a:hover { color: #7ED321; }

.onfix-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onfix-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #71717a;
    font-size: 0.9375rem;
}

.onfix-footer-contact-item svg { color: #7ED321; flex-shrink: 0; }

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 211, 33, 0.3), transparent);
    margin: 3rem 0 2rem;
}

.onfix-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    color: #71717a;
    font-size: 0.875rem;
}

.onfix-footer-bottom a {
    color: #71717a;
    transition: color 0.2s;
    text-decoration: none;
}
.onfix-footer-bottom a:hover { color: #7ED321; }

/* ============================================================
   RESPONSIVE - TABLET / DESKTOP
   ============================================================ */
@media (min-width: 640px) {
    .onfix-logo-subtitle { display: block; }
    .onfix-service-desc { display: block; }
    .onfix-cta-buttons { flex-direction: row; }
    .onfix-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
    .onfix-nav { padding: 1rem 2rem; }
    .onfix-nav-links { display: flex; }
    .onfix-mobile-btn { display: none; }

    .onfix-hero-inner { padding: 6rem 2rem; }
    .onfix-services { gap: 1.5rem; }
    .onfix-service-card { padding: 1.5rem; }
    .onfix-service-icon { width: 4rem; height: 4rem; }
    .onfix-service-title { font-size: 1.125rem; }
    .onfix-service-desc { font-size: 0.875rem; }

    .onfix-why { padding: 6rem 2rem; }
    .onfix-features-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

    .onfix-reviews { padding: 6rem 2rem; }
    .onfix-reviews-grid { grid-template-columns: repeat(3, 1fr); }

    .onfix-faq { padding: 8rem 2rem; }
    .onfix-cta { padding: 5rem 2rem; }

    .onfix-footer { padding: 4rem 2rem; }
    .onfix-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .onfix-trust { gap: 3rem; }
}

@media (min-width: 1024px) {
    .onfix-why { padding: 6rem 2rem; }
    .onfix-reviews { padding: 6rem 2rem; }
    body.logged-in.admin-bar nav.onfix-nav {
    margin-top:34px
}
}




/* =========================
   CHECKOUT BUTTON
========================= */
.wc-block-components-checkout-place-order-button__text {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #7ED321;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

/* bouton parent (important pour full style) */
.wc-block-components-checkout-place-order-button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* HOVER */
.wc-block-components-checkout-place-order-button:hover 
.wc-block-components-checkout-place-order-button__text {
    background: #6ac11c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.25);
}

/* ACTIVE CLICK */
.wc-block-components-checkout-place-order-button:active 
.wc-block-components-checkout-place-order-button__text {
    transform: scale(0.98);
}

/* DISABLED */
.wc-block-components-checkout-place-order-button:disabled 
.wc-block-components-checkout-place-order-button__text {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* LOADING */
.wc-block-components-checkout-place-order-button.is-processing 
.wc-block-components-checkout-place-order-button__text {
    opacity: 0.7;
    pointer-events: none;
}


