/* ==========================================================================
   Pages Services — Landing layout
   ========================================================================== */

.service-page {
    background: var(--background-white);
}

/* HERO
   ========================================================================== */
.service-hero {
    background: linear-gradient(135deg, #1f4a56 0%, #2B5D6B 55%, #347286 100%);
    color: #fff;
    padding: 5.5rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(212,175,55,0.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(74,143,163,0.35) 0%, transparent 40%);
    pointer-events: none;
}

.service-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.service-hero--with-image .service-hero-inner {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.service-hero--with-image .service-hero-ctas {
    justify-content: flex-start;
}

.service-hero--with-image .service-hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.service-hero-photo {
    position: relative;
    justify-self: center;
}

.service-hero-photo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.service-hero-photo-caption {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #1a1a1a;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.service-hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    margin-bottom: 1.6rem;
}

.service-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 1.2rem;
    letter-spacing: -0.01em;
}

.service-hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin: 0 auto 2.2rem;
}

.service-hero-subtitle strong {
    color: #fff;
    font-weight: 600;
}

.service-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary {
    background: var(--accent-color);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.45);
    background: #e5c04a;
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.service-hero-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

/* TRUST BAR
   ========================================================================== */
.service-trust {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem 1.5rem;
}

.service-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

.service-trust-item {
    text-align: center;
    padding: 0.5rem;
}

.service-trust-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.service-trust-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-trust-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

/* CORPS MARKDOWN
   ========================================================================== */
.service-content {
    padding: 4rem 1.5rem 3rem;
}

.service-content-inner {
    max-width: 920px;
    margin: 0 auto;
}

/* Titres dans le corps */
.service-content-inner h2 {
    font-size: clamp(1.6rem, 2.3vw, 2rem);
    color: var(--primary-color);
    margin: 3.2rem 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-content-inner h2:first-child {
    margin-top: 0;
}

.service-content-inner h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 2.2rem 0 0.8rem;
    font-weight: 700;
}

.service-content-inner p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: 1.1rem;
}

.service-content-inner strong {
    color: var(--text-dark);
}

.service-content-inner ul {
    margin: 0.5rem 0 1.4rem 1.3rem;
}

.service-content-inner ul li {
    margin-bottom: 0.55rem;
    line-height: 1.65;
    color: var(--text-medium);
}

.service-content-inner hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 3rem 0;
}

/* Cartes prestations — activé via wrapper .prestations-grid dans le markdown */
.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.prestation-card {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.prestation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(43, 93, 107, 0.1);
    border-color: var(--secondary-color);
}

.prestation-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prestation-card p {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-medium);
    margin: 0;
}

/* Cas concret avec portrait */
.case-study {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 14px;
    border-left: 4px solid var(--primary-color);
}

.case-study-portrait {
    text-align: center;
}

.case-study-portrait img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #fff;
}

.case-study-portrait .case-study-name {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.15rem;
}

.case-study-portrait .case-study-role {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.case-study-body > h2:first-child,
.case-study-body > h3:first-child {
    margin-top: 0;
}

@media (max-width: 700px) {
    .case-study {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    .case-study-portrait img {
        width: 100px;
        height: 100px;
    }
}

/* Bloc mis en avant (Ce que je vérifie, Cas concret…) */
.service-highlight {
    background: linear-gradient(135deg, #f7f4ea 0%, #fbf8ed 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.8rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.service-highlight h2,
.service-highlight h3 {
    margin-top: 0;
    border-bottom: none;
}

/* CTA FINAL
   ========================================================================== */
.service-final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #24515e 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.service-final-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.service-final-cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-final-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .service-hero--with-image .service-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .service-hero--with-image .service-hero-ctas {
        justify-content: center;
    }

    .service-hero-photo img {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 3.5rem 1.2rem 3rem;
    }

    .service-content {
        padding: 2.5rem 1.2rem 2rem;
    }

    .service-content-inner h2 {
        margin-top: 2.2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .service-hero-ctas,
    .service-final-cta-buttons {
        flex-direction: column;
    }

    .service-final-cta {
        padding: 3rem 1.2rem;
    }
}
