/* ============================================
   PAGE QUI SOMMES-NOUS
   Version optimisée avec variables de padding centralisées
   ============================================ */

/* ============================================
   VARIABLES DE PADDING - PERSONNALISABLES
   Modifiez ces valeurs pour ajuster tous les espacements
   ============================================ */
:root {
    /* Paddings des sections principales */
    --qsn-section-padding-small: 50px 20px;      /* Sections compactes */
    --qsn-section-padding-medium: 80px 20px;     /* Sections moyennes (par défaut) */
    --qsn-section-padding-large: 80px 20px 120px; /* Sections avec plus d'espace en bas */
    
    /* Paddings des cartes */
    --qsn-card-padding-small: 20px;              /* Petites cartes */
    --qsn-card-padding-medium: 40px 30px;        /* Cartes moyennes */
    --qsn-card-padding-large: 50px 35px;         /* Grandes cartes (équipe) */
    
    /* Paddings des boxes spéciales */
    --qsn-box-padding: 40px;                     /* Boxes (chiffres, etc.) */
    --qsn-box-padding-reduced: 30px 20px;        /* Boxes réduites (mobile) */
    
    /* Paddings des panneaux d'information */
    --qsn-info-padding: 20px;                    /* Panneaux réseau */
    --qsn-info-padding-mobile: 20px;             /* Version mobile */
    
    /* Variables du réseau - dimensions des boîtes */
    --reseau-box-haut-width: 250px;
    --reseau-box-haut-height: 120px;
    --reseau-box-bas-width: 220px;
    --reseau-box-bas-height: 200px;
    --reseau-logo-max-width: 200px;
    --reseau-logo-max-height: 100px;
}

/* Forcer la police Caviar Dreams sur toute la page */
.qsn-hero,
.qsn-section,
.qsn-hero *,
.qsn-section * {
    font-family: 'Caviar Dreams', sans-serif !important;
}

/* ============================================
   HERO 
   ============================================ */

.qsn-hero {
    background: linear-gradient(135deg, #163058 0%, #163058 30%, var(--color-purple) 70%, var(--color-purple) 100%);
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 8vw, 6rem);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Ligne 1 - En haut à gauche vers bas à droite */
.qsn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    height: 100%;
    background-image: 
        linear-gradient(140deg, transparent 0%, transparent 20%, rgba(167, 134, 77, 0.15) 20%, rgba(167, 134, 77, 0.15) 21%, transparent 21%, transparent 100%);
    background-size: 100% 100%;
    z-index: 0;
}

/* Lignes 2, 3 et 4 */
.qsn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    width: 120%;
    height: 100%;
    background-image: 
        linear-gradient(50deg, transparent 0%, transparent 55%, rgba(167, 134, 77, 0.12) 55%, rgba(167, 134, 77, 0.12) 56%, transparent 56%, transparent 100%),
        linear-gradient(-25deg, transparent 0%, transparent 72%, rgba(167, 134, 77, 0.1) 72%, rgba(167, 134, 77, 0.1) 73%, transparent 73%, transparent 100%),
        linear-gradient(160deg, transparent 0%, transparent 85%, rgba(167, 134, 77, 0.08) 85%, rgba(167, 134, 77, 0.08) 86%, transparent 86%, transparent 100%);
    background-size: 100% 100%;
    z-index: 0;
}

.qsn-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

.qsn-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.qsn-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    color: #FFFFFF;
}

.qsn-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.qsn-hero-surtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== SECTION INTRODUCTION ===== */
.qsn-intro-section {
    padding: var(--qsn-section-padding-medium);
}

.qsn-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.qsn-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    line-height: 1.3;
}

.qsn-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.qsn-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: 25px;
    text-align: left;
}

.qsn-intro-text:last-child {
    margin-bottom: 0;
}

/* Bullet points pour le contenu général */
.qsn-intro-container ul,
.qsn-intro-text ul  {
    list-style-type: disc;
    padding-left: 4rem !important;
    margin: clamp(1.5rem, 3vw, 2rem) 0 !important;
    text-align: left !important;
}

.qsn-intro-text ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--color-text-gray);
    font-size: 18px;
}

