:root {
    --primary-red: #781E34;     
    --dark-red: #5a1528;         
    --light-red: #9a2b48;        
    --accent-red: #b3415d;      
    --soft-red: #d45d7c;         
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-dark: #222222;
    --text-light: #666666;
    
    --shadow: 0 5px 20px rgba(120, 30, 52, 0.1);
    --shadow-hover: 0 10px 30px rgba(120, 30, 52, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero {
    background:rgba(255, 255, 255, 0.95);
    background-image: url(../uploads/bgl.png);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
    border-bottom: 5px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), var(--primary-red));
}

.hero h1 {
    color: var(--dark-red);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.hero p {
    color: var(--text-light);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 2.5rem auto;
    line-height: 1.8;
}

/* ===============================
   Team Section
================================ */
.team-section {
    padding: 70px 0;
}

/* ===============================
   Title
================================ */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--primary-red);
    margin-bottom: 50px;
    font-weight: 700;
}

/* ===============================
   Grid Layout
================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch; 
}


/* ===============================
   Team Card
================================ */
.team-card {
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);

    display: flex;              /* 👇 ajout */
    flex-direction: column;     /* 👇 ajout */
    align-items: center;        /* 👇 ajout */
    height: 100%;               /* 👇 ajout */
}


.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* ===============================
   Photo
================================ */
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red);
    margin-bottom: 15px;
}

/* ===============================
   Name & Role
================================ */
.team-card h3 {
    line-height: 1.3;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 10px 0 6px;
    min-height: 48px;  /* 👈 garde une hauteur stable */
}

.team-card p {
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 600;
    margin: 0 0 15px;
    min-height: 40px; /* 👈 garde une hauteur stable */
}


/* ===============================
   LinkedIn Button
================================ */
.team-card a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--pure-white);
    background-color: var(--primary-red);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);

    margin-top: auto; /* 👈 clé magique */
}


.team-card a:hover {
    background-color: var(--dark-red);
}

/* ===============================
   Empty State
================================ */
.text-center {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
}

/* ===============================
   Responsive
================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/*Bouton Ajouter un membre */
.add-member-container {
    width: 100%;
    margin: 35px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;
}

.btn-add-member {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); /* ROUGE */
    color:#ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 280px;
}

.btn-add-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red)); /* ROUGE inversé */
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-add-member:hover::before {
    width: 100%;
}

.btn-add-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.btn-add-member:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.25);
}

.btn-add-member i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.btn-add-member:hover i {
    transform: rotate(180deg) scale(1.2);
}



/* ===============================
   Team Actions Container
================================ */
.team-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    width: 100%;
}

/* ===============================
   Button Base Styles
================================ */
.team-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

/* ===============================
   Edit Button
================================ */
.team-actions .btn-success {
    background-color: #28a745; /* Vert Bootstrap-like */
    color: var(--pure-white);
}

.team-actions .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ===============================
   Delete Button
================================ */
.team-actions .btn-danger {
    background-color: var(--accent-red); /* Rouge de votre palette */
    color: var(--pure-white);
}

.team-actions .btn-danger:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 30, 52, 0.3);
}

/* ===============================
   Icons
================================ */
.team-actions .btn i {
    font-size: 0.9rem;
}

/* ===============================
   Form Styles (pour le bouton supprimer)
================================ */
.team-actions form {
    margin: 0;
    display: inline;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 480px) {
    .team-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .team-actions .btn {
        width: 100%;
        justify-content: center;
    }
}