/* Centenaire Jean Françaix - Unified Stylesheet */
/* Consolidated from style.css, project_style.css, and events_style.css */

/* ============================================
   CSS VARIABLES - Unified Design Tokens
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #800000;
    --primary-light: #a00000;
    --primary-gradient: linear-gradient(135deg, #800000 0%, #a00000 100%);

    /* Legacy aliases for backward compatibility */
    --project-primary: #800000;
    --project-primary-light: #a00000;

    /* Text Colors */
    --text-color: #333;
    --text-muted: #666;
    --text-light: #767676;

    /* Background Colors */
    --bg-body: #f0f0f0;
    --bg-content: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #f8f9fa;
    --bg-sidebar: #f6f6f6;

    /* Border & Divider Colors */
    --border-color: #ddd;
    --border-light: #eee;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: 'Libre Baskerville', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-stack);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   LAYOUT CONTAINER
   ============================================ */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-content);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: #fff url('../images/logo.png') no-repeat top right;
    height: 150px;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.header-title-link {
    display: block;
    height: 100%;
    width: 100%;
}

.site-title {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-top: 40px;
}

/* Google Translate Widget */
#google_translate_element {
    position: absolute;
    bottom: -18px;
    right: 20px;
    z-index: 10;
}

/* Style the Google Translate dropdown */
#google_translate_element .goog-te-gadget {
    font-size: 0;
    color: transparent;
}

#google_translate_element .goog-te-gadget > span {
    display: none;
}

#google_translate_element .goog-te-combo {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 28px 6px 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23800000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

#google_translate_element .goog-te-combo:hover {
    background-color: var(--primary-color);
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    box-shadow: var(--shadow-md);
}

#google_translate_element .goog-te-combo:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.15);
}

