/* Fluent Design System CSS by Microsoft */

/* Variables */
:root {
    /* Colors */
    --fluent-primary: #0078d4;
    --fluent-primary-dark: #106ebe;
    --fluent-primary-light: #2b88d8;
    --fluent-secondary: #2b2b2b;
    --fluent-background: #faf9f8;
    --fluent-surface: #ffffff;
    --fluent-text-primary: #323130;
    --fluent-text-secondary: #605e5c;
    --fluent-text-disabled: #a19f9d;
    --fluent-divider: #edebe9;
    --fluent-error: #a4262c;

    /* Depth effects */
    --fluent-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --fluent-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --fluent-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);

    /* Spacing */
    --fluent-space-xs: 4px;
    --fluent-space-sm: 8px;
    --fluent-space-md: 16px;
    --fluent-space-lg: 24px;
    --fluent-space-xl: 32px;
    --fluent-space-xxl: 48px;

    /* Border radius */
    --fluent-radius-sm: 2px;
    --fluent-radius-md: 4px;
    --fluent-radius-lg: 8px;

    /* Font sizes */
    --fluent-font-size-xs: 12px;
    --fluent-font-size-sm: 14px;
    --fluent-font-size-md: 16px;
    --fluent-font-size-lg: 20px;
    --fluent-font-size-xl: 28px;
    --fluent-font-size-xxl: 42px;

    /* Animation */
    --fluent-transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--fluent-text-primary);
    background-color: var(--fluent-background);
    font-size: var(--fluent-font-size-md);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--fluent-space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1, .fluent-title {
    font-size: var(--fluent-font-size-xxl);
    margin-bottom: var(--fluent-space-lg);
}

h2, .section-title {
    font-size: var(--fluent-font-size-xl);
    margin-bottom: var(--fluent-space-lg);
    position: relative;
    padding-bottom: var(--fluent-space-sm);
}

h2:after, .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--fluent-primary);
}

h3 {
    font-size: var(--fluent-font-size-lg);
    margin-bottom: var(--fluent-space-md);
}

p {
    margin-bottom: var(--fluent-space-md);
}

a {
    color: var(--fluent-primary);
    text-decoration: none;
    transition: var(--fluent-transition);
}

a:hover {
    color: var(--fluent-primary-dark);
}

.fluent-subtitle {
    font-size: var(--fluent-font-size-lg);
    color: var(--fluent-text-secondary);
    margin-bottom: var(--fluent-space-xl);
}

/* Header and Nav */
.fluent-header {
    background-color: var(--fluent-surface);
    box-shadow: var(--fluent-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--fluent-space-md) 0;
}

.fluent-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: var(--fluent-space-sm);
}

.logo-img-small {
    height: 30px;
    margin-right: var(--fluent-space-sm);
}

.logo-text {
    font-size: var(--fluent-font-size-lg);
    font-weight: 600;
    color: var(--fluent-text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--fluent-space-lg);
}

.nav-links a {
    color: var(--fluent-text-secondary);
    padding: var(--fluent-space-sm) 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--fluent-primary);
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fluent-primary);
}

/* Buttons */
.fluent-button {
    font-family: 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fluent-space-sm) var(--fluent-space-lg);
    border-radius: var(--fluent-radius-md);
    font-size: var(--fluent-font-size-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--fluent-transition);
    border: none;
    outline: none;
}

.fluent-button.primary {
    background-color: var(--fluent-primary);
    color: white;
}

.fluent-button.primary:hover {
    background-color: var(--fluent-primary-dark);
    box-shadow: var(--fluent-shadow-md);
}

.fluent-button.secondary {
    background-color: transparent;
    color: var(--fluent-text-primary);
    border: 1px solid var(--fluent-divider);
}

.fluent-button.secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: var(--fluent-shadow-sm);
}

.fluent-button i {
    margin-left: var(--fluent-space-sm);
}

