/* Variables CSS avec animations */
:root {
    --primary-color: #1a4b8c;
    --secondary-color: #ffc72c;
    --accent-color: #2a6ec6;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1a4b8c 0%, #2a6ec6 100%);
    --gradient-secondary: linear-gradient(135deg, #ffc72c 0%, #ffb347 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Keyframes pour animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 199, 44, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 199, 44, 0.6);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Reset et styles de base avec gradient et croix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    background: rgba(255, 255, 255, 0.95);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--texte-noir);
    font-weight: 400;
    font-size: 1.05rem;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Croix géante en arrière-plan - VISIBLE EN BLEU */
body::after {
    content: '✟' !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 80vw !important;
    color: rgba(26, 75, 140, 0.08) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    font-weight: 100 !important;
}

/* Pas d'effets radiaux */
body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* S'assurer que le contenu est au-dessus de la croix */
.header,
.main-section,
.featured-section,
.team-section,
.council-section,
.container,
section {
    position: relative !important;
    z-index: 1 !important;
}

/* Pas d'espace au-dessus de la navbar */
body > *:first-child,
body > nav:first-child,
body > .navbar:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

nav.navbar,
.navbar {
    position: fixed !important;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 1200 !important;
}

/* Header avec animations renforcées - MODIFIÉ */
.header {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.95), rgba(100, 181, 246, 0.95));
    backdrop-filter: blur(10px);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 80px;
    height: 350px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 199, 44, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--gradient-secondary);
    animation: pulse 2s infinite 3s;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.header h1 i {
    color: var(--secondary-color);
    margin-right: 1rem;
    animation: float 3s ease-in-out infinite 2s;
}

.header .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main section */
.main-section {
    padding: 5rem 0;
    backdrop-filter: blur(5px);
}

.container {
    max-width: 1200px;
}

/* Section titles avec animations renforcées */
.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.3s forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s forwards;
}

/* Titre du membre au-dessus de la carte */
.membre-titre-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    animation: scaleIn 0.8s var(--bounce) 0.3s both;
}

.membre-titre-header h3 {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    animation: glow 4s infinite 2s;
}

.membre-titre-header h4 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.membre-titre-header h5 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.membre-titre-header::after {
    content: '✦';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: rotate360 3s linear infinite 1s;
}

/* Featured Section - Curé avec images complètes */
.featured-section {
    margin-bottom: 6rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(26, 75, 140, 0.1);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 44, 0.2), transparent);
    transition: var(--transition);
    z-index: 1;
}

.featured-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.featured-card:hover::before {
    left: 100%;
}

/* Images COMPLÈTES avec animations */
.featured-image-wrapper {
    position: relative;
    height: 450px; /* Augmenté pour voir l'image complète */
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CONTIENT l'image entière */
    object-position: center;
    transition: var(--transition);
    padding: 10px; /* Espace autour de l'image */
    background: var(--white);
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

/* Team Section - Vicaires avec images complètes */
.team-section {
    margin-bottom: 6rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.team-item {
    margin-bottom: 2rem;
    animation: scaleIn 0.8s ease-out both;
}

.team-item:nth-child(2n) {
    animation-delay: 0.2s;
}

.team-item:nth-child(3n) {
    animation-delay: 0.4s;
}

.team-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(26, 75, 140, 0.1);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: var(--transition);
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.team-card:hover::before {
    width: 100%;
}

.card-image-wrapper {
    position: relative;
    height: 300px; /* Augmenté pour voir l'image complète */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CONTIENT l'image entière */
    object-position: center;
    transition: var(--transition);
    padding: 8px;
    background: var(--white);
}

.team-card:hover .card-image {
    transform: scale(1.08);
    filter: brightness(1.08) contrast(1.03);
}

/* Council Section avec images complètes */
.council-section {
    margin-bottom: 6rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.council-item {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out both;
}

.council-item:nth-child(2n) {
    animation-delay: 0.3s;
}

.council-item:nth-child(3n) {
    animation-delay: 0.6s;
}

.council-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(26, 75, 140, 0.1);
}

.council-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-secondary);
    transition: var(--transition);
}

.council-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.council-card:hover::after {
    height: 6px;
}

.council-image-wrapper {
    position: relative;
    height: 250px; /* Augmenté pour voir l'image complète */
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.council-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CONTIENT l'image entière */
    object-position: center;
    transition: var(--transition);
    padding: 6px;
    background: var(--white);
}

