:root {
    --primary: #03045e;
    --primary-dark: #0077B6;
    --primary-light: #48CAE4;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --light: #CAF0F8;
    --white: #ffffff;
    --success: #10b981;
    --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.wakelet.com/resize?id=DQRyNSq5zoSxBnV6NIS2R&w=1600&h=actual&q=85') 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;
    max-width: 800px;
}

.intro-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 168, 232, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 119, 182, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.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, 44px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.intro-content h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.intro-content p {
    font-size: clamp(15px, 3vw, 18px);
    color: var(--gray);
    line-height: 1.8;
    font-weight: 400;
    max-width: 850px;
    margin: 30px auto 0;
}

.stats-section {
    padding: 60px 0 80px;
    background: white;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 45px rgba(3, 4, 94, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--light), #a7e9f8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    transition: all 0.4s;
}

.stat-item:hover .stat-icon {
    transform: rotateY(360deg) scale(1.1);
    background: var(--gradient);
    color: white;
}

.stat-number {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: clamp(14px, 3vw, 17px);
    color: var(--gray);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.reference-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.reference-card:hover::before {
    transform: scaleX(1);
}

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

.card-header {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(3, 4, 94, 0.03), transparent 70%);
}

.reference-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.reference-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.reference-card:hover .reference-logo img {
    transform: scale(1.08);
}

.reference-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 70px;
    position: relative;
    z-index: 2;
}

.reference-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    z-index: 3;
}

.card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reference-name {
    font-size: clamp(19px, 4vw, 24px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0;
}

.reference-description {
    color: var(--gray);
    line-height: 1.7;
    font-size: clamp(13px, 2.5vw, 15px);
}

.description-short,
.description-full {
    margin-bottom: 8px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s;
}

.btn-read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.btn-read-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.reference-prestations {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 22px;
    border-radius: 14px;
    border-left: 4px solid var(--primary);
    margin: 0;
}

.reference-prestations h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reference-prestations h4 i {
    color: var(--primary);
    font-size: 14px;
}

.reference-prestations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-prestations ul li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    font-size: clamp(12px, 2.5vw, 14px);
    border-bottom: 1px solid rgba(3, 4, 94, 0.06);
    transition: all 0.3s;
}

.reference-prestations ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reference-prestations ul li:hover {
    padding-left: 5px;
    color: var(--dark);
}

.reference-prestations ul li i {
    color: var(--success);
    margin-top: 2px;
    font-size: 11px;
    flex-shrink: 0;
}

.card-footer {
    padding: 0 28px 28px;
    margin-top: auto;
}

.btn-site {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(3, 4, 94, 0.25);
}

.btn-site:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 4, 94, 0.35);
}

.btn-site i {
    font-size: 14px;
}

.no-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.no-link i {
    font-size: 16px;
}

.no-references {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.no-references h3 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.no-references p {
    font-size: clamp(14px, 3vw, 17px);
    color: var(--gray);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    color: var(--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: 800px;
    margin: 0 auto;
}

.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, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: clamp(15px, 3vw, 19px);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.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: var(--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: var(--white);
    border: 2px solid var(--white);
}

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

@media (max-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .intro-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 50px 0 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .references-section {
        padding: 60px 0;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card-header {
        height: 170px;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .card-footer {
        padding: 0 24px 24px;
    }
    
    .reference-prestations {
        padding: 20px;
    }
    
    .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;
    }
    
    .card-header {
        height: 150px;
        padding: 20px;
    }
    
    .reference-logo-placeholder {
        font-size: 60px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-footer {
        padding: 0 20px 20px;
    }
    
    .reference-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}