/* Offre Page Styles - Design Premium */

/* Hero Section */
.offre-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    margin-top: 68px;
    background: #5A0F1C;
}

.offre-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.offre-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(90,15,28,0.85) 0%, rgba(90,15,28,0.45) 100%);
    z-index: 1;
}

.offre-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offre-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 0;
    color: var(--white);
}

.offre-badge {
    display: inline-block;
    background: transparent;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.offre-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.offre-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.offre-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.offre-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-color);
}

.btn-primary-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary:hover, .btn-primary-large:hover {
    background: transparent;
    color: var(--white);
}

.btn-primary svg, .btn-primary-large svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg, .btn-primary-large:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--white);
}

/* Digital Pages - Blue Editorial Direction */
.digital-page {
    --digital-blue-dark: #0d2347;
    --digital-blue: #173e7e;
    --digital-blue-soft: #7ea8f2;
    --digital-blue-pale: #eef5ff;
    --digital-blue-line: #d6e5fb;
}

.digital-page .offre-hero {
    background: var(--digital-blue-dark);
}

.digital-page .offre-hero-bg::after {
    background: linear-gradient(to right, rgba(13, 35, 71, 0.9) 0%, rgba(13, 35, 71, 0.52) 100%);
}

.digital-page .offre-hero .gradient-text {
    color: #98c4ff;
    -webkit-text-fill-color: #98c4ff;
}

.digital-page .offre-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 5rem;
    align-items: center;
}

.digital-page .offre-hero-content {
    max-width: none;
}

.offre-hero-visual {
    position: relative;
    z-index: 2;
}

.offre-hero-visual-frame {
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 1.25rem;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(4, 18, 40, 0.28);
    backdrop-filter: blur(10px);
}

.offre-hero-visual-frame img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.offre-hero-visual-caption {
    margin-top: 1rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.digital-page .offre-badge,
.digital-page .dty-badge {
    background: #1a468a;
    border-color: rgba(255,255,255,0.18);
    color: var(--white);
}

.digital-page .btn-primary,
.digital-page .btn-primary-large {
    background: #1a468a;
    border-color: #1a468a;
}

.digital-page .btn-primary:hover,
.digital-page .btn-primary-large:hover {
    background: #11356d;
    border-color: #11356d;
}

.digital-page .offre-services {
    background: linear-gradient(180deg, #ffffff 0%, var(--digital-blue-pale) 100%);
}

.digital-page .offre-atout {
    background: #f7fbff;
}

.digital-page .service-number,
.digital-page .service-description strong,
.digital-page .atout-text p strong,
.digital-page .offre-atout .section-header-center p strong {
    color: var(--digital-blue);
}

.digital-page .service-image-illustration {
    background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
    border: 1px solid var(--digital-blue-line);
    border-radius: 18px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 24px 50px rgba(23, 62, 126, 0.08);
}

.digital-page .service-image-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
}

.digital-page .service-card:hover .service-image-illustration img {
    transform: none;
}

.digital-page .service-image-photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(23, 62, 126, 0.12);
}

.digital-page .service-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.digital-page .offre-atout .section-header-center {
    margin-bottom: 3rem;
}

.digital-page .atout-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1300px;
}

.digital-page .atout-item {
    display: block;
    border: 1px solid var(--digital-blue-line);
    border-radius: 22px;
    overflow: hidden;
    padding-bottom: 0;
    background: var(--white);
    box-shadow: 0 18px 46px rgba(23, 62, 126, 0.08);
}

.digital-page .atout-icon {
    display: none;
}

.digital-page .atout-media {
    height: 230px;
    overflow: hidden;
}

.digital-page .atout-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.digital-page .atout-text {
    padding: 2rem 2rem 2.1rem;
}

.digital-page .atout-text h3 {
    margin-bottom: 1rem;
}