.council-card:hover .council-image {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* Badges et rôles stylisés */
.role-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.role-badge:hover {
    animation: pulse 1s infinite;
    transform: translateY(-2px);
}

.role-badge.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.role-badge.secondary {
    background: var(--gradient-secondary);
    color: var(--text-dark);
}

/* Contenu stylisé */
.featured-content {
    padding: 3.5rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    backdrop-filter: blur(10px);
}

.person-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    animation: fadeInLeft 0.8s ease-out 0.7s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.person-details {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #333;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.detail-item:hover {
    transform: translateX(15px);
    color: var(--text-dark);
    background: rgba(255, 199, 44, 0.1);
}

.detail-item i {
    color: var(--secondary-color);
    width: 25px;
    margin-right: 1.2rem;
    animation: float 2s ease-in-out infinite;
    font-size: 1.1rem;
}

.person-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: justify;
    animation: fadeInUp 0.8s ease-out 1.1s both;
    background: rgba(26, 75, 140, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.person-quote {
    background: var(--gradient-secondary);
    border-left: 6px solid var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    font-style: italic;
    color: var(--text-dark);
    animation: fadeInRight 0.8s ease-out 1.3s both;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
}

.person-quote:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Card content stylisé avec fond semi-transparent */
.card-content,
.council-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    backdrop-filter: blur(10px);
}

.card-title,
.council-name {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 700;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.team-card:hover .card-title,
.council-card:hover .council-name {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.card-info,
.council-details {
    margin-bottom: 2rem;
}

.info-item,
.council-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.3rem;
    border-radius: 6px;
}

.info-item:hover,
.council-detail:hover {
    transform: translateX(8px);
    color: var(--text-dark);
    background: rgba(42, 110, 198, 0.1);
}

.info-item i,
.council-detail i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 1rem;
    animation: float 2.5s ease-in-out infinite;
}

.card-description,
.council-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    background: rgba(26, 75, 140, 0.03);
    padding: 1rem;
    border-radius: 8px;
}

.card-quote,
.council-testimonial {
    background: var(--gradient-secondary);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 199, 44, 0.2);
}

