/* ==========================================================================
   css/pages/services.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   SECTION 1 : HERO DE PAGE
   -------------------------------------------------------------------------- */
.services-hero {
    background: var(--gradient-hero);
    padding-top: 140px;
    padding-bottom: var(--space-16);
    overflow: hidden;
}

.services-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.services-hero-text {
    max-width: 560px;
}

.eyebrow-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-orange);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.services-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
}

.hero-desc {
    font-family: var(--font-secondary);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: var(--space-8);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-cta-group .btn-primary-service {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--text-sm);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-hover);
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-hero-secondary:hover {
    border-color: var(--color-orange);
    background-color: color-mix(in srgb, var(--color-orange) 8%, transparent);
}

/* Illustration isométrique du hero (100% HTML/CSS, aucun asset — préfixe .hi-) */
.services-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hi-scene { position: relative; perspective: 1600px; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hi-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 40%; left: 35%; filter: blur(28px);
    background: radial-gradient(circle, color-mix(in srgb, var(--color-orange) 28%, transparent), transparent 65%); }
.hi-stage { position: relative; transform-style: preserve-3d; transform: rotateX(6deg) rotateY(-22deg); width: 100%; max-width: 520px; }

/* Panneau générique glass */
.hi-panel { border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* Panneau code */
.hi-code { position: absolute; top: -40px; right: -30px; width: 210px; transform: translateZ(70px); padding: 14px 16px; border-radius: 16px;
    background: color-mix(in srgb, var(--color-blue-light) 7%, transparent); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.hi-code__icon { width: 26px; height: 26px; border-radius: 7px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center;
    font-family: monospace; font-size: 12px; font-weight: 700; color: var(--color-orange-yellow); background: color-mix(in srgb, var(--color-orange) 18%, transparent); border: 1px solid color-mix(in srgb, var(--color-orange) 40%, transparent); }
.hi-code__lines { display: flex; flex-direction: column; gap: 7px; }
.hi-code__lines span { height: 6px; border-radius: 3px; display: block; }

/* Dashboard */
.hi-dash { position: relative; transform: translateZ(0); overflow: hidden; display: grid; grid-template-columns: 112px 1fr;
    background: linear-gradient(160deg, color-mix(in srgb, var(--color-bg-card) 92%, transparent), color-mix(in srgb, var(--color-bg-alt) 92%, transparent)); border: 1px solid color-mix(in srgb, var(--color-blue-light) 22%, transparent); }
.hi-dash__side { padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; background: rgba(15, 30, 58, .55); border-right: 1px solid color-mix(in srgb, var(--color-blue-light) 14%, transparent); }
.hi-dash__dots { display: flex; gap: 5px; margin-bottom: 14px; }
.hi-dash__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-hover); }
.hi-dash__dots span:first-child { background: var(--color-orange); }
.hi-nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 10.5px; color: var(--color-text-secondary); }
.hi-nav i { width: 6px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--color-blue-light) 50%, transparent); }
.hi-nav--active { border-radius: 8px; font-weight: 600; color: var(--color-orange-yellow); background: color-mix(in srgb, var(--color-orange) 16%, transparent); border: 1px solid color-mix(in srgb, var(--color-orange) 35%, transparent); }
.hi-nav--active i { background: var(--color-orange-yellow); }
.hi-dash__main { padding: 16px 18px; }
.hi-dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hi-dash__head span { font-family: var(--font-primary); font-weight: 700; font-size: 15px; color: var(--color-white); }
.hi-dash__head em { font-style: normal; font-size: 9px; color: var(--color-text-secondary); padding: 3px 8px; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-blue-light) 25%, transparent); }
.hi-chart { position: relative; height: 96px; margin-bottom: 16px; }
.hi-chart svg { width: 100%; height: 100%; }
.hi-badge { position: absolute; top: -6px; right: 0; z-index: 2; font-weight: 700; font-size: 11px; color: var(--color-white); padding: 4px 9px; border-radius: 9999px;
    background: var(--gradient-orange); box-shadow: 0 4px 14px color-mix(in srgb, var(--color-orange) 45%, transparent); }
