/*---------------------------------------
   SECTION: LE STAFF - VERSION ADAPTÉE
-----------------------------------------*/

.staff-section {
    background: linear-gradient(135deg, #008ed6 0%, #0066a1 100%);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.staff-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.staff-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 142, 214, 0.85);
    padding: 80px 0;
}

/* Header Section */
.staff-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

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

.staff-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.staff-line {
    width: 80px;
    height: 4px;
    background: #f16c20;
    margin: 0 auto 25px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(241, 108, 32, 0.5);
}

.staff-intro-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Photo du Staff */
.staff-group-photo {
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.staff-group-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.staff-group-photo:hover img {
    transform: scale(1.05);
}

/* Grid Layout - Cartes plus petites */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Staff Cards - Taille réduite */
.staff-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.staff-card:nth-child(1) { animation-delay: 0.1s; }
.staff-card:nth-child(2) { animation-delay: 0.15s; }
.staff-card:nth-child(3) { animation-delay: 0.2s; }
.staff-card:nth-child(4) { animation-delay: 0.25s; }
.staff-card:nth-child(5) { animation-delay: 0.3s; }
.staff-card:nth-child(6) { animation-delay: 0.35s; }
.staff-card:nth-child(7) { animation-delay: 0.4s; }
.staff-card:nth-child(8) { animation-delay: 0.45s; }

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

.staff-card-inner {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* Image Container */
.staff-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    background: linear-gradient(135deg, #008ed6 0%, #0066a1 100%);
}

.staff-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.staff-card-inner:hover .staff-card-image img {
    transform: scale(1.08);
}

/* Overlay Effect */
.staff-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 142, 214, 0.85) 0%, rgba(241, 108, 32, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card-inner:hover .staff-card-overlay {
    opacity: 1;
}

/* Content Section - Plus compact */
.staff-card-content {
    padding: 18px 15px;
    text-align: center;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-card-name {
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.staff-card-inner:hover .staff-card-name {
    color: #008ed6;
}

.staff-card-role {
    color: #f16c20;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px;
    background: rgba(241, 108, 32, 0.1);
    border-radius: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.staff-card-inner:hover .staff-card-role {
    background: #f16c20;
    color: white;
    transform: scale(1.05);
}

.staff-card-description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .staff-overlay {
        padding: 60px 0;
    }
    
    .staff-title {
        font-size: 32px;
    }
    
    .staff-header {
        margin-bottom: 40px;
    }
    
    .staff-intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .staff-group-photo {
        margin-bottom: 40px;
        border-radius: 10px;
    }
    
    .staff-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }
    
    .staff-card-name {
        font-size: 16px;
    }
    
    .staff-card-role {
        font-size: 11px;
    }
    
    .staff-card-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* Variation de couleurs pour chaque carte (optionnel) */
.staff-card:nth-child(4n+1) .staff-card-inner:hover .staff-card-name {
    color: #008ed6;
}

.staff-card:nth-child(4n+2) .staff-card-inner:hover .staff-card-name {
    color: #f16c20;
}

.staff-card:nth-child(4n+3) .staff-card-inner:hover .staff-card-name {
    color: #0066a1;
}

.staff-card:nth-child(4n+4) .staff-card-inner:hover .staff-card-name {
    color: #d95a1a;
}