.card-quote:hover,
.council-testimonial:hover {
    transform: translateX(8px) scale(1.01);
    background: linear-gradient(135deg, #ffb347 0%, #ffc72c 100%);
}

/* Citations avec icônes animées */
.person-quote .fa-quote-left,
.card-quote .fa-quote-left,
.council-testimonial .fa-quote-left {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1rem;
    animation: float 2s ease-in-out infinite;
}

.person-quote .fa-quote-right,
.card-quote .fa-quote-right,
.council-testimonial .fa-quote-right {
    color: var(--primary-color);
    margin-left: 0.8rem;
    font-size: 1rem;
    animation: float 2s ease-in-out infinite 0.5s;
}

/* Badge overlay animé */
.council-badge-overlay {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    animation: scaleIn 0.5s var(--bounce) 0.5s both;
}

.council-role {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 3s infinite 2s;
    box-shadow: 0 2px 8px rgba(26, 75, 140, 0.3);
}

/* Overlays pour les cartes */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-role {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design amélioré - MODIFIÉ pour corriger les marges */
@media (max-width: 992px) {
    .header {
        margin-top: 80px; /* Corrigé de 100px à 80px */
        padding: 4rem 1.5rem;
    }
    
    .header h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .featured-image-wrapper {
        height: 400px;
    }
    
    .card-image-wrapper {
        height: 260px;
    }
    
    .council-image-wrapper {
        height: 220px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        margin-top: 80px; /* Corrigé de 110px à 80px */
        padding: 3rem 1rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-image-wrapper {
        height: 350px;
    }
    
    .card-image-wrapper {
        height: 240px;
    }
    
    .council-image-wrapper {
        height: 200px;
    }
    
    .team-grid,
    .council-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-content,
    .card-content,
    .council-content {
        padding: 2rem;
    }
    
    .person-name {
        font-size: 2rem;
    }
    
    .membre-titre-header h3 {
        font-size: 1.8rem;
    }
    
    .membre-titre-header h4 {
        font-size: 1.5rem;
    }
    
    .membre-titre-header h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .header {
        margin-top: 80px; /* Corrigé de 120px à 80px */
        padding: 2rem 1rem;
    }
    
    .main-section {
        padding: 3rem 0;
    }
    
    .featured-image-wrapper {
        height: 300px;
    }
    
    .card-image-wrapper {
        height: 220px;
    }
    
    .council-image-wrapper {
        height: 180px;
    }
    
    .featured-content,
    .card-content,
    .council-content {
        padding: 1.5rem;
    }
    
    .team-grid,
    .council-grid {
        gap: 1.5rem;
    }
}

/* Animations d'entrée progressive */
.featured-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.team-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.council-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

/* Désactiver les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design AMÉLIORÉ et DÉTAILLÉ */

/* Extra Large screens (1400px et plus) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .header h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .council-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Large screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .featured-image-wrapper {
        height: 480px;
    }
    
    .card-image-wrapper {
        height: 320px;
    }
    
    .council-image-wrapper {
        height: 270px;
    }
}

/* Medium-Large screens (992px - 1199px) - MODIFIÉ */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .header {
        margin-top: 80px; /* Corrigé de 90px à 80px */
        padding: 4rem 2rem;
        height: 320px;
    }
    
    .header h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 3.5rem;
    }
    
    .featured-image-wrapper {
        height: 420px;
    }
    
    .card-image-wrapper {
        height: 280px;
    }
    
    .council-image-wrapper {
        height: 240px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 2.5rem;
    }
    
    .council-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
    
    .featured-content {
        padding: 3rem;
    }
    
    .card-content,
    .council-content {
        padding: 2.2rem;
    }
    
    .person-name {
        font-size: 2.3rem;
    }
}

/* Medium screens (768px - 991px) - TABLETTES - MODIFIÉ */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .header {
        margin-top: 80px; /* Corrigé de 100px à 80px */
        padding: 3.5rem 1.5rem;
        height: 300px;
    }
    
    .header h1 {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
    
    .header .lead {
        font-size: 1.1rem;
    }
    
    .main-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.3rem;
        margin-bottom: 3rem;
    }
    
    .membre-titre-header {
        margin-bottom: 2rem;
    }
    
    .membre-titre-header h3 {
        font-size: 1.9rem;
        letter-spacing: 1.5px;
    }
    
    .membre-titre-header h4 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .membre-titre-header h5 {
        font-size: 1.3rem;
        letter-spacing: 0.6px;
    }
    
    /* Images tablettes */
    .featured-image-wrapper {
        height: 380px;
    }
    
    .card-image-wrapper {
        height: 260px;
    }
    
    .council-image-wrapper {
        height: 220px;
    }
    
    /* Grilles tablettes */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .council-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    /* Contenu tablettes */
    .featured-content {
        padding: 2.5rem;
    }
    
    .card-content,
    .council-content {
        padding: 2rem;
    }
    
    .person-name {
        font-size: 2.1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title,
    .council-name {
        font-size: 1.4rem;
    }
    
    .person-description {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .detail-item {
        margin-bottom: 0.8rem;
        padding: 0.4rem;
    }
    
    .detail-item i {
        width: 22px;
        font-size: 1rem;
    }
}

/* Small screens (576px - 767px) - MOBILES LARGE - MODIFIÉ */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    .header {
        margin-top: 80px; /* Corrigé de 110px à 80px */
        padding: 3rem 1rem;
        height: 280px;
    }
    
    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.7rem;
    }
    
    .header .lead {
        font-size: 1rem;
        max-width: 500px;
    }
    
    .main-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }
    
    .membre-titre-header {
        margin-bottom: 1.8rem;
    }
    
    .membre-titre-header h3 {
        font-size: 1.6rem;
        letter-spacing: 1.2px;
    }
    
    .membre-titre-header h4 {
        font-size: 1.4rem;
        letter-spacing: 0.8px;
    }
    
    .membre-titre-header h5 {
        font-size: 1.1rem;
        letter-spacing: 0.4px;
    }
}

/* Extra Small screens (moins de 576px) - MOBILES PETIT - MODIFIÉ */
@media (max-width: 575px) {
    /* ...existing code... */
    
    .header {
        margin-top: 80px; /* Corrigé de 120px à 80px */
        padding: 2.5rem 0.8rem;
        height: 250px;
    }
    
    /* ...rest of existing code... */
}

/* Orientation paysage sur mobile - MODIFIÉ */
@media (max-width: 767px) and (orientation: landscape) {
    .header {
        height: 200px;
        padding: 2rem 1rem;
        margin-top: 80px; /* Ajouté pour cohérence */
    }
    
    /* ...rest of existing code... */
}

/* Amélioration pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .featured-image,
    .card-image,
    .council-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .header h1,
    .section-title,
    .person-name {
        text-rendering: optimizeLegibility;
    }
}

/* Print styles */
@media print {
    .header {
        background: #1a4b8c !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .featured-card,         
    .team-card,
    .council-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .featured-image,
    .card-image,
    .council-image {
        max-height: 200px !important;
    }
    
    /* Masquer les animations en impression */
    * {
        animation: none !important;
        transition: none !important;
    }
}
