/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: #727272;
    background: white;
    overflow-x: hidden;
}

/* Variables CSS */
:root {
    --primary: #3F3F3F;
    --secondary: #CCCCCC;
    --text: #727272;
    --accent: #FF9A01;
    --white: #FFFFFF;
    --peach: #FFBD9A;
    --light: #F9FAFD;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--light);
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* GRILLE UNIFIÉE */
.unified-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-template-columns: 1fr;
}

/* Tablette : 2 colonnes */
@media (min-width: 768px) {
    .unified-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop : 4 colonnes */
@media (min-width: 1200px) {
    .unified-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2rem;
    color: var(--primary);
    animation: slideInUp 0.8s ease-out;
}

h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--accent);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

h4 {
    font-weight: 600;
    color: var(--primary);
}

p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Responsive typography */
@media (min-width: 640px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.125rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.25rem; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: bounceIn 1s ease-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInLeft 0.8s ease-out;
    flex: 1;
}

.logo {
    height: 3.5rem;
    width: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.brand-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    flex-shrink: 0;
}

.brand-separator {
    color: var(--secondary);
    font-weight: 300;
    flex-shrink: 0;
}

.brand-baseline {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.language-btn:hover {
    background: var(--light);
    transform: scale(1.05);
}

.flag-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.language-btn:hover .flag-icon {
    transform: scale(1.1);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--peach);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 1, 0.3);
}

a.btn-stup {
    background: white;
    color: var(--text);
    padding: 0.35rem 1rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
a.btn-stup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

a.btn-stup:hover::before {
    left: 100%;
}

a.btn-stup:hover {
    background: var(--peach);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 1, 0.3);
}

/* Mobile menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu {
    display: none;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
}

.mobile-menu.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: transparent;
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    background-image: url('assets/lightning.png');
    background-repeat: no-repeat;
    background-position: 100% center;
    background-size: 150px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/header-photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: -1;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    text-align: center;
}

.header-text {
    animation: slideInUp 0.8s ease-out 0.4s both;
    width: 100%;
}

/* CARTE UNIFORME - Base pour toutes les cartes */
.unified-card {
    background: white;
    border: 1px solid rgba(204, 204, 204, 0.2);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* CORRECTION: Seulement les cartes cliquables ont des effets de survol */
.unified-card.clickable-card {
    cursor: pointer;
}

.unified-card.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.unified-card.clickable-card:hover .card-image {
    transform: scale(1.05);
}

/* CORRECTION: Les cartes non-cliquables ne changent pas au survol */
.unified-card.non-clickable {
    cursor: default;
}

.unified-card.non-clickable:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.unified-card.non-clickable:hover .card-image {
    transform: none;
}

.card-icon {
    color: var(--accent);
    font-size: 1.2rem !important;
    margin-right: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.unified-card .card-subtitle {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.unified-card .card-description {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
}

.unified-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
    justify-content: center;
}

.unified-card .card-image {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

/* SYSTÈME UNIFIÉ DE TAGS/PASTILLES */
.skill-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--peach);
    transform: scale(1.05);
}

/* CORRECTION: Cartes cas d'usage - elles SONT cliquables et ont des effets de survol */
.cas-usage-card {
    background: white;
    border: 1px solid rgba(204, 204, 204, 0.2);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 300px;
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.cas-usage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.cas-usage-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cas-usage-card .card-subtitle {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cas-usage-card .card-description {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
}

.cas-usage-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
    justify-content: center;
}

.cas-usage-card .card-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cas-usage-card .card-tag:hover {
    background: var(--peach);
    transform: scale(1.05);
}

/* Processus */
.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 1rem !important;
    margin: auto;
    margin-bottom: 1rem;
}

/* Section intro */
.section-intro {
    text-align: left;
    margin-bottom: 2rem;
}

.section-intro p {
    font-size: 1rem !important;
}

/* Section Cas d'Usage - NOUVEAU SYSTÈME DE FILTRES */
.filter-container {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(204, 204, 204, 0.2);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.filter-label .material-icons {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Conteneur des pastilles de filtre */
.filter-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Pastilles de filtre */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--secondary);
    background: white;
    color: var(--text);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* État non sélectionné (grisé) */
.filter-pill:not(.active) {
    background: #f8f9fa;
    color: var(--text);
    border-color: var(--secondary);
}

.filter-pill:not(.active):hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* État sélectionné (orange) */
.filter-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 6px rgba(255, 154, 1, 0.3);
}

.filter-pill.active:hover {
    background: var(--peach);
    border-color: var(--peach);
    box-shadow: 0 8px 20px rgba(255, 154, 1, 0.4);
}

/* Icône dans les pastilles */
.filter-pill .material-icons {
    font-size: 1rem !important;
    transition: transform 0.3s ease;
}

.filter-pill.active .material-icons {
    transform: scale(1.1);
}

/* Compteur dans les pastilles */
.filter-pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: currentColor;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.filter-pill:not(.active) .filter-pill-count {
    background: var(--secondary);
    color: white;
}

/* Bouton reset */
.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
    margin-left: 0.5rem;
}