.offre-references {
    padding: 6.5rem 0;
    background: #f1f6ff;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.reference-card {
    background: var(--white);
    border: 1px solid var(--digital-blue-line, #d6e5fb);
    border-radius: 20px;
    padding: 1.4rem 1.4rem 1.2rem;
    box-shadow: 0 16px 38px rgba(23, 62, 126, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(23, 62, 126, 0.12);
    border-color: #aec9fb;
}

.reference-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.reference-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.reference-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--digital-blue-pale, #eef5ff);
    color: var(--digital-blue, #173e7e);
    font-size: 0.82rem;
    font-weight: 600;
}

.reference-summary {
    color: var(--text-color);
    line-height: 1.65;
    font-size: 0.96rem;
}

.reference-details {
    margin-top: 1rem;
    border-top: 1px solid var(--digital-blue-line, #d6e5fb);
    padding-top: 1rem;
}

.reference-details summary {
    cursor: pointer;
    list-style: none;
    color: var(--digital-blue, #173e7e);
    font-weight: 600;
}

.reference-details summary::-webkit-details-marker {
    display: none;
}

.reference-details p {
    margin-top: 0.9rem;
    color: var(--text-color);
    line-height: 1.65;
    text-align: justify;
}

.digital-page .tech-item {
    border-color: var(--digital-blue-line);
}

.digital-page .tech-item:hover {
    border-color: #9fc0ff;
    box-shadow: 0 12px 32px rgba(23, 62, 126, 0.08);
}

/* Services Section - Style Éditorial */
.offre-services {
    padding: 8rem 0;
    background: var(--white);
}

.section-header-center {
    text-align: left;
    margin-bottom: 6rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-center h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-header-center p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
}

.services-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.service-card {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 6rem;
    align-items: start;
    position: relative;
}

.service-card:nth-child(even) {
    grid-template-columns: 1fr 480px;
}

.service-image,
.service-image-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    align-self: stretch;
}

.service-card:nth-child(even) .service-image,
.service-card:nth-child(even) .service-image-placeholder {
    order: 2;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}

.service-image-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-placeholder svg {
    width: 100px;
    height: 100px;
    color: var(--primary-color);
    opacity: 0.15;
}

.service-content {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:nth-child(even) .service-content {
    order: 1;
}

.service-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.service-card h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.service-description p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-description p:last-child {
    margin-bottom: 0;
}

.service-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Atout Section */
.offre-atout {
    padding: 8rem 0;
    background: #fafafa;
    position: relative;
}

.offre-atout .section-header-center {
    margin-bottom: 5rem;
}

.dty-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.offre-atout .section-header-center h2 {
    color: var(--text-dark);
}

.offre-atout .section-header-center p {
    color: var(--text-light);
    text-align: justify;
}

.atout-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.atout-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4rem;
    align-items: end;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e0e0e0;
}

.atout-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.atout-item:nth-child(even) {
    grid-template-columns: 1fr 120px;
}

.atout-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.atout-item:nth-child(even) .atout-icon {
    order: 2;
}

.atout-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.atout-item:hover .atout-icon {
    border-color: var(--primary-color);
}

.atout-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.atout-item:nth-child(even) .atout-text {
    order: 1;
}

.atout-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.atout-text p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 0;
}

.atout-text p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.offre-atout .section-header-center p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.atout-image {
    display: none;
}

/* Technologies Section */
.offre-technologies {
    padding: 6rem 0;
    background: var(--white);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.tech-item:hover {
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.tech-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* CTA Final Section */
.offre-cta-final {
    padding: 6rem 0;
    background: var(--primary-color);
    color: var(--white);
}

.cta-final-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-final-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-final-content p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .digital-page .offre-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .offre-hero-visual {
        max-width: 520px;
    }

    .offre-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        gap: 6rem;
    }
    
    .service-card {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .service-image,
    .service-image-placeholder {
        height: 400px;
        order: 1 !important;
    }
    
    .service-content {
        order: 2 !important;
    }
    
    .atout-content {
        gap: 3rem;
    }
    
    .atout-item {
        grid-template-columns: 120px 1fr !important;
        gap: 2.5rem;
        padding-bottom: 3rem;
    }

    .digital-page .atout-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .digital-page .atout-item {
        display: block;
        padding-bottom: 0;
    }

    .references-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .atout-icon {
        width: 120px;
        height: 120px;
    }
    
    .atout-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .offre-hero-visual-frame {
        padding: 0.9rem;
        border-radius: 20px;
    }

    .offre-hero-visual-frame img {
        border-radius: 14px;
    }

    .offre-hero {
        min-height: 60vh;
    }
    
    .offre-hero-content {
        padding: 3rem 0;
    }
    
    .offre-hero-content h1 {
        font-size: 2rem;
    }

    .offre-hero-content {
        padding: 2.25rem 0 1.5rem;
    }
    
    .offre-subtitle,
    .offre-description {
        font-size: 0.95rem;
    }
    
    .offre-cta-group {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        gap: 3.5rem;
    }
    
    .service-card {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
    }
    
    .service-image,
    .service-image-placeholder {
        height: min(280px, 55vw);
        order: 1 !important;
    }
    
    .service-content {
        order: 2 !important;
        padding: 1rem 0 !important;
    }
    
    .service-number {
        font-size: 0.95rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .section-header-center h2 {
        font-size: 2rem;
    }
    
    .section-header-center {
        margin-bottom: 4rem;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.2rem 0.8rem;
    }
    
    .atout-content {
        gap: 3rem;
    }
    
    .atout-item {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
        align-items: center;
        padding-bottom: 3rem;
    }
    
    .atout-icon {
        margin: 0 auto;
        order: 1 !important;
        width: 120px;
        height: 120px;
    }
    
    .atout-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .atout-text {
        order: 2 !important;
    }
    
    .atout-text h3 {
        font-size: 1.3rem;
    }
    
    .cta-final-content h2 {
        font-size: 1.8rem;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGE OFFRE — Alignement DA accueil (rouge JCS)
   ============================================ */
.page-offre-modern.page-header-overlay .navbar:not(.navbar--solid) .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.page-offre-modern.page-header-overlay .nav-wrapper {
    align-items: flex-start;
    padding-top: 0.45rem;
}

.page-offre-modern.page-header-overlay .logo {
    align-self: flex-start;
}

.page-offre-modern.page-header-overlay .nav-menu,
.page-offre-modern.page-header-overlay .nav-devis-slot {
    align-self: center;
    margin-top: 0.45rem;
}

.page-offre-modern.page-header-overlay .offre-hero--split.offre-hero--photo {
    margin-top: 0;
    padding-top: calc(88px + 1.25rem);
    padding-bottom: clamp(4.5rem, 8vw, 6.25rem);
    min-height: clamp(520px, 68vh, 660px);
    display: flex;
    align-items: flex-start;
}

.page-offre-modern.page-header-overlay .offre-hero--photo .offre-hero-bg {
    top: 0;
}

.page-offre-modern.page-header-overlay .offre-hero-container {
    width: 100%;
}

.page-offre-modern.page-header-overlay .offre-hero--photo .offre-hero-bg::after {
    background:
        linear-gradient(180deg, rgba(8, 12, 22, 0.45) 0%, rgba(8, 12, 22, 0.1) 20%, transparent 45%),
        linear-gradient(105deg, rgba(10, 14, 26, 0.72) 0%, rgba(14, 20, 36, 0.55) 42%, rgba(18, 28, 48, 0.35) 72%, rgba(20, 32, 52, 0.25) 100%),
        radial-gradient(ellipse 80% 60% at 78% 50%, rgba(196, 30, 58, 0.12), transparent 68%);
}

.page-offre-modern {
    --offre-accent: var(--red);
    --offre-accent-dark: var(--red-dark);
    --offre-bg-soft: #FFF5F6;
    --offre-bg-gray: #F7F7F7;
    --prestation-inactive-bg: linear-gradient(135deg, #111827 0%, #162032 48%, #1b2942 100%);
    --prestation-inactive-hover-bg: linear-gradient(135deg, #151f35 0%, #1b2a44 52%, #223050 100%);
}

/* Hero clair — sans photo de fond */
.page-offre-modern .offre-hero--clean {
    position: relative;
    margin-top: 88px;
    padding: 3.5rem 0 clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(180deg, var(--offre-bg-soft) 0%, #ffffff 100%);
    overflow: hidden;
}

/* Hero split — photo de fond, pills Digital dans le contenu */
.page-offre-modern .offre-hero--split {
    position: relative;
    margin-top: 88px;
    padding: 3rem 0 clamp(3.5rem, 7vw, 5rem);
    background: #0f1423;
    overflow: hidden;
}

.page-offre-modern .offre-hero--photo .offre-hero-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0f1423;
    background-image: url('../images/dev-web-hero.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.page-offre-modern .offre-hero--photo .offre-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.04);
}

.page-offre-modern .offre-hero--photo .offre-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 22, 0.45) 0%, rgba(8, 12, 22, 0.1) 20%, transparent 45%),
        linear-gradient(105deg, rgba(10, 14, 26, 0.72) 0%, rgba(14, 20, 36, 0.55) 42%, rgba(18, 28, 48, 0.35) 72%, rgba(20, 32, 52, 0.25) 100%),
        radial-gradient(ellipse 80% 60% at 78% 50%, rgba(196, 30, 58, 0.12), transparent 68%);
    z-index: 1;
}

.page-offre-modern .offre-hero--split:not(.offre-hero--photo) .offre-hero-bg {
    display: none;
}

.page-offre-modern .offre-hero-split {
    display: block;
    max-width: 780px;
}

.page-offre-modern .offre-hero-digital-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.75rem;
}

.page-offre-modern .offre-hero-digital-row .offre-badge {
    flex-shrink: 0;
    margin-bottom: 0;
}

.page-offre-modern .offre-hero-digital-row .digital-offres-pills {
    flex: 1;
    justify-content: flex-start;
}

.page-offre-modern .offre-hero--split .offre-hero-content {
    max-width: none;
    padding: 0;
    color: var(--white);
}

.page-offre-modern .offre-hero--split .offre-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.page-offre-modern .offre-hero--split .offre-hero .gradient-text {
    color: #ff8fa3;
    -webkit-text-fill-color: #ff8fa3;
}

.page-offre-modern .offre-hero--split .offre-subtitle,
.page-offre-modern .offre-hero--split .offre-description {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

.page-offre-modern .offre-hero--split .offre-description strong {
    color: var(--white);
}

.page-offre-modern .offre-hero--split .offre-badge {
    background: var(--red);
    border-color: var(--red);
}

.page-offre-modern .offre-hero--split .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}

.page-offre-modern .offre-hero--split .btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
}

.page-offre-modern .offre-hero--clean .offre-hero-bg {
    display: none;
}

.page-offre-modern .offre-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-offre-modern .offre-hero-content {
    max-width: 820px;
    padding: 0;
    color: var(--dark);
}

.page-offre-modern .offre-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.page-offre-modern .offre-hero .gradient-text {
    color: var(--red);
    -webkit-text-fill-color: var(--red);
}

.page-offre-modern .offre-subtitle {
    color: var(--mid);
    opacity: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-offre-modern .offre-description {
    color: var(--mid);
    font-size: 1.05rem;
}

.page-offre-modern .offre-description strong {
    color: var(--dark);
}

.page-offre-modern .offre-badge {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    letter-spacing: 0.14em;
}

.page-offre-modern .btn-secondary {
    color: var(--dark);
    border-color: var(--border);
    background: var(--white);
}

.page-offre-modern .btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
}

.page-offre-modern .btn-primary,
.page-offre-modern .btn-primary-large {
    background: var(--red);
    border-color: var(--red);
}

.page-offre-modern .btn-primary:hover,
.page-offre-modern .btn-primary-large:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.page-offre-modern .jcs-wave--hero {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

/* Navigation sous-offres Digital — inline dans le hero */
.digital-offres-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.digital-offre-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.digital-offre-pill:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.digital-offre-pill--active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}

.digital-offre-pill--active:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.digital-offre-pill-icon {
    display: flex;
    opacity: 0.9;
}

/* Titres de section */
.page-offre .section-heading {
    text-align: left;
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark);
}

.page-offre .section-heading--center {
    text-align: center;
}

.page-offre .section-heading-accent {
    color: var(--red);
}

.page-offre .offre-section-lead {
    color: var(--light);
    font-size: 1.02rem;
    max-width: 560px;
    margin-bottom: 2.75rem;
    line-height: 1.65;
}

.page-offre .offre-section-lead--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Prestations — accordéon + visuel */
.page-offre-modern .offre-services {
    padding: 1.35rem 0 1.25rem;
    background: var(--white);
}

.page-offre-modern .jcs-wave--soft + .offre-dty-featured {
    padding-top: 1.35rem;
}

.page-offre-modern .jcs-wave--to-white + .offre-references {
    padding-top: 2.25rem;
}

.page-offre-modern .jcs-wave--to-cta + .offre-cta-final.cta-modern {
    padding-top: 3rem;
}

.page-offre-modern .prestations-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 38%);
    align-items: start;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    min-height: 0;
    --prestation-active-height: auto;
    --prestations-visual-height: auto;
}

.page-offre-modern .prestations-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    height: auto;
    min-height: 0;
}

