/* style-services.css - CubixProduction services page */
:root {
    --bg: #0b0b1f;
    --panel: #0f1228;
    --accent: #7d5df0;
    --accent-2: #4aa3ff;
    --muted: #cfcfe6;
    --glass: rgba(255, 255, 255, 0.03);
}

/* basic page reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--muted);
    background: linear-gradient(180deg, #171751 0%, #0b0b1f 60%, #11102c 100%);
}

/* HERO */
.services-hero {
    padding: 64px 6% 10px;
    text-align: center;
}

.hero-inner {
    max-width: 1720px;
    margin: 0 auto;
}

.hero-title {
    font-family: "Press Start 2P", monospace;
    font-size: 36px;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto 22px;
    max-width: 1280px;
}

/* SERVICES LIST container */
.services-list {
    max-width: 1720px;
    margin: 36px auto 80px;
    padding: 0 6%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* each row */
.service-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    padding: 26px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 14px 40px rgba(4, 6, 20, 0.6);
}

/* alternate layout: icon left, text right */
.service-row.alt {
    grid-template-columns: 280px 1fr;
}

/* text block */
.service-text {
    padding: 8px 12px;
    text-align: center;
}

.service-text h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.6px;
}

.service-text p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    font-size: 15px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA */
.service-cta {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .14s ease, box-shadow .18s ease;
}

.service-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(79, 58, 179, 0.12);
}

/* icon block */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.service-icon i {
    font-size: 86px;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    width: 160px;
    height: 160px;
    line-height: 160px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 14px 40px rgba(8, 6, 25, 0.5);
    transition: transform .18s ease, box-shadow .18s ease;
}

.service-icon i:hover {
    transform: translateY(-6px) scale(1.02);
}

/* make service icon block centered on small screens */
.service-icon.left {
    justify-self: start;
}

.service-icon.right {
    justify-self: end;
}

/* responsive: stack on mobile */
@media (max-width: 920px) {

    .service-row,
    .service-row.alt {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-icon {
        order: 2;
        margin-top: 14px;
    }

    .service-text {
        order: 1;
    }

    .service-icon i {
        font-size: 64px;
        width: 120px;
        height: 120px;
        line-height: 120px;
    }
}

/* small tweaks */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-sub {
        font-size: 14px;
        max-width: 96%;
    }

    .pixel {
        width: 14px;
        height: 14px;
        font-size: 11px;
    }

    .service-icon i {
        font-size: 56px;
        width: 96px;
        height: 96px;
        line-height: 96px;
    }

    .service-cta {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* section-separator : fine, full-width, sans animation */
.section-separator {
    width: 100%;
    /* toute la longueur de l'écran */
    height: 2px;
    /* épaisseur fine */
    margin: 18px 0;
    /* espace vertical */
    background: linear-gradient(90deg, #180d3e, #07192b);
    /* dégradé assorti */
    box-shadow: none;
    /* pas de glow/ombre */
    border: 0;
}



/* ===================== FAQ styles ===================== */
.faq {
    padding: 36px 6% 64px;
}

.faq-inner {
    max-width: 1720px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.6px;
}

.faq-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
}

/* list */
.faq-list {
    grid-template-columns: 1fr !important;
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

/* each item */
.faq-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* question button */
.faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: background .12s ease, transform .12s ease;
}

/* Bouton de question en ligne avec icône à gauche et chevron à droite */
.faq-q{
  display:flex;
  align-items:center;
  gap:10px;              /* espace entre l’icône et le texte */
  width:100%;
}

/* L’icône de chevron reste poussée à droite */
.faq-q .q-icon{
  margin-left:auto;
  display:inline-flex;
}

/* Image décorative à gauche de la question */
.faq-q .q-img{
  width:22px;
  height:22px;
  flex:0 0 22px;         /* évite le shrink */
  object-fit:contain;
  image-rendering:auto;
}

.faq-q:focus {
    outline: 3px solid rgba(125, 93, 240, 0.16);
    outline-offset: 3px;
}

/* question text */
.q-text {
    display: block;
    font-weight: 800;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

/* chevron */
.q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: rgba(255, 255, 255, 0.95);
    transition: transform .22s cubic-bezier(.2, .9, .2, 1);
}

/* answer block — collapsed by default with max-height transition */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .36s cubic-bezier(.2, .9, .2, 1), padding .28s ease;
    padding: 0 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}

.faq-a p {
    margin: 14px 0 22px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    font-size: 15px;
}

/* when expanded — we add a class via JS (.open) */
.faq-item.open .faq-a {
    max-height: 1720px;
    /* sufficiently large for expected content */
    padding: 12px 18px 20px;
}

.faq-item.open .q-icon {
    transform: rotate(180deg);
}

/* responsive */
@media (min-width: 760px) {
    .faq-list {
        grid-template-columns: 1fr;
        /* two columns on desktop */
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .faq-list {
        grid-template-columns: 1fr;
    }

    .q-text {
        font-size: 15px;
    }
}