/* Styles principaux pour le site SOC Bancaire */

:root {
    --primary: #003366;
    --secondary: #0077b6;
    --accent: #ff9e00;
    --light: #f5f5f5;
    --dark: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    background-color: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

section {
    padding: 4rem 0;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
}

.hero {
    background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e08c00;
}

.btn-sm {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-sm:hover {
    background-color: #005f92;
}

.story-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.story-section h2 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.story-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Section Réglementations */
.regulations {
    background-color: #f9f9f9;
}

.regulation-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.regulation-card:nth-child(1) { border-left: 4px solid #003366; }
.regulation-card:nth-child(2) { border-left: 4px solid #0077b6; }
.regulation-card:nth-child(3) { border-left: 4px solid #00a8e8; }
.regulation-card:nth-child(4) { border-left: 4px solid #ff9e00; }
.regulation-card:nth-child(5) { border-left: 4px solid #ff6700; }
.regulation-card:nth-child(6) { border-left: 4px solid #dc3545; }

.regulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.regulation-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.regulation-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
}

.regulation-details ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.regulation-details li {
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -17px;
}

.right::after {
    left: -17px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary);
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

.timeline-content.highlight {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent);
}

/* Section Bénéfices */
.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.benefit-card {
    flex-basis: calc(33.333% - 2rem);
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-detail {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
    display: none;
}

.benefit-card:hover .benefit-detail {
    display: block;
}

.benefit-detail ul {
    padding-left: 1.5rem;
}

.benefit-detail li {
    margin-bottom: 0.5rem;
}

/* Solution Pillars */
.solution-pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.pillar {
    flex-basis: calc(25% - 2rem);
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.pillar h3 {
    margin-bottom: 0.5rem;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    flex-basis: 200px;
    margin: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #333;
}

/* Section Contrôles CISO */
.controles-section {
    background-color: #f0f4f8;
    padding: 3rem 0;
}

.controls-dashboard {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    overflow: hidden;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.dashboard-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary);
}

.wide-card {
    grid-column: span 2;
}

.control-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.control-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.control-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.control-metrics {
    margin-top: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.metric-name {
    flex: 1;
    font-size: 0.9rem;
    margin-right: 1rem;
    color: #555;
}

.metric-bar {
    flex: 2;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.metric-fill {
    height: 100%;
    background-color: var(--secondary);
    border-radius: 4px;
}

.special-fill {
    background: linear-gradient(to right, #0077b6, #00b4d8);
}

.metric-value {
    font-weight: bold;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.incidents-table {
    width: 100%;
    margin-top: 1rem;
}

.table-header {
    display: flex;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: #f5f5f5;
}

.table-cell {
    padding: 10px;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incident-type {
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
}

.high {
    background-color: #dc3545;
}

.medium {
    background-color: #fd7e14;
}

.low {
    background-color: #0dcaf0;
}

.status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.resolved {
    background-color: #198754;
    color: white;
}

.in-progress {
    background-color: #fd7e14;
    color: white;
}

.pending {
    background-color: #6c757d;
    color: white;
}

.compliance-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.compliant {
    background-color: #198754;
    color: white;
}

.non-compliant {
    background-color: #dc3545;
    color: white;
}

.dashboard-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.dashboard-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* SIEM Dashboard Styles */
.siem-dashboard {
    background-color: #1a2233 !important;
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #00b4d8 !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.siem-dashboard h3 {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.siem-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.siem-tab {
    flex: 1;
    text-align: center;
    padding: 0.8rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.siem-tab:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.siem-tab.active {
    background-color: rgba(0, 119, 182, 0.3);
    color: #ffffff;
    border-bottom: 2px solid #00b4d8;
}

.siem-content {
    display: none;
    margin-top: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
}

.siem-content.active {
    display: block;
}

/* Alerts Tab */
.siem-alerts-header {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 4px 4px 0 0;
    font-size: 0.85rem;
}

.siem-alerts-body {
    margin-top: 0.25rem;
}

.alert-row {
    display: flex;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.alert-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.alert-severity, .alert-source, .alert-desc, .alert-time, .alert-status {
    padding: 0 0.5rem;
}

.alert-severity {
    flex: 0 0 10%;
}

.alert-source {
    flex: 0 0 15%;
}

.alert-desc {
    flex: 1;
}

.alert-time {
    flex: 0 0 10%;
    text-align: center;
}

.alert-status {
    flex: 0 0 12%;
    text-align: center;
}

.severity-high, .severity-medium, .severity-low {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
}

.severity-high {
    background-color: #dc3545;
    color: white;
}

.severity-medium {
    background-color: #fd7e14;
    color: white;
}

.severity-low {
    background-color: #0dcaf0;
    color: white;
}

.status-new, .status-investigating, .status-resolved {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.status-new {
    background-color: #6610f2;
    color: white;
}

.status-investigating {
    background-color: #fd7e14;
    color: white;
}

.status-resolved {
    background-color: #198754;
    color: white;
}

/* Logs Tab */
.siem-log-filters {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.log-filter {
    margin-right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

.log-filter:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.log-filter.active {
    background-color: rgba(0, 119, 182, 0.3);
    color: #ffffff;
}

.siem-log-display {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.log-line {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-time {
    color: #adb5bd;
    margin-right: 0.5rem;
}

.log-level {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 0.7rem;
}

.log-level.error {
    background-color: #dc3545;
    color: white;
}

.log-level.warning {
    background-color: #fd7e14;
    color: white;
}

.log-level.info {
    background-color: #0dcaf0;
    color: white;
}

.log-service {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Trends Tab */
.siem-trends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.trend-item {
    flex: 1;
    min-width: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem;
}

.trend-item h4 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    padding: 0 0.5rem;
}

.trend-bar {
    width: 14%;
    background: linear-gradient(to top, #0077b6, #00b4d8);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease-out;
}

.trend-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.trend-pie {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: #333;
    overflow: hidden;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 100%;
    left: 0;
    top: 0;
}

.pie-segment.critical {
    background-color: #dc3545;
    transform: rotate(0) skewY(calc(var(--segment-size) * 3.6deg));
}

.pie-segment.high {
    background-color: #fd7e14;
    transform: rotate(calc(var(--segment-size) * 3.6deg)) skewY(calc(var(--segment-size) * 3.6deg));
}

.pie-segment.medium {
    background-color: #ffc107;
    transform: rotate(calc((var(--segment-size) + 25) * 3.6deg)) skewY(calc(var(--segment-size) * 3.6deg));
}

.pie-segment.low {
    background-color: #0dcaf0;
    transform: rotate(calc((var(--segment-size) + 60) * 3.6deg)) skewY(calc(var(--segment-size) * 3.6deg));
}

.pie-center {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: #1a2233;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.trend-rules {
    margin-top: 1rem;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.rule-count {
    font-weight: bold;
    background-color: rgba(0, 119, 182, 0.3);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Overlay for realtime indicator */
.siem-overlay {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.realtime-indicator {
    display: flex;
    align-items: center;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00b4d8;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
    }
}

.siem-timestamp {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Data Integration Section Styles */
.data-integration-section {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.data-integration-section h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

.data-integration-section h3 i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.data-integration-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.data-integration-text {
    flex: 3;
    min-width: 300px;
}

.data-intro {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    font-style: italic;
}

.data-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-feature {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.data-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.data-feature h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.data-feature h4 i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.data-feature p {
    margin-bottom: 1rem;
}

.data-feature ul {
    list-style-type: none;
    padding-left: 0;
}

.data-feature li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.data-feature li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.data-feature li strong {
    color: var(--primary);
}

.data-integration-diagram {
    flex: 2;
    min-width: 300px;
    position: relative;
    height: 400px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,51,102,0.5);
}

.center-icon {
    color: white;
    text-align: center;
}

.center-icon i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.center-icon span {
    font-weight: bold;
    font-size: 1.2rem;
}

.diagram-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(0,119,182,0.3);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    margin-top: -35px;
    margin-left: -35px;
    transform: rotate(calc(var(--angle))) translateX(170px) rotate(calc(-1 * var(--angle)));
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: counter-rotate 60s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(var(--angle)) translateX(170px) rotate(calc(-1 * var(--angle))); }
    to { transform: rotate(calc(360deg + var(--angle))) translateX(170px) rotate(calc(-1 * (360deg + var(--angle)))); }
}

.orbit-icon {
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    border: 2px solid var(--secondary);
}

.orbit-item span {
    background-color: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.diagram-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 0;
}

.data-benefits {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 1.5rem;
}

.data-benefit {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.data-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.data-benefit h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.data-benefit p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* Section Études de Cas */
.case-studies {
    background-color: #f9f9f9;
}

.case-study-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.case-study-card {
    flex-basis: calc(33.333% - 2rem);
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.case-study-icon {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.case-study-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.case-study-challenge {
    margin-bottom: 0.5rem;
    color: #dc3545;
}

.case-study-solution {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.case-study-result {
    margin-bottom: 1rem;
    color: #28a745;
}

.case-study-card button {
    display: block;
    margin: 0 auto;
}

.testimonial {
    font-style: italic;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--secondary);
    margin: 30px 0;
    border-radius: 5px;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary);
}

.case-study-details {
    margin-top: 1rem;
}

.case-section {
    margin-bottom: 2rem;
}

.case-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.case-section ul, .case-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.case-section li {
    margin-bottom: 0.5rem;
}

.case-section blockquote {
    font-style: italic;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--accent);
    margin: 1rem 0;
}

.case-section cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9e9e9;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background-color: var(--primary);
    color: white;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 15px;
    display: none;
    background-color: white;
    border-radius: 0 0 5px 5px;
    border: 1px solid #e9e9e9;
    border-top: none;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 2rem 0;
}

.contact-card {
    flex-basis: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
}

.contact-form-container h3 {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex-basis: 250px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Invalid Form Control */
.invalid {
    border-color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .benefit-card, .case-study-card, .pillar {
        flex-basis: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 15px;
    }
    
    .left::after, .right::after {
        left: 15px;
    }
    
    .right {
        left: 0;
    }
    
    .benefit-card, .case-study-card, .pillar, .contact-card {
        flex-basis: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .social-icons {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .stat-item {
        flex-basis: 100%;
    }
}