.page-offre-modern .prestation-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.85rem 1rem;
    align-items: start;
    width: 100%;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: var(--prestation-inactive-bg);
    text-align: left;
    cursor: default;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 4px 16px rgba(8, 12, 22, 0.14);
    overflow: hidden;
}

.page-offre-modern .prestation-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 85% at 88% 28%, rgba(196, 30, 58, 0.14), transparent 68%),
        linear-gradient(105deg, rgba(10, 14, 26, 0.45) 0%, transparent 58%);
    pointer-events: none;
    border-radius: inherit;
}

.page-offre-modern .prestation-num,
.page-offre-modern .prestation-body {
    position: relative;
    z-index: 1;
}

.page-offre-modern .prestation-item:not(.prestation-item--active) .prestation-title {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.94);
}

.page-offre-modern .prestation-item:not(.prestation-item--active) .prestation-num {
    margin-top: 0;
    color: var(--red);
}

.page-offre-modern .prestation-item:not(.prestation-item--active) {
    min-height: 76px;
    max-height: 76px;
    flex-shrink: 0;
    align-items: center;
    overflow: hidden;
}

.page-offre-modern .prestation-item:not(.prestation-item--active):hover {
    background: var(--prestation-inactive-hover-bg);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 22px rgba(8, 12, 22, 0.2);
}