.hi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hi-card { padding: 9px; border-radius: 10px; background: color-mix(in srgb, var(--color-blue-light) 9%, transparent); border: 1px solid color-mix(in srgb, var(--color-blue-light) 16%, transparent); }
.hi-card__ic { width: 16px; height: 16px; border-radius: 5px; display: block; margin-bottom: 8px; background: color-mix(in srgb, var(--color-blue-light) 35%, transparent); }
.hi-card__ic--orange { background: color-mix(in srgb, var(--color-orange) 40%, transparent); }
.hi-card b { font-size: 9.5px; color: var(--color-white); display: block; }
.hi-card small { font-size: 8px; color: var(--color-text-secondary); display: block; margin-top: 2px; }

/* Cube orange */
.hi-cube-wrap { position: absolute; left: 2px; bottom: -92px; transform: translateZ(90px); }
.hi-cube__base { width: 118px; height: 26px; border-radius: 10px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--color-bg-card) 95%, transparent), color-mix(in srgb, var(--color-bg-alt) 95%, transparent)); border: 1px solid color-mix(in srgb, var(--color-blue-light) 22%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.hi-cube { position: absolute; left: 24px; bottom: 14px; width: 70px; height: 70px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-42deg); }
.hi-cube__face { position: absolute; inset: 0; border-radius: 8px; }
.hi-cube__face--top { background: linear-gradient(135deg, var(--color-orange-yellow), var(--color-orange)); transform: translateZ(35px); box-shadow: 0 0 40px color-mix(in srgb, var(--color-orange) 70%, transparent); }
.hi-cube__face--side { background: linear-gradient(135deg, #c85e00, var(--color-orange)); transform: rotateY(90deg) translateZ(35px); opacity: .9; }
.hi-cube__face--up { background: linear-gradient(135deg, #ffcf3a, var(--color-orange-yellow)); transform: rotateX(90deg) translateZ(35px); }

/* Petits cubes glass */
.hi-mini { position: absolute; border: 1px solid color-mix(in srgb, var(--color-blue-light) 35%, transparent); background: color-mix(in srgb, var(--color-blue-light) 14%, transparent); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.hi-mini--1 { left: -46px; top: 150px; width: 40px; height: 40px; border-radius: 9px; transform: translateZ(60px); }
.hi-mini--2 { right: -56px; bottom: -40px; width: 32px; height: 32px; border-radius: 8px; transform: translateZ(50px); }
.hi-mini--3 { right: 60px; bottom: -96px; width: 60px; height: 40px; border-radius: 9px; transform: translateZ(40px);
    background: color-mix(in srgb, var(--color-blue-light) 8%, transparent); border-color: color-mix(in srgb, var(--color-blue-light) 25%, transparent); box-shadow: none; }

/* Animations flottantes */
@keyframes hi-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hi-floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes hi-dashfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hi-float-a { animation: hi-floaty 7s ease-in-out infinite; }
.hi-float-b { animation: hi-floaty2 6s ease-in-out infinite; }
.hi-float-dash { animation: hi-dashfloat 8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .hi-float-a, .hi-float-b, .hi-float-dash { animation: none; }
}

@media (max-width: 900px) {
    .hi-scene { min-height: 420px; transform: scale(.85); }
}

@media (max-width: 640px) {
    .hi-scene { display: none; }
}

/* --------------------------------------------------------------------------
   SECTION 2 : BANDE DE RÉASSURANCE
   -------------------------------------------------------------------------- */
.reassurance-bar {
    background-color: var(--color-white);
    border-bottom: 1px solid color-mix(in srgb, var(--color-bg-main) 10%, transparent);
    padding: var(--space-6) 0;
}

.reassurance-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.reassurance-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--color-orange) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-orange) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.reassurance-text h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 2px;
}

.reassurance-text p {
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
    margin-bottom: 0;
}

.reassurance-divider {
    width: 1px;
    height: 40px;
    background-color: color-mix(in srgb, var(--color-bg-main) 10%, transparent);
}

/* --------------------------------------------------------------------------
   SECTION 3 : LES 4 BLOCS SERVICES (v2 claire — sections alternées)
   -------------------------------------------------------------------------- */
/* Legacy — conservée pour services_3.html (sauvegarde), non utilisée par services.html */
.main-services-section {
    background-color: var(--color-bg-main);
    padding: var(--space-16) 0;
}

.service-block-section {
    background: var(--color-white);
    padding: clamp(56px, 8vw, 100px) 0;
}

.service-block-section--tint {
    background: var(--color-surface-alt);
    border-top: 1px solid color-mix(in srgb, var(--color-bg-main) 8%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--color-bg-main) 8%, transparent);
}

.services-header {
    margin-bottom: var(--space-16);
}

.services-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    width: 100%;
}

