/* ==========================================================================
   services-od.css — Maquette OpenDesign pour la page Services
   Chargee conditionnellement sur /pages/services-rock-robot.html par base.html.
   Les variables :root, le fond high-tech, le header et le footer sont
   deja dans home-od.css (charge sur toutes les pages). Ici on ajoute
   uniquement les styles specifiques a la page Services.
   ========================================================================== */

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 0 32px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 999px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-2);
    margin-bottom: 20px;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--fg);
    background: linear-gradient(180deg, var(--fg) 0%, #B8A8D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lede {
    font-size: clamp(16px, 1.9vw, 19px);
    color: var(--muted);
    max-width: 680px;
    margin: 0 0 24px;
    line-height: 1.55;
}

/* ===== Services ===== */
.services-section {
    padding: 40px 0 24px;
}
.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(255, 107, 53, 0.14) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s var(--ease-out);
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -16px rgba(168, 85, 247, 0.4);
}
.service-card:hover::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.55) 0%, rgba(255, 107, 53, 0.4) 100%);
}

.service-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.service-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.04); }

.service-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.service-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.service-step .step-logo {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.service-step .piece {
    transition: fill 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
/* Step 1 — silhouette seule */
.service-step .piece-1 { fill: #3a2845; }
.service-step .piece-2,
.service-step .piece-3,
.service-step .piece-4 { opacity: 0; }
/* Step 2 — silhouette + 1er trait */
.service-card.is-step-2 .service-step .piece-1 { fill: #5a3580; }
.service-card.is-step-2 .service-step .piece-2 { opacity: 1; }
.service-card.is-step-2 .service-step .piece-3,
.service-card.is-step-2 .service-step .piece-4 { opacity: 0; }
/* Step 3 — silhouette + 2 traits */
.service-card.is-step-3 .service-step .piece-1 { fill: #6a3da0; }
.service-card.is-step-3 .service-step .piece-2,
.service-card.is-step-3 .service-step .piece-3 { opacity: 1; }
.service-card.is-step-3 .service-step .piece-4 { opacity: 0; }
/* Step 4 — logo complet */
.service-card.is-step-4 .service-step .piece-1 { fill: #7B2CBF; }
.service-card.is-step-4 .service-step .piece-2,
.service-card.is-step-4 .service-step .piece-3,
.service-card.is-step-4 .service-step .piece-4 { opacity: 1; }
/* Hover — le logo se complète au survol de la carte */
.service-card:hover .service-step .piece-1 { fill: #7B2CBF; }
.service-card:hover .service-step .piece-2,
.service-card:hover .service-step .piece-3,
.service-card:hover .service-step .piece-4 { opacity: 1; }
.service-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin: 0;
}
.service-desc {
    color: var(--fg-2);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-features li {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
.service-features li::before {
    content: '';
    grid-column: 1;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='7.75' stroke='%2310B981' stroke-width='1.5'/%3E%3Cpath d='M5 9 L7.5 11.5 L13 6' stroke='%2310B981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}
a.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 12px -4px var(--accent);
    transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
a.service-cta:hover {
    background: var(--accent-deep);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px var(--accent);
}
.service-cta .arrow { transition: transform 0.2s var(--ease-out); }
a.service-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 800px) {
    .service-card { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
    .service-media { aspect-ratio: 16/10; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .service-body { padding: 24px; gap: 12px; }
}

/* ===== CTA strip ===== */
.cta-strip {
    margin-top: 48px;
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: var(--grad);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: border-shine 6s linear infinite;
}
@keyframes border-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-strip h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0 0 12px;
}
.cta-strip p {
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.55;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
    border: 1px solid transparent;
}
a.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 2px 12px -4px var(--accent);
}
a.btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px var(--accent);
}
a.btn-primary .arrow { transition: transform 0.2s var(--ease-out); }
a.btn-primary:hover .arrow { transform: translateX(3px); }

@media (max-width: 600px) {
    .hero { padding: 56px 0 24px; }
    .services-section { padding: 24px 0 16px; }
    .cta-strip { padding: 32px 22px; }
}