.page-offre-modern .prestation-item:not(.prestation-item--active):hover .prestation-title {
    color: rgba(255, 255, 255, 0.98);
}

.page-offre-modern .prestation-item--active {
    flex: 0 0 auto;
    height: var(--prestation-active-height, auto);
    min-height: var(--prestation-active-height, auto);
    max-height: var(--prestation-active-height, none);
    align-items: start;
    align-self: stretch;
    background: var(--white);
    border-color: rgba(23, 62, 126, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.page-offre-modern .prestation-item--active::before {
    display: none;
}

.page-offre-modern .prestation-item--active .prestation-title {
    color: var(--dark);
}

.page-offre-modern .prestation-item--active .prestation-num {
    color: var(--red);
}

.page-offre-modern .prestation-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
}

.page-offre-modern .prestation-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.page-offre-modern .prestation-excerpt,
.page-offre-modern .prestation-full {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--mid);
    margin: 0;
}

.page-offre-modern .prestation-full {
    display: none;
    margin-top: 0.5rem;
}

.page-offre-modern .prestation-item--active .prestation-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.page-offre-modern .prestation-item--active .prestation-full {
    display: block;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.page-offre-modern .prestation-full p {
    margin-bottom: 0.75rem;
}

.page-offre-modern .prestation-full p:last-child {
    margin-bottom: 0;
}

.page-offre-modern .prestation-full strong {
    color: var(--red);
    font-weight: 700;
}

.page-offre-modern .prestations-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: var(--prestations-visual-height, auto);
    min-height: var(--prestations-visual-height, 200px);
    max-height: var(--prestations-visual-height, none);
    align-self: start;
    border-radius: 20px;
    overflow: hidden;
    background: var(--offre-bg-gray);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}

.page-offre-modern .prestations-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.page-offre-modern .services-grid {
    gap: 0;
}

/* Digital Tech Year — section featured */
.page-offre-modern .offre-dty-featured {
    position: relative;
    padding: 2.5rem 0 2.75rem;
    background: linear-gradient(180deg, #f4f4f4 0%, #fafafa 45%, #f2f2f2 100%);
    overflow: hidden;
}

.page-offre-modern .offre-dty-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 45% at 50% 35%, rgba(196, 30, 58, 0.05), transparent 72%);
    pointer-events: none;
}

.page-offre-modern .offre-dty-featured .container {
    position: relative;
    z-index: 1;
}

.page-offre-modern .dty-featured-header {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 2rem;
}

.page-offre-modern .dty-main-title {
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    margin-bottom: 1rem;
}

.page-offre-modern .dty-featured-intro {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--mid);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-offre-modern .dty-featured-intro strong {
    color: var(--red);
    font-weight: 600;
}