.service-block .service-content { order: 1; }
.service-block .service-visual { order: 2; }
.service-block--reverse .service-content { order: 2; }
.service-block--reverse .service-visual { order: 1; }

/* Carte visuelle claire par défaut (Maintenance, Pilotage, Audit) */
.service-visual {
    grid-row: 1;
    background: var(--color-white);
    border: 1px solid color-mix(in srgb, var(--color-bg-main) 12%, transparent);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--color-bg-main) 10%, transparent);
}

/* Variante teintée (Pilotage) */
.service-visual--tint {
    background: var(--color-surface);
}

/* Variante sombre — seule carte foncée, pour le contraste (Développement) */
.service-visual--dark {
    background: linear-gradient(160deg, #12233f, #1d3f71);
    border-color: color-mix(in srgb, var(--color-bg-main) 15%, transparent);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--color-bg-main) 18%, transparent);
}

.service-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Widget 01 : extrait de code (Développement) */
.code-snippet {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    color: var(--color-blue-light);
    background: rgba(8, 18, 38, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    line-height: 1.9;
}

.code-snippet .code-indent { padding-left: var(--space-5); }
.code-snippet .code-kw { color: var(--color-orange-yellow); }
.code-snippet .code-fn { color: var(--color-orange); }
.code-snippet .code-str { color: var(--color-text-primary); }

/* Widget 02 : tableau des délais (Maintenance) — voir SECTION 3 pour .sla-table */
.sla-widget-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-ink);
    margin-bottom: var(--space-2);
}

.sla-widget-note {
    font-size: var(--text-xs);
    color: var(--color-ink-muted);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

/* Widget 03 : suivi de sprint (Pilotage) */
.sprint-tracker {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
}

.sprint-tracker-card {
    background: var(--color-white);
    border: 1px solid color-mix(in srgb, var(--color-bg-main) 10%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.sprint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-ink-body);
}

.sprint-badge {
    color: var(--color-orange);
    font-weight: 700;
    font-size: var(--text-sm);
}

.sprint-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
    margin-bottom: var(--space-2);
}

.sprint-progress-value {
    color: var(--color-ink);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-bg-main) 12%, transparent);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-orange);
}

.sprint-stats {
    display: flex;
    gap: var(--space-3);
}

.sprint-stat {
    flex: 1;
    background: var(--color-white);
    border: 1px solid color-mix(in srgb, var(--color-bg-main) 10%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.sprint-stat-value {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--color-ink);
}

.sprint-stat-label {
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
}

/* Widget 04 : scores d'audit (Audit & Conseil) */
.audit-scores {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
}

.audit-score {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.audit-score-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-ink-secondary);
}

.audit-score-value {
    color: var(--color-orange);
    font-weight: 700;
}

.audit-score-summary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
    background: color-mix(in srgb, var(--color-orange) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-orange) 25%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.audit-score-summary-icon {
    flex: none;
    font-size: var(--text-lg);
    color: var(--color-orange);
}

.audit-score-summary span:last-child {
    font-size: var(--text-sm);
    color: var(--color-ink-body);
    line-height: 1.4;
}

