
  :root {
    --primary-gold: #D4AF37;
    --secondary-gold: #B8941F;
    --dark-brown: #2C1810;
    --light-brown: #8B4513;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    --success: #28A745;
    --danger: #DC3545;
    --shadow: rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--cream) 0%, #E8E8E8 100%);
    color: var(--dark-brown);
    min-height: 100vh;
    line-height: 1.6;
  }

  header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--light-brown) 100%);
    color: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
  }

  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D4AF37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23D4AF37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
  }

  header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
  }

  header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
  }

  .container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
  }

  .section-title {
    font-size: 2.5rem;
    color: var(--dark-brown);
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
    font-weight: 600;
  }

  .section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 2px;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .team-member {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    position: relative;
  }

  .team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  }

  .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  }

  .member-image {
    position: relative;
    height: 280px;
    overflow: hidden;
  }

  .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

  .team-member:hover .member-image img {
    transform: scale(1.05);
  }

  .member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(44, 24, 16, 0.3));
    pointer-events: none;
  }

  .member-info {
    padding: 1.5rem;
    text-align: center;
  }

  .member-info h3 {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .position {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .member-info p:not(.position) {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
  }

  .error-message {
    background: linear-gradient(135deg, #F8D7DA, #F1AAAE);
    border: 2px solid var(--danger);
    color: #721C24;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
  }

  /* Effets spéciaux pour le clergé */
  .clergy-section .team-member::before {
    background: linear-gradient(90deg, #8B4513, #D4AF37);
  }

  .clergy-section .position {
    color: var(--light-brown);
  }

  /* Animations */
  .team-member {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  .team-member:nth-child(1) {
    animation-delay: 0.1s;
  }

  .team-member:nth-child(2) {
    animation-delay: 0.2s;
  }

  .team-member:nth-child(3) {
    animation-delay: 0.3s;
  }

  .team-member:nth-child(4) {
    animation-delay: 0.4s;
  }

  .team-member:nth-child(5) {
    animation-delay: 0.5s;
  }

  .team-member:nth-child(6) {
    animation-delay: 0.6s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    header {
      padding: 2rem 1rem;
    }

    header h1 {
      font-size: 2rem;
    }

    header p {
      font-size: 1rem;
    }

    .container {
      padding: 0 1rem;
      margin: 2rem auto;
    }

    .section-title {
      font-size: 2rem;
      margin: 2rem 0 1.5rem;
    }

    .team-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .member-image {
      height: 250px;
    }

    .member-info {
      padding: 1rem;
    }

    .member-info h3 {
      font-size: 1.2rem;
    }
  }

  @media (max-width: 480px) {
    header h1 {
      font-size: 1.8rem;
    }

    .section-title {
      font-size: 1.8rem;
    }

    .member-image {
      height: 220px;
    }
  }

  /* Accessibilité */
  .team-member:focus-within {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    .team-member {
      animation: none;
      opacity: 1;
      transform: none;
    }

    .team-member:hover {
      transform: none;
    }

    .team-member:hover .member-image img {
      transform: none;
    }
  }