/* Parcours DTY — 2 étapes + hub central */
.page-offre-modern .dty-journey-wrap {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.5rem 0 0.75rem;
}

.page-offre-modern .dty-deco-infinity {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92%, 520px);
    height: auto;
    transform: translate(-50%, -54%);
    pointer-events: none;
    z-index: 0;
}

.page-offre-modern .dty-journey {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.page-offre-modern .dty-journey--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-offre-modern .dty-journey--strategie {
    gap: 1rem;
}

.page-offre-modern .dty-step--strategie {
    min-height: 0;
    padding: 1.15rem 1.25rem 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-left: 3px solid var(--red);
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.05);
}

.page-offre-modern .dty-step--strategie:hover {
    border-color: rgba(196, 30, 58, 0.18);
    box-shadow: 0 12px 36px rgba(196, 30, 58, 0.08);
}

.page-offre-modern .dty-step--strategie .dty-step-top {
    margin-bottom: 0.55rem;
}

.page-offre-modern .dty-step--strategie .dty-step-num {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.page-offre-modern .dty-step--strategie .dty-step-icon {
    width: 40px;
    height: 40px;
}

.page-offre-modern .dty-step--strategie .dty-step-title {
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.3;
    margin-bottom: 0.45rem;
    min-height: 0;
}

.page-offre-modern .dty-step--strategie .dty-step-text {
    flex: 0 1 auto;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 0;
}

.page-offre-modern .dty-partner--light {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

/* Même logique que le Digital : logos | hub | intervenants centrés dans le bloc de droite */
.page-offre-modern .dty-bottom-bar--strategie,
.page-offre-modern .dty-bottom-bar--ingenierie {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 1160px;
    margin: 1.25rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(196, 30, 58, 0.1);
}

.page-offre-modern .dty-bottom-bar--strategie .dty-partners-band,
.page-offre-modern .dty-bottom-bar--ingenierie .dty-partners-band {
    grid-column: 1;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.page-offre-modern .dty-bottom-bar--strategie .dty-bottom-spacer,
.page-offre-modern .dty-bottom-bar--ingenierie .dty-bottom-spacer {
    grid-column: 2;
    display: block;
    width: clamp(136px, 14vw, 188px);
}

.page-offre-modern .dty-bottom-bar--strategie .dty-experience-teaser,
.page-offre-modern .dty-bottom-bar--ingenierie .dty-experience-teaser {
    grid-column: 3;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    text-align: center;
}

.strategie-page .dty-partners-row--stacked,
.ingenierie-page .dty-partners-row--stacked {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 4vw, 3rem);
}

.strategie-page .dty-partners-track,
.ingenierie-page .dty-partners-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 4vw, 3rem);
}

.strategie-page .dty-bottom-label,
.ingenierie-page .dty-bottom-label {
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 900px) {
    .page-offre-modern .dty-bottom-bar--strategie,
    .page-offre-modern .dty-bottom-bar--ingenierie {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.35rem;
    }

    .page-offre-modern .dty-bottom-bar--strategie .dty-partners-band,
    .page-offre-modern .dty-bottom-bar--ingenierie .dty-partners-band,
    .page-offre-modern .dty-bottom-bar--strategie .dty-experience-teaser,
    .page-offre-modern .dty-bottom-bar--ingenierie .dty-experience-teaser {
        grid-column: 1;
        width: 100%;
    }

    .page-offre-modern .dty-bottom-bar--strategie .dty-bottom-spacer,
    .page-offre-modern .dty-bottom-bar--ingenierie .dty-bottom-spacer {
        display: none;
    }
}

.page-offre-modern .dty-step--grid-card {
    border-left: 3px solid rgba(196, 30, 58, 0.18);
    border-right: none;
    text-align: left;
    align-items: flex-start;
}

.page-offre-modern .dty-step--grid-card .dty-step-top {
    flex-direction: row;
}

.page-offre-modern .dty-step {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: var(--white);
    border-radius: 18px;
    padding: 1.65rem 1.75rem 1.8rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.page-offre-modern .dty-step--from-left {
    border-right: 3px solid rgba(196, 30, 58, 0.18);
    text-align: left;
    align-items: flex-start;
}

.page-offre-modern .dty-step--from-right {
    border-left: 3px solid rgba(196, 30, 58, 0.18);
    text-align: right;
    align-items: flex-end;
}

.page-offre-modern .dty-step:hover {
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.08);
    transform: translateY(-3px);
}

.page-offre-modern .dty-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 1.25rem;
    margin-bottom: 1.1rem;
}

.page-offre-modern .dty-step--from-left .dty-step-top {
    flex-direction: row;
}

.page-offre-modern .dty-step--from-right .dty-step-top {
    flex-direction: row-reverse;
}

.page-offre-modern .dty-step-num {
    position: static;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(196, 30, 58, 0.07);
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

.page-offre-modern .dty-step-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(196, 30, 58, 0.08);
    color: var(--red);
    flex-shrink: 0;
}

.page-offre-modern .dty-step-icon svg {
    width: 24px;
    height: 24px;
}

.page-offre-modern .dty-step-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.7rem;
    line-height: 1.3;
    width: 100%;
}

.page-offre-modern .dty-step--from-left .dty-step-title,
.page-offre-modern .dty-step--from-right .dty-step-title {
    padding-left: 0;
    padding-right: 0;
}

