:root {
    --primary: #03045e;
    --primary-dark: #0077B6;
    --primary-light: #48CAE4;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --light: #CAF0F8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
    --shadow: 0 10px 40px rgba(0, 168, 232, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 168, 232, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.95) 0%, rgba(0, 119, 182, 0.90) 100%),
                url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920') center/cover fixed;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255, 255, 255, 0.03) 60px, rgba(255, 255, 255, 0.03) 120px);
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 6px;
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.page-title {
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 800;
    color: white;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out 0.4s both;
    opacity: 0;
}

.intro-section {
    padding: 70px 0;
    background: white;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--light), #a7e9f8);
    color: var(--primary);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.intro-content h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.intro-content p {
    font-size: clamp(15px, 3vw, 18px);
    color: var(--gray);
    line-height: 1.8;
}

.logiciels-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.logiciels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.logiciel-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 2px solid transparent;
}

.logiciel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(3, 4, 94, 0.2);
    border-color: var(--primary-light);
}

.logiciel-header {
    background: var(--gradient);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.logiciel-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid var(--primary-dark);
}

.logiciel-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s;
}

.logiciel-card:hover .logiciel-icon {
    transform: scale(1.15) rotate(360deg);
    border-color: rgba(255, 255, 255, 0.5);
}

.logiciel-header h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.logiciel-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logiciel-description {
    font-size: clamp(13px, 2.5vw, 14px);
    color: var(--gray);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logiciel-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.meta-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s;
}

.meta-item:hover {
    background: rgba(72, 202, 228, 0.1);
    transform: translateX(4px);
}

.meta-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--light), #a7e9f8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.meta-item:hover .meta-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.meta-label {
    font-size: clamp(11px, 2vw, 12px);
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: clamp(13px, 2.5vw, 14px);
    color: var(--dark);
    font-weight: 600;
}

.meta-link {
    font-size: clamp(13px, 2.5vw, 14px);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.meta-link i {
    font-size: 11px;
}

.logiciel-footer {
    padding: 0 24px 24px;
}

.btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--light), #a7e9f8);
    color: var(--primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(13px, 2.5vw, 15px);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-info:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 4, 94, 0.3);
}

.no-logiciels {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light), #a7e9f8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary);
    margin: 0 auto 28px;
    opacity: 0.6;
}

.no-logiciels h3 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.no-logiciels p {
    font-size: clamp(15px, 3vw, 18px);
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(3, 4, 94, 0.25);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(3, 4, 94, 0.35);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    animation: ctaGlow 6s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: clamp(15px, 3vw, 20px);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
}

@media (max-width: 1400px) {
    .logiciels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .logiciels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .intro-section {
        padding: 60px 0;
    }
    
    .logiciels-section {
        padding: 60px 0;
    }
    
    .logiciels-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .logiciel-description {
        -webkit-line-clamp: 4;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 50px;
    }
    
    .intro-section {
        padding: 50px 0;
    }
    
    .logiciel-header {
        padding: 28px 20px;
    }
    
    .logiciel-body {
        padding: 24px 20px;
    }
    
    .logiciel-footer {
        padding: 0 20px 20px;
    }
    
    .meta-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .no-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .cta-icon {
        width: 75px;
        height: 75px;
        font-size: 36px;
    }
}