.filter-reset-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.filter-reset-btn .material-icons {
    font-size: 1rem !important;
}

/* CORRECTION: États de chargement et d'erreur améliorés */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text);
    padding: 2rem;
    text-align: center;
}

.loading-state .material-icons {
    font-size: 3rem;
    color: var(--accent);
    animation: spin 2s linear infinite;
    margin-bottom: 1rem;
}

.loading-state p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* État de chargement inline pour les filtres */
.loading-state-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    padding: 1rem;
    justify-content: center;
}

.loading-state-inline .material-icons {
    font-size: 1.2rem;
    color: var(--accent);
    animation: spin 2s linear infinite;
}

/* Contact section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-description p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-cta {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--light);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text);
    border-top: 1px solid rgba(204, 204, 204, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-language {
    display: flex;
    align-items: center;
}

/* Photos d'équipe empilées - AMÉLIORATIONS POUR MOBILE */
.team-photo-stack {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.photo-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.photo-circle.main {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 70px;
    height: 70px;
}

.photo-circle.back-1 {
    top: 5px;
    right: -5px;
    z-index: 4;
    opacity: 0.8;
    background: var(--secondary);
    width: 60px;
    height: 60px;
}

.photo-circle.back-2 {
    top: 10px;
    right: -15px;
    z-index: 3;
    opacity: 0.6;
    background: var(--accent);
    width: 50px;
    height: 50px;
}

.photo-circle.back-3 {
    top: 15px;
    right: -25px;
    z-index: 2;
    opacity: 0.5;
    background: var(--secondary);
    width: 40px;
    height: 40px;
}

.photo-circle.back-4 {
    top: 20px;
    right: -35px;
    z-index: 1;
    opacity: 0.4;
    background: var(--accent);
    width: 30px;
    height: 30px;
}

/* CORRECTION: Effets spéciaux seulement pour les cartes clan non-cliquables avec photos */
.unified-card.non-clickable:hover .photo-circle img {
    filter: grayscale(0%);
}

.unified-card.non-clickable:hover .photo-circle.main {
    transform: translateX(-50%) scale(1.1);
}

.unified-card.non-clickable:hover .photo-circle.back-1 {
    opacity: 1;
}

.unified-card.non-clickable:hover .photo-circle.back-2 {
    opacity: 0.8;
}

/* SYSTÈME DE MODAL UNIFIÉ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 200, 200, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close .material-icons {
    font-size: 1.4rem !important;
}

.modal-body {
    padding: 2rem;
}

.modal-header {
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-header .modal-secteur {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-section .material-icons {
    color: var(--accent);
    font-size: 1.2rem !important;
}

.modal-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}

.modal-competences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-skill-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.modal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.modal-metric-item {
    text-align: center;
    padding: 0.5rem 0.5rem;
    background: var(--light);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modal-metric-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-metric-item .material-icons {
    color: var(--accent);
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
}

.modal-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.modal-metric-label {
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Intersection Observer Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-center { 
    text-align: center; 
}

.text-left {
    text-align: left;
}

.mb-30 {
    margin-bottom: 2rem;
}

/* Animation du titre typewriter */
#animatedTitle {
    min-height: 2.8em;
    position: relative;
}