.page-offre-modern .dty-step-text {
    font-size: 0.9rem;
    line-height: 1.68;
    color: var(--mid);
    margin: 0;
    width: 100%;
    flex: 1;
}

.page-offre-modern .dty-step-text strong {
    color: var(--red);
    font-weight: 700;
}

.page-offre-modern .dty-core {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: clamp(136px, 14vw, 188px);
    align-self: center;
    flex-shrink: 0;
}

.page-offre-modern .dty-core-glow {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.12) 0%, transparent 68%);
    animation: dty-core-pulse 4s ease-in-out infinite;
}

.page-offre-modern .dty-core-logo {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.1));
}

@keyframes dty-core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Bandeau bas — aligné sur la grille du parcours (bloc 1 | hub | bloc 2) */
.page-offre-modern .dty-bottom-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: end;
    max-width: 1160px;
    margin: 0.75rem auto 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(196, 30, 58, 0.1);
}

.page-offre-modern .dty-bottom-bar--compact {
    grid-template-columns: 1fr;
    justify-items: center;
}

.page-offre-modern .dty-bottom-bar--compact .dty-partners-band,
.page-offre-modern .dty-bottom-bar--compact .dty-bottom-spacer {
    display: none;
}

.page-offre-modern .dty-bottom-bar--interviews-only {
    grid-template-columns: 1fr;
    justify-items: center;
}

.page-offre-modern .dty-bottom-bar--compact .dty-experience-teaser,
.page-offre-modern .dty-bottom-bar--interviews-only .dty-experience-teaser {
    grid-column: 1;
    justify-self: center;
    width: auto;
    max-width: 100%;
}

.page-offre-modern .dty-bottom-bar--interviews-only .dty-partners-band,
.page-offre-modern .dty-bottom-bar--interviews-only .dty-bottom-spacer {
    display: none;
}

.page-offre-modern .dty-partners-band {
    grid-column: 1;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border-top: none;
    max-width: none;
    width: 100%;
}

.page-offre-modern .dty-bottom-spacer {
    grid-column: 2;
    width: clamp(136px, 14vw, 188px);
    flex-shrink: 0;
}

.page-offre-modern .dty-experience-teaser {
    grid-column: 3;
    margin: 0 auto;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    flex-shrink: 0;
}

.page-offre-modern .dty-bottom-label--stacked {
    white-space: nowrap;
    max-width: none;
    text-align: center;
    line-height: 1.35;
}

.page-offre-modern .dty-partners-row {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.page-offre-modern .dty-partners-row--stacked {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.page-offre-modern .dty-partners-row--stacked .dty-bottom-label {
    max-width: none;
    text-align: center;
}

.page-offre-modern .dty-bottom-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light);
    flex-shrink: 0;
    line-height: 1.4;
    max-width: 15rem;
}

.page-offre-modern .dty-partners-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}

.page-offre-modern .dty-partner {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-offre-modern .dty-partner.reveal-on-scroll {
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--dty-partner-i, 0) * 0.12s + 0.15s);
}

.page-offre-modern .dty-partner:hover {
    transform: translateY(-4px);
}

.page-offre-modern .dty-partner img {
    height: clamp(26px, 3.5vw, 34px);
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: 0.88;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.15);
}

/* Stratégie — taille intermédiaire entre Digital et le grand format */
.page-offre-modern .dty-partner.dty-partner--light img,
.strategie-page .dty-partners-track .dty-partner img {
    height: clamp(48px, 5.5vw, 72px);
    max-width: 180px;
    width: auto;
    opacity: 1;
    filter: none;
    object-fit: contain;
}

/* Ingénierie — La Fabrique un peu plus grand */
.ingenierie-page .dty-partners-track .dty-partner img,
.ingenierie-page .dty-partner.dty-partner--light img {
    height: clamp(64px, 7vw, 96px);
    max-width: 240px;
}

.strategie-page .dty-partners-track .dty-partner:hover img {
    opacity: 1;
    filter: none;
}

.strategie-page .dty-partners-track .dty-partner:nth-child(2) img {
    transform: translate(10px, 20px);
}

.page-offre-modern .dty-partner--amazon img {
    height: clamp(34px, 4.5vw, 46px);
    max-width: 130px;
}

.page-offre-modern .dty-partner:hover img {
    opacity: 1;
    filter: grayscale(0);
}

.page-offre-modern .dty-partner--empty {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.35);
    min-width: 110px;
    min-height: 52px;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(17, 17, 17, 0.18);
    border-radius: 12px;
    background: rgba(247, 247, 247, 0.9);
    box-sizing: border-box;
}

