/* Pages specific styles */
/* Extracted from inline styles in v_*.php files */

/* --- v_foyer.php --- */
.foyer-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.foyer-hero h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.foyer-hero p {
    color: #64748b;
    font-size: 1.1rem;
}

.foyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.foyer-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.foyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.price-label {
    color: #475569;
    font-weight: 500;
}

.price-tag {
    background: #0f172a;
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-tag.alt {
    background: #3b82f6;
}

.info-list li {
    margin-bottom: 0.5rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3b82f6;
    color: white;
    padding: 1rem 2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.contact-cta:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* --- v_transport.php --- */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
}

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.transport-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.transport-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: inherit;
}

.transport-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--secondary-color);
}

.info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-row i {
    color: var(--primary-color);
    margin-top: 4px;
    width: 20px;
}

.btn-download {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #f1f5f9;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: white;
}

.tad-section {
    background: white;
    border-radius: 16px;
    max-width: 1400px;
    margin: 0 auto 60px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .tad-section {
        flex-direction: row;
    }
}

.tad-content {
    padding: 40px;
    flex: 1;
}

.tad-image {
    flex: 1;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.tad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- v_agenda.php --- */
.month-separator {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.agenda-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.agenda-row:hover {
    background: #f8fafc;
}

.agenda-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    flex-shrink: 0;
}

.day-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.day-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.agenda-details {
    flex: 1;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.event-desc {
    color: var(--text-main);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .agenda-row {
        flex-direction: column;
        gap: 1rem;
    }

    .agenda-date-box {
        width: 100%;
        height: auto;
        padding: 0.5rem;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .day-number {
        font-size: 1.2rem;
    }
}

.agenda-row.evt-recurrent {
    border-left: 5px solid #3b82f6;
}

.agenda-row.evt-notable {
    border-left: 5px solid #22c55e;
}

.agenda-row.evt-major {
    border-left: 5px solid #f59e0b;
    background: #fffbf0;
}

/* --- v_medical.php --- */
.content-container {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.medical-card-body {
    padding: 40px;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.link-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- v_accueil.php --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.featured-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.featured-img.placeholder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    display: inline-block;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.featured-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-meta i {
    color: #f59e0b;
}

.featured-content p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.border-l-4 {
    border-left-width: 4px;
    padding-left: 10px;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.border-green-500 {
    border-color: #22c55e;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.border-orange-500 {
    border-color: #f97316;
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.agenda-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.agenda-item:hover {
    transform: translateX(5px);
}

/* --- v_associations.php --- */
:root {
    --ass-blue: #2563eb;
    --ass-cyan: #0ea5e9;
    --ass-slate: #0f172a;
    --ass-muted: #475569;
    --ass-radius: 12px;
    --ass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ass-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ass-card {
    background: #fff;
    border-radius: var(--ass-radius);
    box-shadow: var(--ass-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.ass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ass-shadow-lg);
}

.ass-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--ass-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ass-card-title i {
    font-size: 1rem;
    opacity: 0.8;
}

.ass-line {
    margin: 0;
    color: var(--ass-slate);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ass-muted {
    color: var(--ass-muted);
    font-size: 0.9rem;
}

.ass-link {
    color: var(--ass-blue);
    text-decoration: none;
    font-weight: 600;
}

.ass-link:hover {
    text-decoration: underline;
}

.ass-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    margin-right: 5px;
}

.section-divider {
    border-top: 1px solid #e2e8f0;
    margin: 3rem 0 2rem;
    position: relative;
    text-align: center;
}

.section-divider span {
    background: #f3f4f6;
    padding: 0 1rem;
    position: relative;
    top: -0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- v_cantine.php --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.menu-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.menu-card-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-dates {
    font-weight: 700;
    color: #0ea5e9;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    font-size: 0.8rem;
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-image-container {
    width: 100%;
    height: 250px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image-container img {
    transform: scale(1.03);
}

.menu-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-card:hover .menu-card-overlay {
    opacity: 1;
}

.btn-zoom {
    background: white;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.menu-card:hover .btn-zoom {
    transform: translateY(0);
}

/* MODAL */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: #64748b;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .prev-btn {
        left: 10px;
        top: 50%;
    }

    .next-btn {
        right: 10px;
        top: 50%;
    }

    .lightbox-content {
        max-width: 100vw;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        z-index: 10;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

/* --- v_cimetiere.php --- */
.cimetiere-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .cimetiere-grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
    }
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #e11d48;
}

.notice-title {
    color: #e11d48;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-content {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.image-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-card:hover {
    transform: scale(1.02);
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.zoom-hint {
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-modal img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn-cimetiere {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn-cimetiere:hover {
    color: #bbb;
}

/* --- v_arretes.php & v_conseils.php (Shared) --- */
.viewer-container {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 80vh;
}

@media (min-width: 900px) {
    .viewer-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.viewer-sidebar {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 900px) {
    .viewer-sidebar {
        width: 350px;
        flex-shrink: 0;
        height: 800px;
        max-height: 80vh;
    }
}

.viewer-sidebar h3 {
    font-size: 1.25rem;
    color: #0d6efd;
    /* var(--primary-blue) assumption if defined or standard blue */
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.list-item:hover,
.list-item.active {
    background: #eff6ff;
    /* var(--light-blue) */
    border-color: #3b82f6;
    /* var(--bright-blue) */
    transform: translateX(5px);
}

.list-item.active {
    background: #0d6efd;
    /* var(--primary-blue) */
    color: white;
}

.list-item.active .item-date {
    color: #e2e8f0;
}

.list-item.active i {
    color: white;
}

.list-content {
    display: flex;
    flex-direction: column;
}

.item-date {
    font-size: 0.75rem;
    color: #64748b;
    /* var(--text-light) */
    margin-bottom: 2px;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.main-viewer {
    flex-grow: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .main-viewer {
        height: 800px;
        max-height: 80vh;
    }
}

.viewer-header {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#currentTitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d6efd;
}

.btn-download {
    background: #ef4444;
    /* var(--accent-red) */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: #be123c;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- v_commerces.php --- */
.commerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.shop-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.shop-header {
    background: #0ea5e9;
    /* default var(--primary-color) */
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.shop-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.shop-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #64748b;
}

.info-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-group i {
    color: #0ea5e9;
    margin-top: 4px;
    width: 20px;
}

.hours-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    margin-top: 10px;
}

.hours-table td {
    padding: 4px 0;
}

.hours-table td:first-child {
    font-weight: 600;
    width: 100px;
}

.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-nav-commune {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-commune:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-2px);
}

/* --- v_echo.php --- */
.echo-container {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 80vh;
}

@media (min-width: 900px) {
    .echo-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.echo-sidebar {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 900px) {
    .echo-sidebar {
        width: 350px;
        flex-shrink: 0;
        height: 800px;
        max-height: 80vh;
    }
}

.echo-sidebar h3 {
    font-size: 1.25rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.echo-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.echo-list-item:hover,
.echo-list-item.active {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.echo-list-item.active {
    background: #0d6efd;
    color: white;
}

.echo-list-item.active .echo-date {
    color: #e2e8f0;
}

.echo-list-item.active i {
    color: white;
}

.echo-list-content {
    display: flex;
    flex-direction: column;
}

.echo-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 2px;
}

.echo-title-list {
    font-weight: 600;
    font-size: 0.95rem;
}

.echo-main-viewer {
    flex-grow: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .echo-main-viewer {
        height: 800px;
        max-height: 80vh;
    }
}

#currentEchoTitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d6efd;
}

/* --- v_ecole.php --- */
.ecole-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .ecole-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.schedule-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-row:last-child {
    border-bottom: none;
}

.day-label {
    font-weight: 700;
    color: #0f172a;
    min-width: 100px;
}

.hours-label {
    color: #475569;
    text-align: right;
    flex: 1;
}

.info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 1rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-content {
    color: #334155;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- v_elus.php --- */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    justify-items: center;
}

.council-member {
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.member-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.council-member:hover .member-img {
    transform: translateY(-5px);
    border-color: #2563eb;
}

.member-name {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.member-role {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mayor-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.mayor-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.mayor-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 4px solid #2563eb;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.office-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.office-title {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.official-item {
    margin-bottom: 0.5rem;
    color: #334155;
}

/* --- v_histoire.php --- */
.content-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.history-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.blason-container {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    text-align: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.blason-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.history-section-title {
    font-size: 1.5rem;
    color: #0ea5e9;
    border-left: 4px solid #0ea5e9;
    padding-left: 15px;
    margin: 30px 0 20px;
}

.history-text {
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.timeline-list {
    padding-left: 20px;
    margin-top: 20px;
}

.timeline-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 10px;
}

.timeline-list li::marker {
    color: #0ea5e9;
    font-size: 1.2rem;
}

.fact-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 600px) {
    .blason-container {
        float: none;
        margin: 0 auto 20px;
        display: table;
    }
}

/* --- v_horaire.php --- */
.horaires-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .horaires-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.day-col {
    font-weight: 700;
    color: #0f172a;
    width: 30%;
}

.hours-col {
    color: #334155;
}

.contact-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.contact-value a {
    color: #2563eb;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.chip-rdv {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
}

/* --- v_infodiv.php --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.link-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #00268f;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trash-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.trash-card:hover {
    transform: scale(1.01);
}

.trash-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Lightbox (infodiv specific) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-modal img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover {
    color: #bbb;
}

/* --- v_mentionsLegale.php --- */
.mentions-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.mentions-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* --- v_paiement.php --- */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portal-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.portal-icon {
    font-size: 4rem;
    color: #2563eb;
    margin-bottom: 2rem;
}

.portal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.portal-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.portal-text {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.instruction-box {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #475569;
}

.btn-portal {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-portal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* --- v_photos.php --- */
.gallery-section-title {
    text-align: center;
    font-size: 1.5rem;
    color: #0ea5e9;
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #0ea5e9;
    margin: 10px auto 0;
}

/* Renamed from .lightbox to .photo-lightbox */
.photo-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.photo-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
}

.photo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-prev-btn {
    left: -60px;
}

.photo-next-btn {
    right: -60px;
}

@media (max-width: 768px) {
    .photo-prev-btn {
        left: 0;
    }

    .photo-next-btn {
        right: 0;
    }

    .photo-close-btn {
        top: -30px;
        right: 10px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.img-container {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .img-container img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-icon {
    transform: scale(1);
}

.photo-caption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.btn-nav-commune {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #0f3460;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-nav-commune:hover {
    background-color: #0f3460;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- v_situation.php --- */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.text-content a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- v_utiles.php --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cat-section {
    margin-bottom: 4rem;
}

.cat-title {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.cat-title i {
    color: #2563eb;
}

.link-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.link-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.link-desc {
    color: #64748b;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.link-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.link-btn:hover {
    background-color: #2563eb;
    color: #fff;
}