/* ===== SECTION VALEURS ===== */
.qsn-valeurs-section {
    padding: var(--qsn-section-padding-medium);
}

.qsn-valeurs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== SECTION EXPERTISE ===== */
.qsn-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.qsn-expertise-card {
    background: var(--color-white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: var(--qsn-card-padding-medium);
    text-align: center;
    transition: all 0.3s ease;
}

.qsn-expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--color-purple);
}

.qsn-expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

/* CIR - Violet */
.expertise-cir .qsn-expertise-icon {
    background: var(--color-purple);
}

/* CII - Bleu marine */
.expertise-cii .qsn-expertise-icon {
    background: var(--color-blue);
}

/* IP Box - Or */
.expertise-ipbox .qsn-expertise-icon {
    background: var(--color-gold);
}

/* Aides & Subventions - violet */
.expertise-aides .qsn-expertise-icon {
    background: var(--color-purple);
}

/* JEI - bleu */
.expertise-jei .qsn-expertise-icon {
    background: var(--color-blue);
}

/* Agrément - violet */
.expertise-agrement .qsn-expertise-icon {
    background: var(--color-purple); 
}

/* CICO - Or */
.expertise-cico .qsn-expertise-icon {
    background: var(--color-gold);
}

/* CIMA - bleu */
.expertise-cima .qsn-expertise-icon {
    background: var(--color-blue);
}

/* CIJV - violet */
.expertise-cijv .qsn-expertise-icon {
    background: var(--color-purple);
}

/* CIC - or */
.expertise-cic .qsn-expertise-icon {
    background: var(--color-gold); 
}

.qsn-expertise-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.qsn-expertise-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-gray);
}

/* ============================================
   SECTION NOTRE APPROCHE - VERSION AMÉLIORÉE
   ============================================ */

.qsn-approche-section {
    padding: var(--qsn-section-padding-medium);
}

.qsn-approche-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header centré */
.qsn-approche-header {
    text-align: left;
    margin-bottom: 60px;
}

.qsn-approche-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Contenu en 2 colonnes */
.qsn-approche-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== PARTIE GAUCHE : LES ÉTAPES ===== */
.qsn-approche-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qsn-approche-step {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qsn-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(62, 59, 144, 0.3);
}

/* Couleurs personnalisées pour chaque numéro */
.qsn-approche-step:nth-child(1) .qsn-step-number {
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
}

