﻿/* ================================
   SOLUTIONS PAGE - STYLES MODERNISÉS
   ================================ */

/* Hero Solutions */
.hero--solutions {
    min-height: 350px;
}

    .hero--solutions h1 {
        font-size: 2.5rem;
        max-width: 900px;
        margin: 0 auto 1.5rem;
    }

    .hero--solutions .hero-subtitle {
        max-width: 800px;
        margin: 0 auto;
    }

/* ================================
   NAVIGATION PAR ONGLETS
   ================================ */

.solutions-tabs-section {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 73px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.solutions-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    justify-content: center;
}

    .solutions-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

    .tab-btn:hover {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        border-color: var(--primary);
        color: white;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    }

.tab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.tab-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.tab-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

.tab-btn.active .tab-subtitle {
    opacity: 0.9;
}

/* ================================
   CONTENU DES ONGLETS
   ================================ */

.tabs-content-wrapper {
    background: var(--bg-primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .tab-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   HERO DE SOLUTION
   ================================ */

.solution-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.solution-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.solution-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.solution-hero-tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   SECTION CONTENU
   ================================ */

.solution-content-section {
    padding: 4rem 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.solution-grid--full {
    grid-template-columns: 1fr;
}

.solution-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.content-block p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ================================
   FEATURES GRID
   ================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================
   SECTEURS
   ================================ */

.sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sector-badge {
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

    .sector-badge:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
    }

/* ================================
   SIDEBAR
   ================================ */

.solution-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 150px;
}

.stats-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

    .stats-card.card-gradient {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        color: white;
        border: none;
    }

    .stats-card h4,
    .highlight-card h4 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .stats-card.card-gradient h4 {
        color: white;
    }

.stat-item {
    padding: 1rem 0;
}

    .stat-item + .stat-item {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.stats-card:not(.card-gradient) .stat-value {
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stats-card.card-gradient .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.highlight-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

    .highlight-card h4 {
        color: var(--primary-dark);
    }

.highlight-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .highlight-list li {
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-medium);
    }

        .highlight-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

/* ================================
   MODULES & PILIERS
   ================================ */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.module-box {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .module-box:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

    .module-box h4 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }

    .module-box > p {
        color: var(--text-light);
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .module-box ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

        .module-box ul li {
            padding-left: 1.25rem;
            position: relative;
            color: var(--text-medium);
        }

            .module-box ul li::before {
                content: '→';
                position: absolute;
                left: 0;
                color: var(--accent);
            }

/* Power Platform Pillars */
.power-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pillar-card {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .pillar-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pillar-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.pillar-subtitle {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pillar-card > p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================
   ÉTAPES / APPROCHE
   ================================ */

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .step-item:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.step-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ================================
   CAS D'USAGE
   ================================ */

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.usecase-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .usecase-item:hover {
        background: white;
        border-color: var(--primary);
        box-shadow: var(--shadow-sm);
    }

    .usecase-item strong {
        display: block;
        color: var(--primary-dark);
        font-weight: 700;
        margin-bottom: 0.35rem;
    }

    .usecase-item p {
        color: var(--text-medium);
        font-size: 0.9rem;
        margin: 0;
    }

/* ================================
   OKTA EXPERTISE
   ================================ */

.okta-expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.expertise-card {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .expertise-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

.expertise-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expertise-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .expertise-card ul li {
        padding-left: 1.25rem;
        position: relative;
        color: var(--text-medium);
    }

        .expertise-card ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

/* ================================
   ARCHITECTURE PHASES
   ================================ */

.architecture-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.phase-card {
    padding: 2rem 1.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .phase-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
    }

    .phase-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.phase-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.15;
    margin-bottom: 0.5rem;
}

.phase-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.phase-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

    .phase-card ul li {
        padding-left: 1.25rem;
        position: relative;
        color: var(--text-medium);
        line-height: 1.5;
    }

        .phase-card ul li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent);
        }

/* ================================
   ACTIONS
   ================================ */

.solution-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ================================
   CTA FINAL
   ================================ */

.final-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

    .final-cta h2 {
        font-size: 2.25rem;
        font-weight: 800;
        margin-bottom: 1.25rem;
        color: white;
    }

    .final-cta p {
        font-size: 1.15rem;
        max-width: 700px;
        margin: 0 auto 2.5rem;
        opacity: 0.95;
        line-height: 1.7;
    }

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

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1200px) {
    /* Power pillars passe de 3 à 2 colonnes */
    .power-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Architecture phases en 2 colonnes */
    .architecture-phases {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-sidebar {
        position: static;
    }

    .approach-steps,
    .usecases-grid,
    .okta-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .power-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero--solutions h1 {
        font-size: 1.85rem;
    }

    .solutions-tabs-section {
        top: 65px;
    }

        /* Permettre aux onglets de dépasser du container */
        .solutions-tabs-section .container {
            padding: 0;
            max-width: 100%;
        }

    .solutions-tabs {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
        position: relative;
    }

        /* Gradient pour indiquer le scroll */
        .solutions-tabs::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 40px;
            background: linear-gradient(to left, var(--bg-primary), transparent);
            pointer-events: none;
        }

        /* Rendre la scrollbar visible sur mobile */
        .solutions-tabs::-webkit-scrollbar {
            display: block;
            height: 3px;
        }

        .solutions-tabs::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        .solutions-tabs::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

    .tab-btn {
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }

    .tab-title {
        font-size: 0.95rem;
    }

    .tab-subtitle {
        font-size: 0.75rem;
    }

    .tab-icon {
        font-size: 1.35rem;
    }

    .solution-hero h2 {
        font-size: 2rem;
    }

    .solution-hero-tagline {
        font-size: 1.1rem;
    }

    /* Tout en 1 colonne sur mobile */
    .features-grid,
    .modules-grid,
    .power-pillars,
    .okta-expertise-grid,
    .architecture-phases,
    .approach-steps,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        gap: 0.75rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }

    .final-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .solution-hero {
        padding: 2rem 0 1.5rem;
    }

    .content-block h3 {
        font-size: 1.5rem;
    }

    .solution-content-section {
        padding: 3rem 0;
    }

    .solution-main-content {
        gap: 2.5rem;
    }

    .hero--solutions h1 {
        font-size: 1.5rem;
    }

    .solution-hero h2 {
        font-size: 1.75rem;
    }

    .tab-icon {
        font-size: 1.25rem;
    }

    .feature-item,
    .pillar-card,
    .expertise-card,
    .phase-card {
        padding: 1.25rem;
    }

    /* S'assurer que le container a du padding sur mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .solution-hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
    }
}

/* === MODE MOBILE (Solutions) : désactiver les onglets et afficher tout === */
@media (max-width: 768px) {
    /* 1) Cacher complètement la barre d’onglets */
    .solutions-tabs-section {
        display: none !important; /* enlève les tabs sticky */
    }

    /* 2) Afficher toutes les sections de contenu */
    .tabs-content-wrapper .tab-panel {
        display: block !important; /* annule display:none / .active */
        animation: none !important; /* supprime le fadeIn */
    }

        /* 3) Séparer visuellement les blocs (optionnel) */
        .tabs-content-wrapper .tab-panel + .tab-panel {
            margin-top: 2rem;
            border-top: 1px solid var(--border-color);
            padding-top: 2rem;
        }
}