/* Teaser témoignages */
.page-offre-modern .dty-experience-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.2rem 0.72rem 0.95rem;
    background: linear-gradient(135deg, var(--red) 0%, #a81830 100%);
    border: none;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(196, 30, 58, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-offre-modern .dty-experience-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(196, 30, 58, 0.48);
    filter: brightness(1.05);
    color: var(--white);
}

.page-offre-modern .dty-experience-link-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.page-offre-modern .dty-experience-link-play svg {
    margin-left: 1px;
}

.page-offre-modern .dty-experience-link-arrow {
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.page-offre-modern .dty-experience-link:hover .dty-experience-link-arrow {
    transform: translateX(3px);
}

.page-offre .dty-experience-soon {
    padding: 0.2rem 0.55rem;
    background: rgba(196, 30, 58, 0.1);
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

/* Références — grille masonry */
.page-offre-modern .offre-references {
    padding: 4.5rem 0 5.5rem;
    background: var(--white);
}

.page-offre-modern .refs-masonry--inspo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(200px, 220px) minmax(200px, 220px) minmax(200px, 220px);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cybersécurité — 2 références côte à côte, centrées */
.page-offre-modern .refs-masonry--two {
    grid-template-columns: repeat(2, minmax(260px, 380px));
    grid-template-rows: minmax(240px, 280px);
    justify-content: center;
    justify-items: stretch;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-offre-modern .refs-masonry--two .ref-card--slot-0,
.page-offre-modern .refs-masonry--two .ref-card--slot-1 {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
    width: 100%;
}

.page-offre-modern .ref-card--slot-0 {
    grid-column: 1 / 3;
    grid-row: 1;
}

.page-offre-modern .ref-card--slot-1 {
    grid-column: 3;
    grid-row: 1;
}

.page-offre-modern .ref-card--slot-2 {
    grid-column: 1;
    grid-row: 2 / 4;
}

.page-offre-modern .ref-card--slot-3 {
    grid-column: 2;
    grid-row: 2 / 4;
}

.page-offre-modern .ref-card--slot-4 {
    grid-column: 3;
    grid-row: 2 / 4;
}

.page-offre-modern .ref-card--placeholder {
    background: linear-gradient(145deg, #ececec 0%, #e2e2e2 100%);
    border: 2px dashed #d0d0d0;
    cursor: default;
    pointer-events: none;
}

.page-offre-modern .ref-card--placeholder .ref-card-shade {
    background: transparent;
}

.page-offre-modern .ref-card-logo-text--placeholder {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.page-offre-modern .refs-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-offre-modern .ref-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 220px;
    cursor: default;
    background: #1a1a1a;
}

.page-offre-modern .ref-card--wide {
    grid-column: span 2;
}

.page-offre-modern .ref-card--tall {
    grid-row: span 2;
    min-height: 100%;
}

.page-offre-modern .ref-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-offre-modern .ref-card:hover .ref-card-bg {
    transform: scale(1.04);
}

.page-offre-modern .ref-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.page-offre-modern .ref-card-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.page-offre-modern .ref-card-logo img {
    max-width: 72%;
    max-height: 58%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}

.page-offre-modern .ref-card--slot-0 .ref-card-logo img {
    max-width: 48%;
    max-height: 62%;
}

.page-offre-modern .ref-card--slot-2 .ref-card-logo img,
.page-offre-modern .ref-card--slot-3 .ref-card-logo img,
.page-offre-modern .ref-card--slot-4 .ref-card-logo img {
    max-width: 78%;
    max-height: 68%;
}

.page-offre-modern .ref-card-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.page-offre-modern .ref-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.2) 100%);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.page-offre-modern .ref-card:hover .ref-card-overlay,
.page-offre-modern .ref-card:focus-within .ref-card-overlay {
    opacity: 1;
}

.page-offre-modern .ref-card:hover .ref-card-logo,
.page-offre-modern .ref-card:focus-within .ref-card-logo {
    opacity: 0;
}

.page-offre-modern .ref-card-overlay h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.page-offre-modern .ref-card-overlay p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-offre-modern .ref-card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.page-offre-modern .ref-card-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.page-offre-modern .ref-card-metric svg {
    flex-shrink: 0;
    opacity: 0.75;
}

/* CTA final */
.page-offre-modern .offre-cta-final.cta-modern {
    padding: 5rem 0;
    background: var(--red);
    color: var(--white);
}

.page-offre-modern .offre-cta-final .btn-primary-large {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.page-offre-modern .offre-cta-final .btn-primary-large:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.page-coming-soon {
    padding: 3rem 0 5rem;
    background: var(--offre-bg-gray, #f7f7f7);
}

.coming-soon-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.coming-soon-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem;
    background: rgba(196, 30, 58, 0.1);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.coming-soon-text {
    margin: 0.75rem auto 1.75rem;
    max-width: 460px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mid);
}

.page-coming-soon .dty-experience-link {
    margin-top: 0.25rem;
}
.page-offre .jcs-wave--soft,
.page-offre .jcs-wave--to-gray-light,
.page-offre .jcs-wave--to-white,
.page-offre .jcs-wave--to-cta {
    margin-top: -1px;
}

.page-offre .jcs-wave--soft svg {
    height: clamp(28px, 3.5vw, 48px);
}

.page-offre .jcs-wave--to-gray-light svg,
.page-offre .jcs-wave--to-white svg,
.page-offre .jcs-wave--to-cta svg {
    height: clamp(44px, 6.5vw, 64px);
}

/* Reveal on scroll */
.page-offre .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-offre .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* DTY — reveal symétrique des étapes */
.page-offre-modern .dty-step--from-left.reveal-on-scroll,
.page-offre-modern .dty-step--from-right.reveal-on-scroll {
    transform: translateY(24px);
    transition-delay: calc(var(--dty-i, 0) * 0.1s);
}

.page-offre-modern .dty-step--from-left.reveal-on-scroll.is-visible,
.page-offre-modern .dty-step--from-right.reveal-on-scroll.is-visible {
    transform: translateY(0);
}

.page-offre-modern .dty-step--from-left.reveal-on-scroll.is-visible:hover,
.page-offre-modern .dty-step--from-right.reveal-on-scroll.is-visible:hover {
    transform: translateY(-3px);
}

.page-offre-modern .dty-core.reveal-on-scroll {
    transform: scale(0.88);
    transition-delay: 0.18s;
}

.page-offre-modern .dty-core.reveal-on-scroll.is-visible {
    transform: scale(1);
}

.page-offre-modern .dty-partner.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
}

.page-offre-modern .dty-partner.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-offre-modern .dty-partner.reveal-on-scroll.is-visible:hover {
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .page-offre-modern .offre-hero-split {
        max-width: none;
    }

    .page-offre-modern .dty-journey {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .page-offre-modern .dty-journey--grid {
        grid-template-columns: 1fr;
    }

    .page-offre-modern .dty-deco-infinity {
        width: min(70%, 320px);
        transform: translate(-50%, -50%);
        opacity: 0.7;
    }

    .page-offre-modern .dty-core {
        order: 0;
        margin: 0.25rem auto;
    }

    .page-offre-modern .dty-step--from-left {
        order: 1;
        border-right: none;
        border-left: 3px solid rgba(196, 30, 58, 0.18);
        text-align: left;
        align-items: flex-start;
    }

    .page-offre-modern .dty-step--from-right {
        order: 2;
        text-align: left;
        align-items: flex-start;
    }

    .page-offre-modern .dty-step--from-left .dty-step-top,
    .page-offre-modern .dty-step--from-right .dty-step-top {
        flex-direction: row;
    }

    .page-offre-modern .dty-step--from-left.reveal-on-scroll,
    .page-offre-modern .dty-step--from-right.reveal-on-scroll {
        transform: translateY(24px);
    }

    .page-offre-modern .dty-step--from-left.reveal-on-scroll.is-visible,
    .page-offre-modern .dty-step--from-right.reveal-on-scroll.is-visible {
        transform: translateY(0);
    }

    .page-offre-modern .prestations-panel {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0;
        padding-right: 0;
        min-height: 0;
        height: auto;
    }

    .page-offre-modern .prestations-accordion {
        height: auto;
    }

    .page-offre-modern .prestation-item--active {
        flex: none;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .page-offre-modern .prestation-item--active .prestation-body {
        display: block;
        height: auto;
    }

    .page-offre-modern .prestation-item--active .prestation-full {
        flex: none;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-y: visible;
    }

    .page-offre-modern .prestations-visual {
        position: relative;
        right: auto;
        width: 100%;
        top: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
        margin-bottom: 1.25rem;
        order: -1;
        align-self: stretch;
    }

    .page-offre-modern .prestations-visual img {
        position: absolute;
        inset: 0;
    }

    .page-offre-modern .prestation-item:not(.prestation-item--active) {
        min-height: 68px;
        max-height: 68px;
    }

    .page-offre-modern .refs-masonry--inspo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .page-offre-modern .refs-masonry--two {
        grid-template-columns: repeat(2, minmax(220px, 340px));
        justify-content: center;
        max-width: 100%;
    }

    .page-offre-modern .ref-card--slot-0 { grid-column: 1 / 3; grid-row: auto; }
    .page-offre-modern .ref-card--slot-1 { grid-column: 1; grid-row: auto; }
    .page-offre-modern .ref-card--slot-2 { grid-column: 2; grid-row: auto; }
    .page-offre-modern .ref-card--slot-3 { grid-column: 1; grid-row: auto; }
    .page-offre-modern .ref-card--slot-4 { grid-column: 2; grid-row: auto; }

    .page-offre-modern .refs-masonry--two .ref-card--slot-0,
    .page-offre-modern .refs-masonry--two .ref-card--slot-1 {
        grid-column: auto;
        grid-row: auto;
    }

    .page-offre-modern .dty-bottom-bar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .page-offre-modern .dty-partners-band,
    .page-offre-modern .dty-bottom-spacer,
    .page-offre-modern .dty-experience-teaser {
        grid-column: 1;
    }

    .page-offre-modern .dty-bottom-spacer {
        display: none;
    }

    .page-offre-modern .dty-experience-teaser {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .page-offre-modern .dty-bottom-label--stacked {
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-offre-modern .offre-hero-digital-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-offre-modern .offre-hero-digital-row .digital-offres-pills {
        width: 100%;
    }

    .digital-offre-pill {
        font-size: 0.72rem;
        padding: 0.4rem 0.7rem;
    }

    .digital-offres-pills {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-offre-modern .offre-hero-content h1 {
        font-size: 2rem;
    }

    .page-offre-modern .refs-masonry--inspo {
        grid-template-columns: 1fr;
    }

    .page-offre-modern .ref-card--slot-0,
    .page-offre-modern .ref-card--slot-1,
    .page-offre-modern .ref-card--slot-2,
    .page-offre-modern .ref-card--slot-3,
    .page-offre-modern .ref-card--slot-4 {
        grid-column: 1;
        grid-row: auto;
    }

    .page-offre-modern .dty-partners-track {
        gap: 1.25rem 1.75rem;
    }

    .page-offre-modern .ref-card-overlay {
        opacity: 1;
    }

    .page-offre-modern .ref-card-logo {
        opacity: 0;
    }
}