.qsn-approche-step:nth-child(2) .qsn-step-number {
    background: linear-gradient(135deg, var(--color-gold) 0%, #8f6f3d 100%);
}

.qsn-approche-step:nth-child(3) .qsn-step-number {
    background: linear-gradient(135deg, var(--color-blue) 0%, #0f2340 100%);
}

.qsn-approche-step:nth-child(4) .qsn-step-number {
    background: linear-gradient(135deg, var(--color-purple) 0%, #4a4578 100%);
}

.qsn-step-content {
    flex: 1;
}

.qsn-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.qsn-step-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-gray);
}

/* ===== PARTIE DROITE : LES CHIFFRES ===== */
.qsn-chiffres-box {
    position: sticky;
    top: 120px;
    background: var(--color-bg-nd);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    padding: var(--qsn-box-padding);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.qsn-chiffres-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.qsn-chiffres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.qsn-chiffre-item {
    text-align: center;
    padding: var(--qsn-card-padding-small);
    border-radius: 12px;
    background: var(--color-bg-cream);
    transition: all 0.3s ease;
}

.qsn-chiffre-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qsn-chiffre-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Couleurs alternatives pour chaque chiffre */
.qsn-chiffre-item:nth-child(1) .qsn-chiffre-number {
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qsn-chiffre-item:nth-child(2) .qsn-chiffre-number {
    background: linear-gradient(135deg, var(--color-gold) 0%, #8f6f3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qsn-chiffre-item:nth-child(3) .qsn-chiffre-number {
    background: linear-gradient(135deg, #163058 0%, #0f2340 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qsn-chiffre-item:nth-child(4) .qsn-chiffre-number {
    background: linear-gradient(135deg, #5b5898 0%, #4a4578 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qsn-chiffre-label {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== SECTION POURQUOI ===== */
.qsn-pourquoi-section {
    padding: var(--qsn-section-padding-medium);
}

.qsn-pourquoi-container {
    max-width: 1200px;
    margin: 0 auto;
}

.qsn-pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.qsn-pourquoi-card {
    background: var(--color-bg-nd);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: var(--qsn-card-padding-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qsn-pourquoi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-gold) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.qsn-pourquoi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(62, 59, 144, 0.15);
    border-color: var(--color-purple);
}

.qsn-pourquoi-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-purple);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 20px;
}

.qsn-pourquoi-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.qsn-pourquoi-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-gray);
}

/* ===== SECTION ÉQUIPE ===== */
.qsn-equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.qsn-equipe-card {
    background: var(--color-bg-nd);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: var(--qsn-card-padding-large);
    text-align: center;
    transition: all 0.3s ease;
}

.qsn-equipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--color-purple);
}

.qsn-equipe-initial {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.qsn-equipe-initial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.qsn-equipe-card:hover .qsn-equipe-initial {
    transform: scale(1.1);
}

.qsn-equipe-card:nth-child(2) .qsn-equipe-initial {
    background: linear-gradient(135deg, var(--color-gold) 0%, #8f6f3d 100%);
}

.qsn-equipe-card:nth-child(3) .qsn-equipe-initial {
    background: linear-gradient(135deg, #163058 0%, #0f2340 100%);
}

.qsn-equipe-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.qsn-equipe-role {
    font-size: 1rem;
    color: var(--color-purple);
    font-weight: 600;
    margin-bottom: 20px;
}

.qsn-equipe-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-gray);
}

/* ===== OPTIMISATIONS ===== */
.qsn-expertise-card,
.qsn-pourquoi-card,
.qsn-equipe-card {
    will-change: transform;
}

/* Accessibilité */
.qsn-expertise-card:focus-within,
.qsn-equipe-card:focus-within {
    outline: 3px solid var(--color-purple);
    outline-offset: 2px;
}

/* Print */
@media print {
    .qsn-cta-section {
        background: transparent;
        color: #000;
    }
    
    .qsn-cta-title,
    .qsn-cta-text {
        color: #000;
    }
    
    .qsn-hero-buttons {
        display: none;
    }
    
    .qsn-expertise-card,
    .qsn-pourquoi-card,
    .qsn-equipe-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

/* ============================================
   CARROUSEL EXPERTISE - DÉFILEMENT MANUEL
   ============================================ */

.qsn-expertise-wrapper {
    position: relative;
    padding: 0 clamp(60px, 10vw, 80px);
    overflow: hidden;
    margin-top: clamp(2rem, 5vw, 3rem);
}

.qsn-expertise-carousel {
    overflow: hidden;
    width: 100%;
}

.qsn-expertise-grid {
    display: flex;
    gap: clamp(20px, 3vw, 30px);
    transition: transform 0.5s ease;
}

.qsn-expertise-card {
    min-width: calc((100% - 60px) / 3);
    flex-shrink: 0;
    background: var(--color-bg-nd);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 1.875rem);
    text-align: center;
    transition: all 0.3s ease;
    max-width: 350px;
}

.qsn-expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--color-purple);
}