.audit-score-summary strong {
    color: var(--color-ink);
}

.service-num-badge {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--gradient-orange);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-sm);
}

.service-content {
    position: relative;
    width: 100%;
    grid-row: 1;
}

/* Eyebrow de bloc (badge numéroté + libellé de catégorie) + titre H2 (v2 claire) */
.service-eyebrow-row {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: var(--space-4);
}

.service-block-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin-bottom: var(--space-4);
}

.service-num {
    font-family: var(--font-primary);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: color-mix(in srgb, var(--color-blue-light) 10%, transparent);
    position: absolute;
    top: -40px;
    left: 0;
    line-height: 1;
}

.service-title-layout {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    color: var(--color-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.service-title-icon {
    width: 20px;
    height: 20px;
    color: var(--color-orange);
    flex-shrink: 0;
}

.service-desc-long {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--color-ink-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

/* Encart d'engagement spécial (Correction contrastes WCAG AA) */
.special-highlight-box {
    background-color: #f4f7f6; /* Fond très doux gris-vert clair */
    border-left: 4px solid var(--color-blue-light); /* Bordure gauche colorée émeraude */
    color: #1f2937; /* Gris sombre hautement contrasté pour le corps du texte */
    padding: var(--space-4);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.special-highlight-box strong {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--color-orange-yellow); /* Vert très foncé pour faire ressortir le titre de l'encart */
    text-transform: uppercase;
    margin-bottom: 4px;
}

.special-highlight-box p {
    font-size: var(--text-sm);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Tableau des délais d'intervention (bloc Maintenance) */
.sla-table-wrapper {
    margin: var(--space-6) 0;
    overflow-x: auto;
}

.sla-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.sla-table th {
    text-align: left;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink-muted);
    padding: var(--space-2) var(--space-4) var(--space-2) 0;
}

.sla-table td {
    padding: var(--space-3) var(--space-4) var(--space-3) 0;
    border-top: 1px solid color-mix(in srgb, var(--color-bg-main) 10%, transparent);
    color: var(--color-ink-secondary);
}

.sla-table td:first-child {
    color: var(--color-ink);
    font-weight: 600;
}

.sla-table tr.sla-group-row td {
    padding-top: var(--space-4);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-ink-muted);
}

.sla-resolution {
    color: var(--color-orange);
    font-weight: 700;
    white-space: nowrap;
}

.sla-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: var(--space-2);
}

.sla-dot--blocking { background-color: var(--color-orange); }
.sla-dot--critical { background-color: var(--color-orange-yellow); }
.sla-dot--major { background-color: var(--color-blue-light); }

.service-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
}

.service-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-family: var(--font-secondary);
    font-size: 15px;
    color: var(--color-ink-body);
    margin-bottom: var(--space-3);
}

.service-benefits .check {
    flex: none;
    color: var(--color-orange);
    font-weight: 700;
}

.stack-tags {
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-ink-secondary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
}

/* Bouton de demande de charte SLA secondaire */
.sla-action-container {
    margin-top: var(--space-4);
    margin-bottom: var(--space-6);
}

.btn-secondary-service {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-bg-main);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.btn-secondary-service:hover {
    color: var(--color-orange);
}

.btn-primary-service {
    display: inline-flex;
    background: var(--gradient-orange);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 700;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-service:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.service-separator {
    height: 1px;
    background-color: color-mix(in srgb, var(--color-text-primary) 10%, transparent);
    margin: var(--space-12) 0;
}

/* Ordre asymétrique Alterné Desktop */
.service-block--left .service-visual { grid-column: 1; }
.service-block--left .service-content { grid-column: 2; }
.service-block--right .service-visual { grid-column: 2; }
.service-block--right .service-content { grid-column: 1; }

/* --------------------------------------------------------------------------
   SECTION 4 : LA TIMELINE MÉTHODE
   -------------------------------------------------------------------------- */
.method-section {
    background: linear-gradient(180deg, #12233f, #1d3f71);
    padding: var(--space-16) 0;
}

.method-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.method-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-12);
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* Ligne orange de raccordement */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gradient-orange);
    z-index: 1;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-badge {
    width: 44px;
    height: 44px;
    background: var(--gradient-orange);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4) auto;
    border: 4px solid var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 24px;
    height: 24px;
    color: var(--color-blue-light);
    margin: 0 auto var(--space-2) auto;
}

