/* ==========================================================================
   Page Services — Has Voyage
   Aligné sur le scale typographique global (page d'accueil v2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Composant <x-page-hero> (partagé avec /apropos)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background-color: var(--primary);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    overflow: hidden;
    text-align: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 36, 0.7);
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.page-hero__subtitle {
    margin-top: 1rem;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
    color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
    .page-hero {
        padding: 7rem 0 6rem;
    }
}

/* --------------------------------------------------------------------------
   1. Section services
   -------------------------------------------------------------------------- */
.services-section {
    padding: clamp(28px, 3.5vw, 50px) 0;
    background: #f7f8fc;
}

/* --------------------------------------------------------------------------
   2. En-tête de section
   -------------------------------------------------------------------------- */
.services-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(24px, 3vw, 40px);
    padding: 0 var(--page-gutter, 16px);
}

.services-section__badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(34, 58, 118, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.services-section__title {
    font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.4rem);
    font-weight: 800;
    color: #0d1424;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 14px;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    .services-section__header { max-width: 1100px; }
    .services-section__title  { white-space: nowrap; }
}

.services-section__title span {
    color: var(--accent);
}

.services-section__subtitle {
    color: #5a6478;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. Grille des services — mobile-first
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;            /* toutes les rangees ont la meme hauteur */
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;            /* etire les cartes a la hauteur de la rangee */
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* --------------------------------------------------------------------------
   4. Composant <x-service-card> — uniquement SVG, pas d'image
   -------------------------------------------------------------------------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e6eaf2;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 3rem 2.5rem;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
    transform: scale(1.025);
    border-color: var(--primary);
}

/* --- Icône SVG en haut --- */
.service-card__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 16px;
    background: rgba(34, 58, 118, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-card__icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* --- Body --- */
.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.service-card__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0d1424;
    letter-spacing: -0.5px;
    margin: 0 0 0.85rem;
    line-height: 1.25;
}

.service-card__text {
    font-size: 1.15rem;
    color: #5a6478;
    line-height: 1.65;
    margin: 0 0 1.75rem;
    flex: 1;
}

.service-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    padding-top: 1.5rem;
    border-top: 1px solid #e6eaf2;
}

.service-card__link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.service-card__link--ghost {
    color: #98a1b3;
}
.service-card__link--ghost svg {
    opacity: 0.4;
}

/* --------------------------------------------------------------------------
   5. Hero chips (sous le titre du hero)
   -------------------------------------------------------------------------- */
.services-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.services-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}
.services-chip svg {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Section "Comment ça marche" (process)
   -------------------------------------------------------------------------- */
.svc-process {
    padding: clamp(32px, 4vw, 60px) 0;
    background: #fff;
}

.svc-process__header,
.svc-why__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(32px, 4vw, 56px);
}

.svc-process__badge,
.svc-why__badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(34, 58, 118, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.svc-process__title,
.svc-why__title {
    font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 800;
    color: #0d1424;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    text-wrap: balance;
}
.svc-process__title span,
.svc-why__title span {
    color: var(--accent);
}

.svc-process__lead,
.svc-why__lead {
    font-size: 1rem;
    color: #5a6478;
    line-height: 1.6;
    margin: 0;
}

.svc-process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 640px) { .svc-process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-process__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.svc-step {
    position: relative;
    background: #f7f8fc;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
}
.svc-step__num {
    position: absolute;
    top: -14px;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(34, 58, 118, 0.25);
}
.svc-step__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 146, 0, 0.12);
    color: var(--accent);
    border-radius: 12px;
    margin: 0.75rem 0 1rem;
}
.svc-step__icon svg { width: 1.2rem; height: 1.2rem; }
.svc-step__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d1424;
    margin: 0 0 0.5rem;
}
.svc-step__text {
    margin: 0;
    color: #5a6478;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Section "Pourquoi nous"
   -------------------------------------------------------------------------- */
.svc-why {
    padding: clamp(32px, 4vw, 60px) 0;
    background: #f7f8fc;
}

.svc-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 640px) { .svc-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-why__grid { grid-template-columns: repeat(4, 1fr); } }

.svc-why-card {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.svc-why-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.svc-why-card__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 58, 118, 0.08);
    color: var(--primary);
    border-radius: 14px;
    margin-bottom: 1rem;
}
.svc-why-card__icon svg { width: 1.4rem; height: 1.4rem; }
.svc-why-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d1424;
    margin: 0 0 0.5rem;
}
.svc-why-card__text {
    margin: 0;
    color: #5a6478;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Section stats
   -------------------------------------------------------------------------- */
.svc-stats {
    padding: clamp(32px, 4vw, 56px) 0;
    background: var(--primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.svc-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent);
}

.svc-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
@media (min-width: 768px) { .svc-stats__grid { grid-template-columns: repeat(4, 1fr); } }

.svc-stat__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--accent);
}
.svc-stat__icon svg { width: 1.3rem; height: 1.3rem; }
.svc-stat__value {
    font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 0.2rem;
    letter-spacing: -1px;
    color: #fff;
}
.svc-stat__label {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. CTA final
   -------------------------------------------------------------------------- */
.svc-cta {
    padding: clamp(32px, 4vw, 60px) 0;
    background: #fff;
}

.svc-cta__card {
    max-width: 1100px;
    margin: 0 auto;
    background: #f7f8fc;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .svc-cta__card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}
.svc-cta__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.svc-cta__content { flex: 1; }
.svc-cta__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.svc-cta__title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    color: #0d1424;
    margin: 0 0 0.6rem;
    letter-spacing: -0.5px;
    text-wrap: balance;
}
.svc-cta__title span { color: var(--accent); }
.svc-cta__text {
    margin: 0;
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.6;
}

.svc-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}
@media (min-width: 480px) {
    .svc-cta__actions { flex-direction: row; }
}

.svc-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.svc-cta__btn svg { width: 1rem; height: 1rem; }

.svc-cta__btn--primary {
    background: var(--accent);
    color: #fff;
}
.svc-cta__btn--primary:hover {
    background: #d97f00;
    color: #fff;
}

.svc-cta__btn--ghost {
    background: transparent;
    border-color: #e6eaf2;
    color: #0d1424;
}
.svc-cta__btn--ghost:hover {
    background: #e6eaf2;
    color: var(--primary);
}