.qsn-expertise-icon {
    width: clamp(70px, 10vw, 80px);
    height: clamp(70px, 10vw, 80px);
    margin: 0 auto clamp(1.5rem, 3vw, 1.875rem);
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.qsn-expertise-card:hover .qsn-expertise-icon {
    transform: scale(1.1);
}

.qsn-expertise-card:nth-child(2) .qsn-expertise-icon {
    background: linear-gradient(135deg, #163058 0%, #0f2340 100%);
}

.qsn-expertise-card:nth-child(3) .qsn-expertise-icon {
    background: linear-gradient(135deg, var(--color-gold) 0%, #8f6f3d 100%);
}

.qsn-expertise-card:nth-child(4) .qsn-expertise-icon {
    background: linear-gradient(135deg, #5b5898 0%, #4a4578 100%);
}

.qsn-expertise-card:nth-child(5) .qsn-expertise-icon {
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
}

.qsn-expertise-card:nth-child(6) .qsn-expertise-icon {
    background: linear-gradient(135deg, #163058 0%, #0f2340 100%);
}

.qsn-expertise-title {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.qsn-expertise-text {
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    color: var(--color-text-gray);
}

/* Flèches du carrousel */
.expertise-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-gold);
    border: none;
    color: var(--color-white);
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    border-radius: 50%;
    font-size: clamp(20px, 3vw, 28px);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(167, 134, 77, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.expertise-arrow:hover {
    transform: translateY(-50%) scale(1.15);
    background: var(--color-gold-dark);
}

.expertise-arrow-left {
    left: 0;
}

.expertise-arrow-right {
    right: 0;
}

.expertise-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.expertise-arrow:disabled:hover {
    transform: translateY(-50%) scale(1) !important;
    background: var(--color-gold);
}

/* ============================================
   SECTION NOTRE RÉSEAU
   ============================================ */

.qsn-reseau-section {
    padding: var(--qsn-section-padding-large);
    position: relative;
    overflow: hidden;
}

.qsn-reseau-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.qsn-reseau-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    max-width: 1200px;
    margin: 20px auto 60px;
}

/* ===== DIAGRAMME DU RÉSEAU ===== */
.qsn-reseau-diagram {
    position: relative;
    max-width: 1200px;
    margin: 80px auto 0;
    min-height: 700px;
    padding: 40px 20px;
}

/* ===== CONNEXIONS SVG ===== */
.qsn-reseau-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.qsn-reseau-line {
    stroke: var(--color-gold);
    stroke-width: 2;
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* ===== NŒUDS DU RÉSEAU ===== */
.qsn-reseau-node {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qsn-reseau-node:hover {
    transform: scale(1.05);
    z-index: 200;
}

.qsn-reseau-box {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: var(--qsn-card-padding-small);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Dimensions spécifiques pour les entreprises DU HAUT (Taille X) */
.qsn-reseau-ymaje .qsn-reseau-box,
.qsn-reseau-origaly .qsn-reseau-box {
    width: var(--reseau-box-haut-width);
    height: var(--reseau-box-haut-height);
    min-width: var(--reseau-box-haut-width);
    min-height: var(--reseau-box-haut-height);
}

/* Dimensions spécifiques pour les entreprises DU BAS (Taille Y) */
.qsn-reseau-innoprisme .qsn-reseau-box,
.qsn-reseau-innovaquest .qsn-reseau-box,
.qsn-reseau-cleante .qsn-reseau-box {
    width: var(--reseau-box-bas-width);
    height: var(--reseau-box-bas-height);
    min-width: var(--reseau-box-bas-width);
    min-height: var(--reseau-box-bas-height);
}

.qsn-reseau-node:hover .qsn-reseau-box {
    border-color: var(--color-purple);
    box-shadow: 0 8px 30px rgba(62, 59, 144, 0.2);
    transform: translateY(-5px);
}

.qsn-reseau-logo {
    max-width: var(--reseau-logo-max-width);
    max-height: var(--reseau-logo-max-height);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.qsn-reseau-logo img {
    max-width: var(--reseau-logo-max-width);
    max-height: var(--reseau-logo-max-height);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== TAGS DE SECTEUR ===== */
.qsn-reseau-tag {
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(62, 59, 144, 0.25);
}

.qsn-reseau-tag-bottom {
    margin-bottom: 0;
    margin-top: 15px;
}

/* Variantes de couleurs pour les tags */
.qsn-reseau-ymaje .qsn-reseau-tag {
    background: linear-gradient(135deg, #163058 0%, #0f2340 100%);
}

.qsn-reseau-origaly .qsn-reseau-tag {
    background: linear-gradient(135deg, #d99b7c 0%, #c77e5a 100%);
}

.qsn-reseau-innoprisme .qsn-reseau-tag {
    background: linear-gradient(135deg, #d99b7c 0%, #c77e5a 100%);
}

.qsn-reseau-innovaquest .qsn-reseau-tag {
    background: linear-gradient(135deg, #d99b7c 0%, #c77e5a 100%);
}

.qsn-reseau-cleante .qsn-reseau-tag {
    background: linear-gradient(135deg, #e6b892 0%, #d99b7c 100%);
}

/* ===== POSITIONNEMENT DES NŒUDS ===== */
.qsn-reseau-ymaje {
    top: 80px;
    left: 15%;
}

.qsn-reseau-origaly {
    top: 80px;
    right: 15%;
}

.qsn-reseau-innoprisme {
    bottom: 80px;
    left: 10%;
}

.qsn-reseau-innovaquest {
    bottom: 80px;
    left: 41%;
}

.qsn-reseau-cleante {
    bottom: 80px;
    right: 10%;
}

/* ===== PANNEAUX D'INFORMATION ===== */
.qsn-reseau-info {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    padding: var(--qsn-info-padding);
    width: 320px;
    max-width: 90vw;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s,
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forcer tous les panneaux à être cachés par défaut */
.qsn-reseau-ymaje .qsn-reseau-info,
.qsn-reseau-origaly .qsn-reseau-info,
.qsn-reseau-innoprisme .qsn-reseau-info,
.qsn-reseau-innovaquest .qsn-reseau-info,
.qsn-reseau-cleante .qsn-reseau-info {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Affichage au survol */
.qsn-reseau-ymaje:hover > .qsn-reseau-info,
.qsn-reseau-origaly:hover > .qsn-reseau-info,
.qsn-reseau-innoprisme:hover > .qsn-reseau-info,
.qsn-reseau-innovaquest:hover > .qsn-reseau-info,
.qsn-reseau-cleante:hover > .qsn-reseau-info {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qsn-reseau-info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-purple);
}

.qsn-reseau-info-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-gray);
    margin-bottom: 15px;
}

/* ===== SECTION ÉQUIPE ===== */
.qsn-reseau-team {
    margin-bottom: 15px;
}

.qsn-reseau-team h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    text-align: left;
}

.qsn-reseau-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 10px;
}

.qsn-reseau-member {
    text-align: center;
}

.qsn-reseau-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
    border: 2px solid var(--color-purple);
    box-shadow: 0 2px 8px rgba(62, 59, 144, 0.2);
    transition: transform 0.3s ease;
}

.qsn-reseau-avatar:hover {
    transform: scale(1.1);
}

.qsn-reseau-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qsn-reseau-member-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.2;
}

/* ===== BOUTON CTA ===== */
.qsn-reseau-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-purple) 0%, #5248a8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(62, 59, 144, 0.3);
    width: 100%;
    justify-content: center;
}

.qsn-reseau-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(62, 59, 144, 0.4);
    text-decoration: none;
    color: white;
}

.qsn-reseau-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.qsn-reseau-cta:hover .qsn-reseau-arrow {
    transform: translateX(5px);
}

/* Permettre l'interaction avec le panneau au hover */
.qsn-reseau-ymaje .qsn-reseau-info:hover,
.qsn-reseau-origaly .qsn-reseau-info:hover,
.qsn-reseau-innoprisme .qsn-reseau-info:hover,
.qsn-reseau-innovaquest .qsn-reseau-info:hover,
.qsn-reseau-cleante .qsn-reseau-info:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ===== SCROLLBAR PERSONNALISÉE POUR LE PANNEAU ===== */
.qsn-reseau-info {
    scrollbar-width: thin;
    scrollbar-color: var(--color-purple) #f3f4f6;
}

.qsn-reseau-info::-webkit-scrollbar {
    width: 6px;
}

.qsn-reseau-info::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.qsn-reseau-info::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border-radius: 10px;
}

.qsn-reseau-info::-webkit-scrollbar-thumb:hover {
    background: #5248a8;
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qsn-reseau-node {
    animation: slideInUp 0.6s ease-out backwards;
}

.qsn-reseau-ymaje {
    animation-delay: 0.1s;
}

.qsn-reseau-origaly {
    animation-delay: 0.2s;
}

.qsn-reseau-innoprisme {
    animation-delay: 0.3s;
}

.qsn-reseau-innovaquest {
    animation-delay: 0.4s;
}

.qsn-reseau-cleante {
    animation-delay: 0.5s;
}

/* ===== ACCESSIBILITÉ ===== */
.qsn-reseau-node:focus {
    outline: 3px solid var(--color-purple);
    outline-offset: 3px;
    border-radius: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 992px) {
    .qsn-approche-content {
        gap: 40px;
    }

    .qsn-chiffres-box {
        position: relative;
        top: 0;
        padding: var(--qsn-box-padding-reduced);
    }

    .qsn-chiffres-grid {
        gap: 20px;
    }
    
    .qsn-reseau-section {
        padding: 60px 20px 100px;
    }
    
    .qsn-reseau-diagram {
        min-height: 700px;
    }
    
    .qsn-reseau-ymaje {
        left: 8%;
    }
    
    .qsn-reseau-origaly {
        right: 8%;
    }
    
    .qsn-reseau-info {
        width: 320px;
        padding: 25px;
    }
    
    .qsn-reseau-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 12px;
    }
}

/* 2 cartes visibles sur tablette */
@media (max-width: 1024px) {
    .qsn-expertise-card {
        min-width: calc((100% - 40px) / 2);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .qsn-intro-section,
    .qsn-valeurs-section,
    .qsn-approche-section,
    .qsn-pourquoi-section {
        padding: 60px 20px;
    }

    .qsn-approche-header {
        margin-bottom: 40px;
    }

    .qsn-approche-title {
        font-size: 2rem;
    }

    .qsn-approche-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .qsn-approche-steps {
        gap: 25px;
    }

    .qsn-step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .qsn-step-title {
        font-size: 1.1rem;
    }

    .qsn-step-text {
        font-size: 0.95rem;
    }

    .qsn-chiffres-box {
        padding: var(--qsn-box-padding-reduced);
    }

    .qsn-chiffres-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qsn-chiffre-number {
        font-size: 2rem;
    }
    
    .qsn-expertise-card {
        min-width: 100%;
    }
    
    .qsn-expertise-wrapper {
        padding: 0 clamp(50px, 8vw, 60px);
    }
    
    .qsn-reseau-section {
        padding: 50px 15px 80px;
    }
    
    .qsn-reseau-intro {
        font-size: 1rem;
        margin: 15px auto 40px;
    }
    
    .qsn-reseau-diagram {
        min-height: 1000px;
        padding: 20px 10px;
    }
    
    .qsn-reseau-logo {
        max-width: 110px;
    }
    
    .qsn-reseau-box {
        padding: 20px 25px;
        min-width: 150px;
    }
    
    .qsn-reseau-tag {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    /* Layout mobile - tout en colonne */
    .qsn-reseau-ymaje,
    .qsn-reseau-origaly,
    .qsn-reseau-innoprisme,
    .qsn-reseau-innovaquest,
    .qsn-reseau-cleante {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .qsn-reseau-ymaje {
        top: 30px;
    }
    
    .qsn-reseau-origaly {
        top: 200px;
    }
    
    .qsn-reseau-innoprisme {
        bottom: auto;
        top: 370px;
    }
    
    .qsn-reseau-innovaquest {
        bottom: auto;
        top: 540px;
    }
    
    .qsn-reseau-cleante {
        bottom: auto;
        top: 710px;
    }
    
    .qsn-reseau-info {
        width: 300px;
        padding: var(--qsn-info-padding-mobile);
        top: auto;
        bottom: 120%;
    }
    
    .qsn-reseau-info::before {
        top: auto;
        bottom: -10px;
        border-bottom: none;
        border-top: 10px solid white;
    }
    
    .qsn-reseau-info-title {
        font-size: 1.3rem;
    }
    
    .qsn-reseau-info-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .qsn-reseau-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qsn-reseau-avatar {
        width: 60px;
        height: 60px;
    }
    
    .qsn-reseau-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .qsn-approche-step {
        gap: 15px;
    }

    .qsn-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .qsn-expertise-wrapper {
        padding: 0 45px;
    }
    
    .expertise-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .qsn-reseau-diagram {
        min-height: 1100px;
    }
    
    .qsn-reseau-logo {
        max-width: 100px;
    }
    
    .qsn-reseau-box {
        padding: 18px 20px;
        min-width: 130px;
    }
    
    .qsn-reseau-info {
        width: 280px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.qsn-approche-left {
    animation: fadeInLeft 0.8s ease-out;
}

.qsn-approche-right {
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}