.timeline-step h3 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline-step p {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding: 0 var(--space-2);
}

/* --------------------------------------------------------------------------
   SECTION 5 : LES SECTEURS D'ACTIVITÉ (chips sur une rangée, v2 claire)
   -------------------------------------------------------------------------- */
.sectors-section {
    background-color: var(--color-white);
    padding: clamp(56px, 8vw, 100px) 0;
}

.sectors-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.sectors-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}

.sectors-desc {
    color: var(--color-ink-secondary);
    margin-bottom: var(--space-12);
}

/* Alignement horizontal fluide des secteurs sous forme de chips */
.sectors-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: var(--space-8) auto 0 auto;
}

.sector-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background-color: var(--color-surface);
    border: 1px solid color-mix(in srgb, var(--color-bg-main) 12%, transparent);
    padding: 12px 22px;
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.sector-tag:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-orange) 50%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-bg-main) 10%, transparent);
}

.sector-tag-icon-wrap {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-orange) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-orange) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector-tag-icon {
    width: 16px;
    height: 16px;
    color: var(--color-orange);
    flex-shrink: 0;
}

.sector-tag-name {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    white-space: nowrap;
}

/* Discret sous-texte CTA */
.cta-subtext-discreet {
    display: block;
    font-size: var(--text-xs);
    opacity: 0.8;
    margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   SECTION 6 : CTA FINAL — voir css/components/cta.css pour le composant
   partagé (.cta-final, .cta-card, .cta-glow, .cta-inner, .btn-white)
   -------------------------------------------------------------------------- */
.cta-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.btn {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 700;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   SYSTÈME RESPONSIVE MOBILE-FIRST (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .services-hero {
        padding-top: 120px;
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
    }

    .services-hero-visual {
        order: -1;
    }

    .services-hero-text {
        max-width: 100%;
    }

    .reassurance-container {
        flex-direction: column;
        gap: var(--space-6);
    }

    .reassurance-divider {
        display: none;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Neutralisation de l'inversion sur mobile (le visuel passe en premier) */
    .service-block--left .service-visual,
    .service-block--right .service-visual {
        grid-column: 1;
        order: -1;
    }
    
    .service-block--left .service-content,
    .service-block--right .service-content {
        grid-column: 1;
    }

    /* Système v2 (order-based) : le visuel reste en premier sur mobile pour tous les blocs */
    .service-block .service-content,
    .service-block .service-visual,
    .service-block--reverse .service-content,
    .service-block--reverse .service-visual {
        order: 0;
    }

    /* Masquage des visuels décoratifs (widgets) sur mobile : la page gagne en légèreté */
    .service-visual {
        display: none;
    }

    /* Exception : le tableau des délais SLA est un engagement contractuel, pas une décoration */
    .service-visual--sla {
        display: block;
    }

    /* Centrage des blocs services sur mobile, dans le même esprit que les sections de la home */
    .service-block-section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .service-block {
        text-align: center;
    }

    .service-eyebrow-row {
        justify-content: center;
    }

    .service-benefits {
        display: inline-block;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .stack-tags {
        text-align: center;
    }

    /* Contenu à préserver en alignement gauche pour rester lisible malgré le centrage */
    .service-visual--sla,
    .special-highlight-box {
        text-align: left;
    }

    .timeline-container {
        flex-direction: column;
        gap: var(--space-8);
    }

    .timeline-container::before {
        top: 0;
        bottom: 0;
        left: 22px;
        width: 3px;
        height: 100%;
    }

    .timeline-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .step-badge {
        margin: 0;
        flex-shrink: 0;
    }

    .step-icon {
        display: none; /* Simplification graphique mobile */
    }
}