#animatedTitle::after {
    content: '|';
    color: var(--accent);
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Animations d'apparition décalées */
.unified-card:nth-child(1) { animation-delay: 0.1s; }
.unified-card:nth-child(2) { animation-delay: 0.2s; }
.unified-card:nth-child(3) { animation-delay: 0.3s; }
.unified-card:nth-child(4) { animation-delay: 0.4s; }
.unified-card:nth-child(5) { animation-delay: 0.5s; }
.unified-card:nth-child(6) { animation-delay: 0.6s; }
.unified-card:nth-child(7) { animation-delay: 0.7s; }
.unified-card:nth-child(8) { animation-delay: 0.8s; }

/* Animations décalées pour les cas d'usage */
.cas-usage-card:nth-child(1) { animation-delay: 0.1s; }
.cas-usage-card:nth-child(2) { animation-delay: 0.2s; }
.cas-usage-card:nth-child(3) { animation-delay: 0.3s; }
.cas-usage-card:nth-child(4) { animation-delay: 0.4s; }
.cas-usage-card:nth-child(5) { animation-delay: 0.5s; }
.cas-usage-card:nth-child(6) { animation-delay: 0.6s; }

/* Styles spécifiques pour la carte startup */
.startup-card {
    background: var(--accent) !important;
    color: white;
}

.startup-card .card-title {
    color: white;
}

.startup-card .card-description {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.startup-card .btn-stup {
    background: white;
    color: var(--accent);
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.startup-card .btn-stup:hover {
    background: var(--peach);
    color: white;
    transform: scale(1.05);
}

.startup-circle {
    background: white !important;
}

/* CORRECTIONS SPÉCIFIQUES POUR MOBILE */
@media (max-width: 768px) {
    /* Navigation mobile */
    .header {
        background-position: 90% center;
        background-size: 100px;
        padding: 120px 0 40px;
    }
    
    .header-content {
        min-height: 180px;
    }
    
    .brand-baseline {
        display: none;
    }
    
    .brand-separator {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-metrics {
        grid-template-columns: 1fr;
    }

    /* Images dans les cartes */
    .unified-card .card-image {
        width: 100px;
        margin-bottom: 1rem;
    }
    
    /* CORRECTION CRITIQUE: Cartes cas d'usage sur mobile */
    .cas-usage-card {
        min-height: 250px;
        padding: 1.25rem;
        /* Force l'affichage sur mobile */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .cas-usage-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .cas-usage-card .card-description {
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .cas-usage-card .card-subtitle {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .cas-usage-card .card-tags {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .cas-usage-card .card-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* Filtres responsive */
    .filter-pills-container {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-pill {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .filter-reset-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* État de chargement mobile */
    .loading-state {
        height: 200px;
        padding: 1rem;
    }
    
    .loading-state .material-icons {
        font-size: 2rem;
    }
    
    .loading-state p {
        font-size: 0.9rem;
    }
    
    /* Grille responsive forcée */
    .unified-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Section améliorée */
    .section {
        padding: 2rem 0;
    }
    
    .section-intro {
        margin-bottom: 1.5rem;
    }
    
    /* Améliorer l'affichage de la section clan sur mobile */
    .unified-card {
        min-height: 250px;
        padding: 1.25rem;
    }
    
    .team-photo-stack {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .photo-circle.main {
        width: 60px;
        height: 60px;
    }
    
    .photo-circle.back-1 {
        width: 50px;
        height: 50px;
        right: -3px;
        top: 3px;
    }
    
    .photo-circle.back-2 {
        width: 40px;
        height: 40px;
        right: -8px;
        top: 6px;
    }
    
    .photo-circle.back-3 {
        width: 30px;
        height: 30px;
        right: -13px;
        top: 9px;
    }
    
    .photo-circle.back-4 {
        width: 20px;
        height: 20px;
        right: -18px;
        top: 12px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .card-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Styles pour l'accessibilité */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background: var(--accent) !important;
    color: white !important;
    text-decoration: none !important;
    z-index: 100000 !important;
    top: 0 !important;
    left: 0 !important;
    font-weight: 600 !important;
}

/* Amélioration du focus pour l'accessibilité */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Animations réduites pour les utilisateurs qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .page-loader {
        display: none !important;
    }
    
    #animatedTitle::after {
        animation: none !important;
    }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* SOLUTION ALTERNATIVE : Masquer automatiquement après 3 secondes */
@keyframes autoHideLoader {
    0% { opacity: 1; visibility: visible; }
    90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.page-loader {
    animation: autoHideLoader 1s ease-out forwards;
}