/* Hide Google Translate top bar, notification bar and feedback popup */
.goog-te-banner-frame,
.skiptranslate.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-te-spinner-pos,
iframe.goog-te-banner-frame,
body > .skiptranslate:not(#google_translate_element),
#goog-gt-vt,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-hSRGPd,
div[id^="goog-gt-"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body {
    top: 0 !important;
}

/* Home Button (Legacy - removed from HTML) */
.home-btn {
    display: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav.main-nav {
    background-color: #444;
    color: #fff;
    border-top: 1px solid #555;
    border-bottom: 5px solid var(--primary-color);
    position: relative;
}

/* Hamburger toggle button - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav.main-nav ul {
    list-style: none;
    display: flex;
}

nav.main-nav li {
    border-right: 1px solid #555;
    display: flex;
    align-items: center;
}

nav.main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 12px 20px;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    background-color: var(--primary-color);
    text-decoration: none;
}

/* Specific Style for ACCUEIL */
nav.main-nav a.nav-home {
    background-color: var(--primary-light); /* Make it stand out more */
    border-right: 1px solid #555;
    transition: all 0.2s ease;
    border-bottom: 3px solid var(--primary-color); /* Add a subtle border to give it weight */
    margin-bottom: -3px; /* Compensate for the border to keep vertical alignment */
}



nav.main-nav a.nav-home:hover::before {
    transform: scale(1.2);
}

nav.main-nav a.nav-home:hover,
nav.main-nav a.nav-home.active {
    background-color: var(--primary-color);
}

/* ============================================
   PAGE LAYOUT: MAIN + SIDEBAR
   ============================================ */
.main-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
}

.main-container.full-width {
    grid-template-columns: 1fr;
}

.sidebar {
    background-color: var(--bg-sidebar);
    padding: 10px;
    border-right: 1px solid var(--border-color);
}

.content-area {
    padding: 30px;
}

/* ============================================
   SIDEBAR MODULES
   ============================================ */
.module {
    margin-bottom: 25px;
    background-color: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.module h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(128, 0, 0, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.side-menu li {
    list-style: none;
    border-bottom: 1px solid var(--border-light);
}

.side-menu a {
    display: block;
    padding: 8px 0;
    color: #555;
}

.side-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    transition: 0.2s;
}

/* Enhanced Sidebar Lists */
.sidebar-list {
    font-size: 0.85rem !important;
    padding-left: 0;
}

.sidebar-list li {
    list-style: none;
    margin-bottom: 2px;
    border-bottom: 1px solid #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-list-separated li {
    margin-bottom: 2px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 4px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li:hover {
    background-color: #fce4e4;
    padding-left: 12px;
}

.sidebar-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   SEARCH FUNCTIONALITY
   ============================================ */
#citySearch {
    padding: 10px 40px 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    min-width: 280px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

#citySearch:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.15);
    min-width: 320px;
}

.search-container {
    position: relative;
    display: inline-block;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--border-light);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.clear-search-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    padding: 5px 0;
}

.city-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.city-dropdown-item:last-child {
    border-bottom: none;
}

.city-dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.side-menu-granular li {
    margin-bottom: 2px;
}

.side-menu-granular a {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
}

.side-menu-granular a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#backToTop:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#backToTop:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.hidden-event {
    display: none !important;
}

/* ============================================
   CONTENT STYLING
   ============================================ */
.event-date {
    display: inline-block;
    background-color: #fce4e4;
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 4px;
    vertical-align: middle;
    border: 1px solid rgba(128, 0, 0, 0.2);
    box-shadow: none;
    text-transform: capitalize;
}

.content-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.article-content {
    font-size: 15px;
}

.article-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.event-entry {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.event-entry:hover {
    background-color: #f9f9f9;
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-entry p {
    margin-bottom: 8px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #444;
}

.intro-highlight {
    font-size: 1.1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.news-item {
    margin-bottom: 30px;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.news-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-section,
.events-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.hero-section h2,
.events-hero h2 {
    font-size: 1.6rem;
    font-family: var(--font-sans);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle,
.events-hero p {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    opacity: 0.9;
    font-style: italic;
}

/* ============================================
   PROJECT & CARD SECTIONS
   ============================================ */
.project-page {
    background-color: var(--bg-light);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    font-family: var(--font-serif);
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-grid,
.events-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.events-portal-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.project-card,
.portal-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portal-card {
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    align-items: center;
    justify-content: center;
}

.portal-card.highlight {
    border-top: 4px solid var(--primary-color);
}

.project-card:hover,
.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portal-card:hover {
    border-color: var(--primary-light);
}

.project-card h3 {
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    text-transform: uppercase;
    min-height: 3.2em;
    display: flex;
    align-items: center;
}

.portal-card h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portal-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.portal-card span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-card ul {
    list-style: none;
    padding: 0;
}

.project-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.project-card li:last-child {
    border-bottom: none;
}

.project-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    font-size: 1.2rem;
}

/* Highlight Block */
.highlight-block {
    background: #fff;
    border-left: 6px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 4px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    font-style: italic;
    color: #555;
}

/* ============================================
   EVENTS DISCLAIMER
   ============================================ */
.events-disclaimer {
    background: #fff;
    border-left: 5px solid #d4af37;
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.events-disclaimer strong {
    color: var(--primary-color);
}

.selection-title {
    font-family: var(--font-sans);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.testimonial-content p:not(.no-quotes)::before {
    content: "«";
    font-size: 2rem;
    color: var(--primary-light);
    line-height: 0;
    margin-right: 5px;
    vertical-align: -10px;
}

.testimonial-content p:not(.no-quotes)::after {
    content: "»";
    font-size: 2rem;
    color: var(--primary-light);
    line-height: 0;
    margin-left: 5px;
    vertical-align: -10px;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #222;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.testimonial-author strong {
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.85rem;
    color: #777;
    font-weight: normal;
}

/* ============================================
   VIDEO CARDS
   ============================================ */
.video-card {
    border-left: none;
    border-top: 4px solid var(--primary-color);
}

.video-card h3 {
    font-family: var(--font-sans);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   GRID VARIATIONS
   ============================================ */
.project-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.compact-grid .project-card {
    padding: 15px;
}

.compact-grid .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    height: 3.5em;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.compact-grid .placeholder-image {
    height: 120px;
    font-size: 2rem;
    margin-bottom: 10px;
}

.compact-grid p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.compact-grid .action-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ============================================
   BOUTIQUE IMAGE STANDARDIZATION
   ============================================ */
.boutique-img-wrapper {
    height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    padding: 15px;
    overflow: hidden;
}

.boutique-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.boutique-img-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.card-action-container {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    width: 100%;
}

/* ============================================
   MODAL/LIGHTBOX STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: var(--font-stack);
    font-size: 1.1rem;
}

.modal-close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.clickable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   INDEX.HTML SPECIFIC STYLES
   ============================================ */
.intro-banner {
    background-color: #fff9c4;
    color: #5d4037;
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    border: 1px solid #fff59d;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.content-heading {
    text-align: center;
    font-weight: 700;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.article-content p {
    margin-bottom: 22px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
}

.participate-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    /* Simplified border treatment */
    border-left: 5px solid var(--primary-color);
}

.participate-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.participate-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.participate-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.quote-container {
    margin-top: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.quote-container p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #333;
    color: #aaa;
    padding: 25px 20px;
    font-size: 12px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-sep {
    margin: 0 10px;
    color: #555;
}

.footer-mention {
    margin-top: 5px;
    font-size: 11px;
    color: #777;
    font-style: italic;
}

/* ============================================
   VIDEO PAGE STYLES
   ============================================ */
.video-container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* video.html uses .video-card directly - styles extend the base .video-card */
.video-grid .video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    border-top: none;
    padding: 0;
}

.video-grid .video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-thumbnail {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    line-height: 1.4;
}

.main-container.no-sidebar {
    display: block;
}

.no-sidebar .content-area {
    width: 100%;
    padding: 0;
}

/* ============================================
   ACTION BUTTON (Boutique & Liens)
   ============================================ */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 280px;
    text-align: center;
    height: 68px;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--primary-light);
    color: #fff;
    text-decoration: none;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 3rem;
    border: 1px solid var(--border-light);
}

/* ============================================
   PRESS SIDEBAR STYLES
   ============================================ */
.press-sidebar-link {
    display: block;
    padding: 4px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    color: #333;
}

.press-sidebar-link:hover {
    color: #800000 !important;
    background-color: #fce4e4 !important;
    padding-left: 14px !important;
}

.press-sidebar-link.active {
    color: #000;
    font-weight: bold;
    border-left: 4px solid #333;
    background-color: #f9f9f9;
}

/* ============================================
   RECORDING PAGE STYLES
   ============================================ */
.recording-module {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.recording-header {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-light);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.recording-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.recording-image {
    max-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recording-image-sm {
    max-width: 150px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recording-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

/* ============================================
   ARTICLE/PRESS PAGE STYLES
   ============================================ */
.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-description {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.read-more-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 2px;
}

.read-more-link:hover {
    text-decoration: none;
    border-bottom-color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ============================================
   CONTACTS PAGE STYLES
   ============================================ */
.contact-role {
    font-size: 0.9em;
    color: var(--text-muted);
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.centered-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   COUNTRY EVENT HEADER
   ============================================ */
.country-event-header {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.country-event-header + .search-container {
    margin-bottom: 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

/* ============================================
   FOCUS-VISIBLE GLOBAL
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Prevent horizontal overflow on all screen sizes */
body {
    overflow-x: hidden;
}

/* Always show vertical scrollbar to prevent layout shift during PJAX navigation */
html {
    overflow-y: scroll;
}

/* Tablet and below */
@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    .wrapper {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .main-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sidebar {
        order: 2;
        border-right: none;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    .content-area {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }

    /* Header adjustments */
    header {
        height: auto;
        background-position: center top;
        background-size: 100% auto;
        text-align: center;
        padding: 80px 10px 20px;
        width: 100%;
        min-height: 100px;
    }

    .site-title {
        margin-top: 0;
        font-size: 1.8rem;
    }

    .home-btn {
        left: 50%;
        transform: translate(-50%, -50%);
        top: 15px;
        padding: 8px 15px;
        font-size: 0.75rem;
        white-space: nowrap;
        z-index: 10;
    }

    /* Navigation - Hamburger menu */
    .nav-toggle {
        display: flex;
    }

    nav.main-nav {
        width: 100%;
        position: relative;
    }

    nav.main-nav ul {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        background-color: #444;
    }

    nav.main-nav ul.nav-open {
        display: flex;
        max-height: 600px;
    }

    nav.main-nav li {
        border-right: none;
        border-bottom: 1px solid #555;
        width: 100%;
    }

    nav.main-nav a {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Remove desktop-only border trick on mobile */
    nav.main-nav a.nav-home {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Hero sections */
    .hero-section,
    .events-hero {
        padding: 25px 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .hero-section h2,
    .events-hero h2 {
        font-size: 1.4rem;
    }

    .hero-subtitle,
    .events-hero p {
        font-size: 1rem;
    }

    /* Grids */
    .project-grid,
    .events-portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .events-portal-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Cards and modules */
    .project-card,
    .portal-card,
    .module {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .testimonial-card,
    .video-card {
        width: 100%;
        max-width: 100%;
    }

    /* Images */
    .boutique-img-wrapper {
        height: auto;
        min-height: 300px;
    }

    /* Search */
    #citySearch {
        min-width: 200px;
        width: 100%;
        max-width: 100%;
    }

    #citySearch:focus {
        min-width: 200px;
    }

    /* Back to top button */
    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 18px;
    }

    /* Video grid */
    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Recording flex */
    .recording-flex {
        flex-direction: column;
    }

    .recording-image,
    .recording-image-sm {
        max-width: 100%;
    }

    /* Country event header */
    .country-event-header {
        display: block;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 700px) {
    .modal-content {
        width: 100%;
        max-width: 95%;
    }

    .content-heading {
        font-size: 1.6rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {

    /* Force single column everywhere */
    .events-portal-grid,
    .project-grid,
    .compact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Further reduce padding */
    .content-area {
        padding: 15px 10px;
    }

    header {
        padding: 70px 10px 15px;
    }

    .hero-section,
    .events-hero {
        padding: 20px 10px;
    }

    .hero-section h2,
    .events-hero h2 {
        font-size: 1.2rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    /* Modules */
    .module {
        padding: 15px;
    }

    .project-card,
    .portal-card {
        padding: 20px;
    }

    /* Google Translate Widget */
    #google_translate_element {
        position: static;
        text-align: center;
        margin-top: 8px;
    }

    #google_translate_element .goog-te-combo {
        font-size: 12px;
        padding: 5px 24px 5px 12px;
    }

    /* Navigation */
    nav.main-nav a {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Images in flex containers */
    div[style*="display: flex"] {
        flex-direction: column !important;
    }

    img[style*="max-width"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .wrapper {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .home-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .hero-section h2,
    .events-hero h2 {
        font-size: 1.1rem;
    }

    .content-area {
        padding: 10px 8px;
    }

    .module h3 {
        font-size: 13px;
    }

    /* Ensure all content respects viewport */
    * {
        max-width: 100%;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Force wrap long text */
    p,
    li,
    div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   WORLD MAP POPUP STYLES
   ============================================ */
.map-popup h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.map-popup ul {
    list-style: none;
}

.map-popup ul li {
    line-height: 1.4;
    color: #444;
}

.map-popup ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 15px;
}

/* Fix Leaflet popup z-index vs header/nav */
.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 2 !important;
}

/* PJAX Router Transitions */
.main-container {
    transition: opacity 0.15s ease;
}
.router-leaving {
    opacity: 0;
}
.router-entering {
    opacity: 0;
}