/* Hero Section */
.hero-section {
    padding: var(--fluent-space-xxl) 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: var(--fluent-space-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Cards */
.fluent-card {
    background-color: var(--fluent-surface);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-md);
    overflow: hidden;
    transition: var(--fluent-transition);
    margin-bottom: var(--fluent-space-lg);
}

.fluent-card:hover {
    box-shadow: var(--fluent-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--fluent-space-md) var(--fluent-space-lg);
    border-bottom: 1px solid var(--fluent-divider);
}

.card-body {
    padding: var(--fluent-space-lg);
}

.fluent-card.large {
    margin-bottom: var(--fluent-space-xl);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--fluent-space-lg);
    margin-top: var(--fluent-space-xl);
}

/* Carousel Styles */
.carousel-container {
    margin-top: var(--fluent-space-xl);
    position: relative;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--fluent-space-lg);
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--fluent-radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--fluent-space-lg);
}

.carousel-slide {
    flex: 0 0 calc(33.333% - var(--fluent-space-lg));
    margin-bottom: 0;
    transition: var(--fluent-transition);
}

.carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-lg);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--fluent-surface);
    border: 2px solid var(--fluent-primary);
    color: var(--fluent-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--fluent-transition);
    z-index: 10;
    box-shadow: var(--fluent-shadow-md);
    font-size: 20px;
}

.carousel-btn:hover {
    background-color: var(--fluent-primary);
    color: white;
    box-shadow: var(--fluent-shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -24px;
}

.carousel-btn-next {
    right: -24px;
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    visibility: visible;
}

.carousel-btn:disabled:hover {
    background-color: var(--fluent-surface);
    color: var(--fluent-primary);
    box-shadow: var(--fluent-shadow-md);
}

.carousel-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--fluent-space-sm);
    margin-top: var(--fluent-space-lg);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--fluent-divider);
    background-color: transparent;
    cursor: pointer;
    transition: var(--fluent-transition);
}

.indicator:hover {
    border-color: var(--fluent-primary);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--fluent-primary);
    border-color: var(--fluent-primary);
}

/* Analytics Section */
.analytics-section {
    padding: var(--fluent-space-xxl) 0;
    background-color: var(--fluent-background);
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--fluent-space-md);
    background-color: var(--fluent-surface);
    border-radius: var(--fluent-radius-md);
    overflow: hidden;
}

/* Add styles for canvas element */
.chart-placeholder canvas {
    width: 100% !important;
    height: 100% !important;
    padding: var(--fluent-space-sm);
}

.chart-placeholder img {
    max-width: 100%;
    max-height: 280px;
}

.chart-description {
    color: var(--fluent-text-secondary);
}

/* Sélecteur d'analyses */
.analysis-selector {
    margin-top: var(--fluent-space-lg);
    margin-bottom: var(--fluent-space-xl);
}

.fluent-tabs {
    display: flex;
    border-bottom: 2px solid var(--fluent-divider);
    margin-bottom: var(--fluent-space-md);
}

.tab-button {
    font-family: 'Segoe UI', sans-serif;
    background: none;
    border: none;
    padding: var(--fluent-space-sm) var(--fluent-space-lg);
    font-size: var(--fluent-font-size-md);
    color: var(--fluent-text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--fluent-transition);
    font-weight: 500;
}

.tab-button:hover {
    color: var(--fluent-primary);
}

.tab-button.active {
    color: var(--fluent-primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fluent-primary);
}

.analysis-desc {
    display: none;
    padding: var(--fluent-space-md);
    background-color: var(--fluent-surface);
    border-radius: var(--fluent-radius-md);
    box-shadow: var(--fluent-shadow-sm);
}

.analysis-desc.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.analysis-desc p {
    font-size: var(--fluent-font-size-lg);
    font-weight: 600;
    color: var(--fluent-text-primary);
    margin: 0;
    line-height: 1.4;
}

.analysis-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.analysis-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-in-out forwards;
}

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

/* Placeholder pour les futurs graphiques de l'analyse 2 */
.placeholder-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--fluent-text-secondary);
}

.placeholder-chart i {
    font-size: 32px;
    margin-bottom: var(--fluent-space-sm);
    color: var(--fluent-primary);
}

.placeholder-chart p {
    margin-bottom: 0;
    font-size: var(--fluent-font-size-sm);
}

/* Video Section */
.video-section {
    padding: var(--fluent-space-xxl) 0;
    background-color: var(--fluent-background);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--fluent-space-xl);
    margin-top: var(--fluent-space-xl);
}

.video-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-lg);
}

