/* ===================================
   INNER PAGES - layout épuré (style index)
   =================================== */

.page-hero {
    padding: 9rem 0 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.page-hero .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-text) 30%, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .hero-lead {
    color: var(--gray-text);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.page-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.page-section {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 2;
}

.page-section-tight {
    padding-top: 0;
}

/* Stats inline (about, clients) */
.stats-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 0 0;
}

.stats-inline-item {
    text-align: center;
    min-width: 100px;
}

.stats-inline-item .num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stats-inline-item .label,
.stats-inline-item .stat-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-text);
    margin-top: 0.25rem;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
}

.stats-inline-item .stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Clients page - grille simple */
.clients-page-grid {
    max-width: 960px;
    margin: 0 auto;
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
}

.clients-logo-grid .client-logo {
    width: 100%;
    max-width: 160px;
    padding: 1rem;
}

.clients-names {
    margin-top: 2.5rem;
    text-align: center;
}

.clients-names p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

/* Contact simplifié */
.contact-simple-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0 5rem;
    position: relative;
    z-index: 2;
}

.contact-simple-meta {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-simple-meta a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-simple-meta a:hover {
    text-decoration: underline;
}

.contact-form-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    backdrop-filter: blur(12px);
}

.contact-form-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.35rem;
    text-align: center;
}

.contact-form-panel > p.form-intro {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Services - cartes style index */
.services-page .service-card {
    height: 100%;
}

.services-expertise-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 880px;
    margin: 2rem auto 0;
}

.expertise-pill {
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    transition: border-color 0.25s ease;
}

.expertise-pill:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.expertise-pill h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.35rem;
}

.expertise-pill p {
    font-size: 0.82rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.5;
}

/* Products - intro */
.platform-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.platform-intro-lead {
    color: var(--gray-text);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.5rem;
}

.platform-intro-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.platform-intro-points li {
    position: relative;
    padding-left: 1.35rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.platform-intro-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.platform-intro-points li strong {
    color: var(--light-text);
    font-weight: 600;
}

/* Products - slider captures */
.platform-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    scroll-margin-top: 6rem;
}

.platform-gallery-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.platform-gallery-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.platform-gallery-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.platform-gallery-header p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.platform-slider {
    max-width: min(1180px, 100%);
    margin: 0 auto;
}

.platform-slider-frame {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-slider-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--light-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.platform-slider-nav:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

.platform-slider-nav:active {
    transform: scale(0.96);
}

.platform-slider-card {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
    overflow: hidden;
}

.platform-slider-viewport {
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

/* Ask uniquement : grande hauteur + scroll dans le cadre */
.platform-slider-viewport.is-ask-mode {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    height: min(92vh, 1040px);
    max-height: min(92vh, 1040px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.platform-slider-viewport:not(.is-ask-mode) {
    height: auto;
    max-height: none;
}

.platform-slider-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.platform-slider-slide {
    flex: 0 0 100%;
    margin: 0;
    min-width: 100%;
}

/* Slides hors écran ne participent plus à la hauteur du cadre */
.platform-slider-slide[aria-hidden="true"] {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.platform-slider-slide button.platform-slider-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.platform-slider-viewport.is-ask-mode .platform-slider-slide--ask[aria-hidden="false"] button.platform-slider-zoom {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: min(92vh, 1040px);
}

.platform-slider-slide img {
    width: 100%;
    height: auto;
    max-height: min(78vh, 860px);
    object-fit: contain;
    object-position: center top;
    display: block;
    margin: 0 auto;
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
}

.platform-slider-viewport.is-ask-mode .platform-slider-slide--ask[aria-hidden="false"] img {
    width: auto;
    max-height: none;
    height: min(1792px, max(92vh, 1200px));
    max-width: none;
}

/* Légendes hors image - panneau sous le slider */
.platform-slider-meta {
    max-width: min(1180px, 100%);
    margin: 1rem auto 0;
    padding: 1.15rem 1.5rem 1.25rem;
    text-align: center;
    background: var(--lighter-bg);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
}

.platform-slider-meta .shot-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    margin-bottom: 0.4rem;
}

.platform-slider-meta .shot-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.45rem;
}

.platform-slider-meta .shot-desc {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.slide-caption-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lightbox - image + texte séparés */
.platform-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.platform-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.platform-lightbox-card {
    display: flex;
    flex-direction: column;
    max-width: min(1440px, 98vw);
    max-height: 96vh;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.platform-lightbox-media {
    flex: 1 1 auto;
    min-height: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    max-height: calc(98vh - 5.5rem);
}

.platform-lightbox-media img {
    max-width: 100%;
    max-height: calc(98vh - 6.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.platform-lightbox.is-ask-zoom .platform-lightbox-media {
    align-items: flex-start;
    overflow: auto;
}

.platform-lightbox.is-ask-zoom .platform-lightbox-media img {
    width: auto;
    max-width: none;
    max-height: none;
    height: min(1792px, max(94vh, 1300px));
}

.platform-lightbox-meta {
    flex-shrink: 0;
    padding: 1.15rem 1.5rem 1.35rem;
    text-align: center;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.platform-lightbox-meta .lightbox-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    margin-bottom: 0.35rem;
}

.platform-lightbox-meta .lightbox-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem;
}

.platform-lightbox-meta .lightbox-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.platform-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    z-index: 10001;
}

.platform-lightbox-close:hover {
    transform: scale(1.05);
}

.platform-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.platform-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.platform-slider-dot.is-active {
    background: #2563eb;
    transform: scale(1.25);
}

.platform-gallery-hint {
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .platform-slider-frame {
        flex-direction: column;
    }

    .platform-slider-nav {
        display: none;
    }

    .platform-slider-card {
        width: 100%;
    }

    .platform-slider-viewport.is-ask-mode {
        height: min(85vh, 900px);
        max-height: min(85vh, 900px);
    }

    .platform-slider-viewport.is-ask-mode .platform-slider-slide--ask[aria-hidden="false"] button.platform-slider-zoom {
        min-height: min(85vh, 900px);
    }

    .platform-slider-viewport.is-ask-mode .platform-slider-slide--ask[aria-hidden="false"] img {
        height: min(1792px, max(85vh, 950px));
    }

    .platform-slider-slide[aria-hidden="false"]:not(.platform-slider-slide--ask) img {
        max-height: min(65vh, 640px);
        padding: 0.25rem;
    }

    .platform-slider-meta {
        margin-top: 0.85rem;
        padding: 1rem 1.15rem;
    }
}

@media (max-width: 768px) {
    .services-expertise-compact {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}
