/**
 * css/team-layouts.css
 * Styles pour tous les layouts de l'équipe
 */

/* ============================================
   LAYOUT: DEFAULT (Grille classique)
   ============================================ */
.team-grid-default .team-card-default {
    background: var(--bg-card, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.team-grid-default .team-card-default:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-grid-default .team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-grid-default .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-grid-default .team-card-default:hover .team-image img {
    transform: scale(1.1);
}

.team-grid-default .team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color, #1e3a8a), var(--accent-color, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-grid-default .team-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color, #e63946);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.team-grid-default .team-content {
    padding: 25px;
    text-align: center;
}

.team-grid-default .team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color, #1a1a1a);
}

.team-grid-default .team-role {
    display: block;
    color: var(--primary-color, #1e3a8a);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-grid-default .team-bio {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.team-grid-default .team-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-grid-default .team-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.team-grid-default .team-socials a:hover {
    background: var(--primary-color, #1e3a8a);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   LAYOUT: CARDS (Style Rock avec overlay)
   ============================================ */
.team-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card-rock {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #1A1A1A;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
}

.team-card-rock:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 93, 45, 0.15);
}

.team-card-rock::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.team-card-rock .team-img {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-card-rock .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.team-card-rock:hover .team-img img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.team-card-rock .team-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E85D2D, #C44A1D);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-card-rock .team-badge-rock {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #E85D2D 0%, #FF7B4D 50%, #C44A1D 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(232, 93, 45, 0.4);
}

.team-card-rock .team-content-rock {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    transform: translateY(60px);
    transition: transform 0.4s ease;
}

.team-card-rock:hover .team-content-rock {
    transform: translateY(0);
}

.team-card-rock .team-content-rock h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: white;
}

.team-card-rock .team-role-rock {
    color: #E85D2D;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.team-card-rock .team-bio-rock {
    font-size: 13px;
    color: #CCCCCC;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.team-card-rock:hover .team-bio-rock {
    opacity: 1;
    transform: translateY(0);
}

.team-card-rock .team-socials-rock {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.team-card-rock:hover .team-socials-rock {
    opacity: 1;
    transform: translateY(0);
}

.team-card-rock .team-socials-rock a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
}