.video-container {
    margin-bottom: var(--fluent-space-lg);
}

.video-container.vertical {
    aspect-ratio: 9/16; /* Format vertical pour smartphones */
    max-height: 500px;
}

.video-container.vertical video {
    width: 100%;
    height: 100%;
    border-radius: var(--fluent-radius-md);
    object-fit: cover;
    transition: var(--fluent-transition);
    box-shadow: var(--fluent-shadow-md);
}

.video-container.vertical video:hover {
    box-shadow: var(--fluent-shadow-lg);
    transform: scale(1.02);
}

/* Optimisation plein écran pour vidéos verticales */
.video-container.vertical video:fullscreen {
    width: auto !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #000;
}

.video-container.vertical video:-webkit-full-screen {
    width: auto !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #000;
}

.video-container.vertical video:-moz-full-screen {
    width: auto !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #000;
}

.video-container.vertical video:-ms-fullscreen {
    width: auto !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #000;
}

.video-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    height: 300px;
    border-radius: var(--fluent-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--fluent-transition);
}

.video-placeholder.vertical {
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px dashed var(--fluent-primary);
    border-opacity: 0.3;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    cursor: pointer;
}

.video-placeholder.vertical:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    border-color: var(--fluent-primary);
}

.video-placeholder i {
    font-size: 48px;
    color: var(--fluent-primary);
    margin-bottom: var(--fluent-space-md);
    transition: var(--fluent-transition);
}

.video-placeholder.vertical i {
    font-size: 64px;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    color: var(--fluent-primary-dark);
}

.video-placeholder p {
    margin-top: var(--fluent-space-sm);
    color: var(--fluent-text-primary);
    font-weight: 500;
    margin-bottom: var(--fluent-space-xs);
}

.video-placeholder small {
    color: var(--fluent-text-secondary);
    font-size: var(--fluent-font-size-sm);
    text-align: center;
    margin-top: var(--fluent-space-xs);
}

.video-description {
    padding-top: var(--fluent-space-md);
    border-top: 1px solid var(--fluent-divider);
}

.video-description p {
    color: var(--fluent-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Certificates Section */
.certificates-section {
    padding: var(--fluent-space-xxl) 0;
    background-color: var(--fluent-surface);
}

.section-subtitle {
    font-size: var(--fluent-font-size-lg);
    color: var(--fluent-text-secondary);
    margin-bottom: var(--fluent-space-xl);
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--fluent-space-lg);
    margin-bottom: var(--fluent-space-xxl);
}

.certificate-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-lg);
}

.certificate-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--fluent-space-lg);
    padding: var(--fluent-space-md) var(--fluent-space-md) 0;
}

.certificate-icon {
    margin-right: var(--fluent-space-md);
}

.certificate-icon i {
    font-size: 2rem;
    color: var(--fluent-primary);
}

.certificate-header h3 {
    margin: 0;
    color: var(--fluent-text-primary);
    font-size: var(--fluent-font-size-lg);
}

.certificate-info {
    margin-bottom: var(--fluent-space-lg);
}

.certificate-title {
    font-weight: 600;
    color: var(--fluent-text-primary);
    margin-bottom: var(--fluent-space-xs);
    font-size: var(--fluent-font-size-md);
}

.certificate-platform {
    color: var(--fluent-primary);
    margin-bottom: var(--fluent-space-xs);
    font-weight: 500;
}

.certificate-date {
    color: var(--fluent-text-secondary);
    font-size: var(--fluent-font-size-sm);
    margin-bottom: 0;
}

.certificate-actions {
    display: flex;
    justify-content: center;
}

.certificate-actions .fluent-button {
    min-width: 180px;
}

.certification-info {
    margin-top: var(--fluent-space-xxl);
}

.certification-skills {
    list-style: none;
    margin: var(--fluent-space-lg) 0;
}

.certification-skills li {
    display: flex;
    align-items: center;
    margin-bottom: var(--fluent-space-sm);
    color: var(--fluent-text-primary);
}

.certification-skills li i {
    color: var(--fluent-primary);
    margin-right: var(--fluent-space-sm);
    font-size: var(--fluent-font-size-md);
}

