/* Accessibility Mode Styles */
body.accessibility-mode {
    --primary: #ffff00 !important;
    --primary-foreground: #000000 !important;
    --secondary: #ffffff !important;
    --secondary-foreground: #000000 !important;
    --accent: #ffff00 !important;
    --accent-foreground: #000000 !important;
    --background: #000000 !important;
    --foreground: #ffff00 !important;
    --muted: #333333 !important;
    --muted-foreground: #ffffff !important;
    --card: #000000 !important;
    --card-foreground: #ffff00 !important;
    --border: #ffff00 !important;
    
    background-color: #000000 !important;
    color: #ffff00 !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
}

body.accessibility-mode * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.accessibility-mode img,
body.accessibility-mode video,
body.accessibility-mode iframe {
    filter: grayscale(100%) contrast(120%) !important;
}

body.accessibility-mode a {
    text-decoration: underline !important;
    color: #00ff00 !important; /* Green for links to distinguish */
    font-weight: bold !important;
}

body.accessibility-mode a:hover,
body.accessibility-mode a:focus {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

body.accessibility-mode button,
body.accessibility-mode .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

body.accessibility-mode button:hover,
body.accessibility-mode .btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode input,
body.accessibility-mode textarea,
body.accessibility-mode select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .navbar,
body.accessibility-mode nav,
body.accessibility-mode footer {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

/* Ensure icons are visible */
body.accessibility-mode i,
body.accessibility-mode svg,
body.accessibility-mode path {
    color: currentColor !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}


/* --- Responsive menu fix --- */
.mobile-menu,
.mobile-menu-button-container,
.mobile-menu-button {
  display: none;
}

@media (max-width: 1300px) {
  .mobile-menu,
  .mobile-menu-button-container,
  .mobile-menu-button {
    display: block;
  }
  .desktop-menu {
    display: none !important;
  }
}

.desktop-menu {
  display: block;
}


/* --- Candidat page custom --- */

/* --- Team page custom --- */
.team-card {
    box-shadow: 0 2px 10px 0 rgba(30,64,175,0.07);
    border-radius: 1.1rem;
    transition: box-shadow 0.17s, transform 0.16s;
}
.team-card:hover {
    box-shadow: 0 8px 32px 0 rgba(41,171,226,0.10), 0 2px 8px 0 #29ABE2;
    transform: translateY(-6px) scale(1.025);
    z-index: 2;
}
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.23s cubic-bezier(.4,0,.2,1);
}
.group:hover .team-modal {
    pointer-events: auto;
    opacity: 1;
}
.animate-modal-open {
    animation: modalOpen 0.22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalOpen {
    0% { transform: scale(0.93); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 1024px) {
    .grid-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid-cols-6, .sm\:grid-cols-3, .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.candidat-hero-bg {
    background: linear-gradient(120deg, #4A5568 0%, #29ABE2 100%);
    background-image: url('/static/img/larochelle-hero.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 220px;
    height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}
@media (min-width: 768px) {
    .candidat-hero-bg {
        min-height: 320px;
        height: 320px;
    }
}

.candidat-bg {
    background: linear-gradient(120deg, #4A5568 0%, #29ABE2 100%);
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 0;
}

.candidat-main-title {
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.candidat-photo-name {
    font-size: 1.25rem;
    font-weight: 700;
}
.candidat-tag {
    font-size: 0.97rem;
    font-weight: 500;
    padding: 0.18em 1.1em;
    border-radius: 999px;
}
.candidat-bio-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.candidat-bio {
    font-size: 1.01rem;
    line-height: 1.7;
}
.candidat-timeline {
    position: relative;
    margin-left: 0.8rem;
}
.candidat-timeline::before {
    content: '';
    position: absolute;
    left: 2.7rem;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 4px;
    background: #8DC63F;
    border-radius: 2px;
    z-index: 0;
}
.candidat-step {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.19s, transform 0.19s, border-color 0.19s;
}
.candidat-step:hover,
.candidat-step--hovered {
    box-shadow: 0 12px 32px 0 rgba(41,171,226,0.13), 0 4px 14px 0 #8DC63F;
    transform: translateY(-4px) scale(1.04);
    border-left: 4px solid #29ABE2;
    background: #f8fafc;
    z-index: 2;
    cursor: pointer;
}
.candidat-step-year {
    background: #8DC63F;
    color: #ffffff;
    font-size: 1.07rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.6em 2em;
    margin-right: 1.2rem;
    box-shadow: 0 1px 6px 0 #f9e79f;
    border: 2px solid #fff;
    z-index: 2;
}
.candidat-step-content {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 8px 0 #e5e7eb;
    font-size: 1.08rem;
    font-family: 'Roboto', sans-serif;
    padding: 1.1rem 1.5rem;
    min-width: 0;
    flex: 1;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.candidat-value {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    transition: box-shadow 0.16s, transform 0.16s;
    z-index: 1;
}
.candidat-value:hover,
.candidat-value--hovered {
    box-shadow: 0 12px 32px 0 rgba(41,171,226,0.16), 0 4px 16px 0 #8DC63F;
    transform: translateY(-4px) scale(1.045);
    border-color: #29ABE2;
    z-index: 2;
    cursor: pointer;
}
.candidat-value .candidat-value-title {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

:root {
    /* Couleurs de la charte graphique Générations La Rochelle */
    --cyan: #29ABE2;
    --lime: #8DC63F;
    --terracotta: #C97064;
    --dark-gray: #4A5568;
    
    --primary: #29ABE2;
    --primary-foreground: #ffffff;
    --secondary: #8DC63F;
    --secondary-foreground: #ffffff;
    --accent: #C97064;
    --accent-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #4A5568;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --card: #ffffff;
    --card-foreground: #4A5568;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
}

/* Font families */
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-lato { font-family: 'Lato', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* Tailwind-like utility classes */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-background { background-color: var(--background) !important; }
.bg-muted { background-color: var(--muted) !important; }
.bg-card { background-color: var(--card) !important; }
.bg-gradient-hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); }

.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-secondary-foreground { color: var(--secondary-foreground) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent-foreground { color: var(--accent-foreground) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.text-card-foreground { color: var(--card-foreground) !important; }

.border-border { border-color: var(--border) !important; }

/* Layout utilities */
.container { max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }

/* Flexbox and grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Typography */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

/* Sizing */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-0 { width: 0; }
.h-0 { height: 0; }

/* Borders and radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }

/* Opacity */
.opacity-90 { opacity: 0.9; }

/* Aspect ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Special effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-glow { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }

/* Button styles */
.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border: none;
}

.btn-accent:hover {
    background-color: #d97706;
    color: var(--accent-foreground);
}

/* Custom borders for triangular play button */
.border-l-\[12px\] { border-left-width: 12px; }
.border-y-\[8px\] { border-top-width: 8px; border-bottom-width: 8px; }
.border-l-accent-foreground { border-left-color: var(--accent-foreground); }
.border-y-transparent { border-top-color: transparent; border-bottom-color: transparent; }

/* Background opacity */
.bg-secondary\/10 { background-color: rgba(245, 158, 11, 0.1); }

/* Inline flex */
.inline-flex { display: inline-flex; }

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Typography */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.team-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.team-card .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.team-card .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* News and Events */
.news-meta, .event-meta {
    font-size: 0.9rem;
    color: var(--muted-text);
}

.news-meta i, .event-meta i {
    color: var(--primary-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
}

/* Footer */
footer {
    background-color: #4A5568 !important;
}

footer h5, footer h6 {
    color: white;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.pagination .page-link:hover {
    color: var(--secondary-color);
    background-color: var(--light-bg);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Program Page Specific */
.program-item {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    background: white;
    border-radius: 0 12px 12px 0;
}

.program-item h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Page */
.contact-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
}

.contact-info h4 {
    margin-bottom: 1.5rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info .contact-item i {
    width: 20px;
    margin-right: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Accessibility Mode Styles */
body.accessibility-mode {
    --primary: #ffff00 !important;
    --primary-foreground: #000000 !important;
    --secondary: #ffffff !important;
    --secondary-foreground: #000000 !important;
    --accent: #ffff00 !important;
    --accent-foreground: #000000 !important;
    --background: #000000 !important;
    --foreground: #ffff00 !important;
    --muted: #333333 !important;
    --muted-foreground: #ffffff !important;
    --card: #000000 !important;
    --card-foreground: #ffff00 !important;
    --border: #ffff00 !important;
    
    background-color: #000000 !important;
    color: #ffff00 !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
}

body.accessibility-mode * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.accessibility-mode img,
body.accessibility-mode video,
body.accessibility-mode iframe {
    filter: grayscale(100%) contrast(120%) !important;
}

body.accessibility-mode a {
    text-decoration: underline !important;
    color: #00ff00 !important; /* Green for links to distinguish */
    font-weight: bold !important;
}

body.accessibility-mode a:hover,
body.accessibility-mode a:focus {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

body.accessibility-mode button,
body.accessibility-mode .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

body.accessibility-mode button:hover,
body.accessibility-mode .btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode input,
body.accessibility-mode textarea,
body.accessibility-mode select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .navbar,
body.accessibility-mode nav,
body.accessibility-mode footer {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

/* Ensure icons are visible */
body.accessibility-mode i,
body.accessibility-mode svg,
body.accessibility-mode path {
    color: currentColor !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}