.team-card-rock .team-socials-rock a:hover {
    background: linear-gradient(135deg, #E85D2D, #FF7B4D);
    transform: scale(1.15);
}

.team-card-rock .team-decor-rock {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #E85D2D, #FF7B4D, #C44A1D);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card-rock:hover .team-decor-rock {
    transform: scaleX(1);
}

@media (max-width: 991px) {
    .team-grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .team-grid-cards { grid-template-columns: 1fr; max-width: 350px; margin-left: auto; margin-right: auto; }
}

/* ============================================
   LAYOUT: HORIZONTAL (Cartes larges)
   ============================================ */
.team-horizontal-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-horizontal-card {
    display: flex;
    gap: 30px;
    background: var(--bg-card, white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.team-horizontal-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.team-horizontal-image {
    flex: 0 0 250px;
    height: 280px;
    overflow: hidden;
}

.team-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-horizontal-card:hover .team-horizontal-image img {
    transform: scale(1.1);
}

.team-horizontal-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-horizontal-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-horizontal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.team-horizontal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color, #1a1a1a);
}

.team-horizontal-role {
    color: var(--primary-color, #1e3a8a);
    font-weight: 600;
    font-size: 0.9rem;
}

.team-horizontal-badge {
    background: var(--secondary-color, #e63946);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.team-horizontal-bio {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-horizontal-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-horizontal-socials {
    display: flex;
    gap: 10px;
}

.team-horizontal-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-horizontal-socials a:hover {
    background: var(--primary-color, #1e3a8a);
    color: white;
}

.team-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color, #1e3a8a);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.team-email-btn:hover {
    background: var(--secondary-color, #e63946);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .team-horizontal-card { flex-direction: column; }
    .team-horizontal-image { flex: none; height: 250px; }
}

/* ============================================
   LAYOUT: CIRCULAR (Photos rondes)
   ============================================ */
.team-circular-layout {
    max-width: 1000px;
    margin: 0 auto;
}

.team-circular-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.team-circular-item {
    text-align: center;
    width: 200px;
}

.team-circular-photo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.team-circular-photo::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #1e3a8a), var(--secondary-color, #e63946));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-circular-item:hover .team-circular-photo::before {
    opacity: 1;
}

.team-circular-item:hover .team-circular-photo {
    transform: scale(1.05);
}

.team-circular-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-circular-item:hover .team-circular-photo img {
    transform: scale(1.1);
}

.team-circular-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.team-circular-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-circular-item:hover .team-circular-overlay {
    opacity: 1;
}

.team-circular-socials {
    display: flex;
    gap: 10px;
}

.team-circular-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card, white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #1e3a8a);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-circular-socials a:hover {
    background: var(--secondary-color, #e63946);
    color: white;
    transform: scale(1.15);
}

.team-circular-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color, #1a1a1a);
}

.team-circular-info span {
    font-size: 0.9rem;
    color: var(--primary-color, #1e3a8a);
    font-weight: 600;
}

/* ============================================
   LAYOUT: MINIMAL (Liste épurée)
   ============================================ */
.team-minimal-layout {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card, white);
}

.team-minimal-item {
    display: grid;
    grid-template-columns: 60px 80px 1fr 2fr auto;
    gap: 25px;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-minimal-item:last-child {
    border-bottom: none;
}

.team-minimal-item:hover {
    background: #f8fafc;
}

.team-minimal-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color, #1e3a8a);
    opacity: 0.3;
}

.team-minimal-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.team-minimal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-minimal-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-color, #1a1a1a);
}

.team-minimal-role {
    font-size: 0.85rem;
    color: var(--primary-color, #1e3a8a);
    font-weight: 600;
}

.team-minimal-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.team-minimal-social-links {
    display: flex;
    gap: 8px;
}

.team-minimal-social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-minimal-social-links a:hover {
    background: var(--primary-color, #1e3a8a);
    color: white;
}

@media (max-width: 768px) {
    .team-minimal-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    .team-minimal-number { display: none; }
    .team-minimal-photo { margin: 0 auto; }
    .team-minimal-social-links { justify-content: center; }
}

/* ============================================
   LAYOUT: SPOTLIGHT (1 vedette + grille)
   ============================================ */
.team-spotlight-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-spotlight-featured {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card, white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.team-spotlight-featured .spotlight-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.team-spotlight-featured .spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-spotlight-featured:hover .spotlight-image img {
    transform: scale(1.05);
}

.team-spotlight-featured .spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.team-spotlight-featured .spotlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color, #e63946);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.team-spotlight-featured .spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    z-index: 2;
}

.team-spotlight-featured .spotlight-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.team-spotlight-featured .spotlight-role {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color, #e63946);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.team-spotlight-featured .spotlight-bio {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 25px;
}

.spotlight-social-links {
    display: flex;
    gap: 12px;
}

.spotlight-social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.spotlight-social-links a:hover {
    background: var(--secondary-color, #e63946);
    transform: translateY(-3px);
}

.team-spotlight-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-spotlight-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-spotlight-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.team-spotlight-card .spotlight-card-image {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
}

.team-spotlight-card .spotlight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-spotlight-card:hover .spotlight-card-image img {
    transform: scale(1.1);
}

.team-spotlight-card .spotlight-card-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-spotlight-card .spotlight-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color, #1a1a1a);
}

.team-spotlight-card .spotlight-card-role {
    font-size: 0.85rem;
    color: var(--primary-color, #1e3a8a);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.spotlight-card-social {
    display: flex;
    gap: 8px;
}

.spotlight-card-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.spotlight-card-social a:hover {
    background: var(--primary-color, #1e3a8a);
    color: white;
}

@media (max-width: 991px) {
    .team-spotlight-layout {
        grid-template-columns: 1fr;
    }
    .team-spotlight-featured .spotlight-image {
        height: 400px;
    }
    .team-spotlight-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .team-spotlight-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .team-spotlight-card {
        flex: 1 1 100%;
    }
}

/* ============================================
   LAYOUT: CAROUSEL (Slider multiple)
   ============================================ */
.team-carousel-wrapper {
    position: relative;
    padding: 0;
}

.team-carousel {
    overflow: hidden;
}

.team-carousel-slide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 5px;
}

.team-carousel-card {
    background: var(--bg-card, white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-carousel-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-carousel-card:hover .team-carousel-image img {
    transform: scale(1.1);
}

.team-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color, #132640), var(--accent-color, #1e3a5f));
}

.team-carousel-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.5;
}

.team-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}

.team-carousel-card:hover .team-carousel-overlay {
    opacity: 1;
}

.team-carousel-socials {
    display: flex;
    gap: 10px;
}

.team-carousel-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.team-carousel-socials a:hover {
    background: var(--primary-color, #f1572d);
    transform: translateY(-3px);
}

.team-carousel-info {
    padding: 15px;
    text-align: center;
}

.team-carousel-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 5px;
}

.team-carousel-role {
    font-size: 0.8rem;
    color: var(--primary-color, #f1572d);
    margin: 0;
    font-weight: 500;
}

/* Navigation */
.team-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5) !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-carousel-nav:hover {
    background: var(--primary-color, #f1572d) !important;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.team-carousel-nav i {
    font-size: 1.1rem;
    color: white;
}

.team-carousel-nav.carousel-control-prev {
    left: 10px;
}

.team-carousel-nav.carousel-control-next {
    right: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .team-carousel-slide {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-carousel-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .team-carousel-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .team-carousel-slide {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .team-carousel-info {
        padding: 12px;
    }
}