/* Footer */
.fluent-footer {
    background-color: var(--fluent-secondary);
    color: white;
    padding: var(--fluent-space-xl) 0 var(--fluent-space-lg);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--fluent-space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--fluent-space-lg);
}

.footer-links {
    margin-bottom: var(--fluent-space-lg);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: var(--fluent-space-lg);
    align-items: center;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
}

.footer-social a {
    color: white;
    font-size: 20px;
    margin-left: var(--fluent-space-md);
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
}

/* Styles pour la section des outils open source */
.open-source-tools {
    margin-bottom: var(--fluent-space-lg);
    max-width: 100%;
    text-align: center;
}

.open-source-tools h4 {
    font-size: var(--fluent-font-size-md);
    margin-bottom: var(--fluent-space-sm);
    color: white;
    opacity: 0.9;
}

.open-source-tools ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--fluent-space-md);
}

.open-source-tools li {
    color: white;
    opacity: 0.7;
    font-size: var(--fluent-font-size-sm);
    transition: var(--fluent-transition);
}

.open-source-tools a {
    color: white;
    opacity: 0.9;
    text-decoration: underline;
}

.open-source-tools a:hover {
    opacity: 1;
}

/* Sources Used Section */
.sources-used {
    margin-bottom: var(--fluent-space-lg);
    max-width: 100%;
    text-align: center;
}

.sources-used h4 {
    font-size: var(--fluent-font-size-md);
    margin-bottom: var(--fluent-space-sm);
    color: white;
    opacity: 0.9;
}

.sources-used ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fluent-space-sm);
}

.sources-used li {
    color: white;
    opacity: 0.7;
    font-size: var(--fluent-font-size-sm);
    transition: var(--fluent-transition);
    max-width: 800px;
    line-height: 1.5;
}

.sources-used li strong {
    color: white;
    opacity: 0.9;
    font-weight: 600;
}

.sources-used a {
    color: white;
    opacity: 0.9;
    text-decoration: underline;
}

.sources-used a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--fluent-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--fluent-font-size-sm);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: var(--fluent-space-xl);
    }

    .hero-image {
        max-width: 100%;
        margin-left: 0;
    }

    .carousel-slide {
        flex: 0 0 calc(50% - var(--fluent-space-lg) / 2);
    }
    
    .carousel-btn-prev {
        left: -20px;
    }
    
    .carousel-btn-next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .fluent-nav {
        flex-direction: column;
    }

    .logo {
        margin-bottom: var(--fluent-space-lg);
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links li {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links ul {
        flex-direction: column;
        gap: var(--fluent-space-sm);
        align-items: flex-start;
    }
    
    .footer-links li {
        margin-bottom: var(--fluent-space-sm);
    }

    .footer-social {
        margin-top: var(--fluent-space-lg);
    }

    .footer-social a:first-child {
        margin-left: 0;
    }
    
    .fluent-tabs {
        overflow-x: auto;
    }

    .open-source-tools ul {
        display: block;
        text-align: center;
    }
    
    .sources-used ul {
        align-items: center;
    }
    
    .sources-used li {
        text-align: center;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: var(--fluent-space-md);
    }
    
    .certificate-header {
        padding: var(--fluent-space-md) var(--fluent-space-md) 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: var(--fluent-space-lg);
    }
    
    .video-container.vertical {
        max-height: 400px;
    }
    
    .video-placeholder.vertical {
        min-height: 350px;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-btn-prev {
        left: -16px;
    }
    
    .carousel-btn-next {
        right: -16px;
    }
    
    .carousel-track {
        gap: var(--fluent-space-md);
    }
}

/* Analysis Summary Section */
.analysis-summary {
    margin-top: var(--fluent-space-xl);
}

.analysis-summary .fluent-card {
    max-width: 100%;
}

.analysis-summary .card-body p {
    text-align: justify;
    line-height: 1.6;
}

.analysis-summary .card-body p .highlight {
    color: var(--fluent-primary);
    font-weight: 700;
    background-color: rgba(0, 120, 212, 0.1);
    padding: 2px 6px;
    border-radius: var(--fluent-radius-sm);
}

.analysis-summary .card-body p strong {
    color: var(--fluent-primary);
}

.analysis-summary .card-body p:last-child {
    margin-bottom: 0;
} 