/* Cas d'Usage Specific Styles */

/* Hero Section for Cases */
.hero-cases {
    min-height: 70vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    padding-top: 1rem;
}

.breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.breadcrumb span {
    opacity: 0.6;
    color: #94a3b8;
}

.hero-cases .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cases .hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    color: #cbd5e1;
}

.hero-cases .hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cases .stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
}

.hero-cases .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #06b6d4;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.hero-cases .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #e2e8f0;
}

/* Cases Grid Section */
.cases-grid-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

/* Case Cards */
.case-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.case-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.case-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Case Header */
.case-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.client-logo {
    width: 90px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.case-card:hover .client-logo img {
    filter: grayscale(0%);
}

.case-category {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    letter-spacing: 0.3px;
}

/* Case Content */
.case-content {
    padding: 0 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-client {
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-client::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    display: inline-block;
}

.case-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
    font-size: 0.95rem;
}

/* Case Metrics */
.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.case-card:hover .metric {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-size: 1.625rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

/* Case Link */
.case-link {
    display: block;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.case-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.case-link:hover::before {
    left: 100%;
}

.case-link:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
}

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

/* Navigation Active State */
.nav-menu a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Design - Amélioré */

/* Large screens */
@media (min-width: 1200px) {
    .hero-cases .hero-title {
        font-size: 4rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3rem;
    }
    
    .case-card {
        min-height: 600px;
    }
    
    .cta-content h2 {
        font-size: 3.5rem;
    }
}

/* Tablets landscape */
@media (max-width: 1024px) {
    .hero-cases {
        min-height: 65vh;
        padding-top: 5.5rem;
    }
    
    .hero-cases .hero-title {
        font-size: 3rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .case-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .case-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    .hero-cases {
        min-height: 60vh;
        text-align: center;
        padding-top: 5rem;
    }
    
    .breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 2rem;
        font-size: 0.85rem;
    }
    
    .hero-cases .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-cases .hero-description {
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto 2.5rem;
    }
    
    .hero-cases .hero-stats {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cases .stat {
        min-width: 120px;
        padding: 0.875rem;
    }
    
    .hero-cases .stat-number {
        font-size: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .client-logo {
        order: 1;
        width: 80px;
        height: 50px;
    }
    
    .case-category {
        order: 2;
    }
    
    .case-content {
        padding: 0 1.5rem 1.5rem;
        text-align: left;
    }
    
    .case-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric {
        padding: 1rem;
    }
    
    .case-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Large phones */
@media (max-width: 600px) {
    .hero-cases {
        padding-top: 4.5rem;
        min-height: 55vh;
    }
    
    .hero-cases .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-cases .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cases .hero-stats {
        gap: 1rem;
    }
    
    .hero-cases .stat {
        min-width: 110px;
        padding: 0.75rem;
    }
    
    .hero-cases .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-cases .stat-label {
        font-size: 0.875rem;
    }
    
    .cases-grid {
        gap: 1.5rem;
    }
    
    .case-card {
        border-radius: 16px;
    }
    
    .case-header {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .client-logo {
        width: 70px;
        height: 45px;
    }
    
    .case-category {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .case-content {
        padding: 0 1.25rem 1.25rem;
    }
    
    .case-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .case-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .metric {
        padding: 0.875rem 0.5rem;
    }
    
    .metric-value {
        font-size: 1.375rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .case-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-cases {
        padding-top: 4rem;
        min-height: 50vh;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cases .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-cases .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cases .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .hero-cases .stat {
        width: 100%;
        min-width: auto;
        padding: 0.75rem;
    }
    
    .hero-cases .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cases .stat-label {
        font-size: 0.8rem;
    }
    
    .cases-grid {
        gap: 1.25rem;
    }
    
    .case-card {
        border-radius: 12px;
        margin: 0;
    }
    
    .case-header {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .client-logo {
        width: 60px;
        height: 40px;
        padding: 0.5rem;
    }
    
    .case-category {
        padding: 0.4rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .case-content {
        padding: 0 1rem 1rem;
    }
    
    .case-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }
    
    .case-client {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .case-description {
        font-size: 0.825rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .case-metrics {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .metric {
        padding: 0.75rem 0.375rem;
        border-radius: 8px;
    }
    
    .metric-value {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .case-link {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-cases {
        padding: 3.5rem 0.5rem 2rem;
    }
    
    .hero-cases .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-cases .hero-description {
        font-size: 0.9rem;
    }
    
    .case-header {
        padding: 0.875rem;
    }
    
    .case-content {
        padding: 0 0.875rem 0.875rem;
    }
    
    .case-content h3 {
        font-size: 1rem;
    }
    
    .case-description {
        font-size: 0.8rem;
    }
    
    .metric {
        padding: 0.625rem 0.25rem;
    }
    
    .metric-value {
        font-size: 1.125rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .case-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.875rem;
    }
}

/* Hover effects enhancement */
@media (hover: hover) {
    .case-card:hover .client-logo {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .case-card:hover .case-category {
        background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
    }
}

/* Touch devices optimization */
@media (pointer: coarse) {
    .case-link {
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .case-card {
        border: 2px solid #000;
    }
    
    .case-category {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .metric {
        border: 1px solid #666;
    }
    
    .metric-value {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .case-card {
        animation: none;
    }
    
    .case-card,
    .metric,
    .case-link,
    .client-logo,
    .case-category {
        transition: none;
    }
    
    .case-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .hero-cases {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
    }
    
    .breadcrumb,
    .cta-section,
    .case-link {
        display: none !important;
    }
    
    .case-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .case-category {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Animation Effects */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }
.case-card:nth-child(5) { animation-delay: 0.5s; }
.case-card:nth-child(6) { animation-delay: 0.6s; }
.case-card:nth-child(7) { animation-delay: 0.7s; }
.case-card:nth-child(8) { animation-delay: 0.8s; }
.case-card:nth-child(9) { animation-delay: 0.9s; }
.case-card:nth-child(10) { animation-delay: 1.0s; }
.case-card:nth-child(11) { animation-delay: 1.1s; }
.case-card:nth-child(12) { animation-delay: 1.2s; }

/* Focus States for Accessibility */
.case-link:focus {
    outline: 3px solid #06b6d4;
    outline-offset: 2px;
}

.breadcrumb a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 4px;
} 