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

/* Variable CSS pilotée par les réglages de l'app (bords arrondis / droits) */
:root {
    --gallery-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #3d3526;
    line-height: 1.6;
}

/* Navigation - Style Cube Blog clair */
.navbar {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-back, .nav-home {
    color: #6b5d47;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-back:hover, .nav-home:hover {
    background: rgba(168, 153, 104, 0.2);
    color: #a89968;
    transform: translateY(-1px);
}

.nav-title {
    font-size: 1.75rem;
    font-weight: 700;
    flex: 1;
    color: #3d3526;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #6b5d47;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #a89968;
}

.nav-link.active {
    color: #3d3526;
    font-weight: 600;
}

.nav-link.nav-disabled {
    color: #b5a89a;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-separator {
    color: #b5a89a;
    user-select: none;
}

/* Contenu principal */
.main-content {
    max-width: 100%;
    margin: 0;
    padding: 3rem 1rem;
}

/* Statistiques - Style Cube Blog clair */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(168, 153, 104, 0.6);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #f5f0e6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #e8dfc8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Filtres - Style Cube Blog clair */
.filters-container {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.filter-group label {
    color: #f5f0e6;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #c4b68a;
    color: #3d3526;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #8a7950;
    background: #d4c5a0;
    box-shadow: 0 0 0 3px rgba(168, 153, 104, 0.2);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #8a7950 0%, #756642 100%);
    color: #f5f0e6;
    box-shadow: 0 4px 6px -1px rgba(138, 121, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(138, 121, 80, 0.4);
}

.btn-secondary {
    background: #c4b68a;
    color: #3d3526;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #b5a678;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Résultats */
.results-info {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    text-align: center;
    color: #475569;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b5d47;
    font-size: 1.125rem;
}

/* Ligne de statistiques */
.stats-line {
    text-align: center;
    color: #3d3526;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

/* Grille d'objets - Style Portfolio Minimaliste */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.66rem;
    padding: 0;
    width: 100%;
}

.object-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.object-card {
    background: transparent;
    border: none;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.37, 0, 0.63, 1);
    position: relative;
    aspect-ratio: 1 / 1;
}

.object-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s cubic-bezier(0.37, 0, 0.63, 1);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.37, 0, 0.63, 1);
}

.object-card:hover .card-image::before {
    opacity: 1;
}

.object-card:hover .card-image {
    transform: scale(1.05);
}

.card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #3a3530 0%, #2a2520 100%);
}

.card-no-image::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.no-image-icon {
    font-size: 3.5rem;
    opacity: 0.2;
    color: #e8dfc8;
    position: relative;
    z-index: 1;
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    z-index: 2;
    background: transparent;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.37, 0, 0.63, 1);
}

.object-card:hover .card-body {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 0;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Raleway', -apple-system, sans-serif;
}

.card-separator {
    display: none;
}

.card-common-name {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-style: normal;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.card-meta-line {
    display: none;
}

.meta-item {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 200;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badge-messier {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.badge-custom {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.15) 100%);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.status-ok {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.status-processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.status-needed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.badge-final {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-raw {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(100, 116, 139, 0.15) 100%);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Page de détail - Style minimaliste */
.object-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.detail-header {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: none;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: #3d3526;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: 'Raleway', -apple-system, sans-serif;
}

.title-separator {
    display: none;
}

.detail-subtitle-inline {
    display: block;
    color: #3d3526;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: normal;
}

.detail-description-text {
    color: #6b5d47;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.detail-badges {
    display: none;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-main {
    margin-bottom: 0;
}

.detail-image-container {
    margin: 3rem 0;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    box-shadow: none;
    width: 100%;
}

.detail-image {
    width: 100%;
    border-radius: var(--gallery-radius);
    display: block;
}

.detail-no-image {
    background: #f5f0e6;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--gallery-radius);
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.no-image-icon-large {
    font-size: 4rem;
    opacity: 0.2;
    display: block;
    margin-bottom: 1rem;
}

.detail-no-image p {
    color: #6b5d47;
    font-size: 1.125rem;
    margin: 0;
}

.detail-gallery-section {
    margin-top: 3rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.detail-gallery-section h2 {
    color: #3d3526;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.detail-gallery-section h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #3d3526;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: 0.05em;
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.66rem;
}

.detail-thumbnails-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.66rem;
}

.detail-thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    border: none;
    transition: all 0.4s cubic-bezier(0.37, 0, 0.63, 1);
    background: #1a1a1a;
    box-shadow: none;
    aspect-ratio: 1 / 1;
}

.detail-thumbnail-item:hover {
    transform: scale(1.02);
    box-shadow: none;
    border-color: transparent;
    z-index: 10;
}

.detail-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.37, 0, 0.63, 1);
}

.detail-thumbnail-item:hover .detail-thumbnail {
    transform: scale(1.05);
}

.info-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 100px;
}

.info-card h3 {
    display: none;
}

.info-list {
    color: #6b5d47;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

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

.info-label {
    color: #6b5d47;
    font-weight: 500;
}

.info-value {
    color: #3d3526;
    font-weight: 400;
    text-align: right;
}

.detail-description {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.detail-description h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f5f0e6;
}

.detail-description p {
    color: #e8dfc8;
    line-height: 1.8;
    font-size: 1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.lightbox-image-container.zoomed {
    cursor: move;
    max-width: none;
    max-height: none;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
    user-select: none;
    cursor: grab;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-image.zoomed {
    max-width: none;
    max-height: none;
    cursor: move;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    border: none;
    color: #3d3526;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: #ffffff;
    transform: scale(1.05);
    opacity: 0.8;
}

.lightbox-zoom-btn, .lightbox-zoom-out-btn, .lightbox-zoom-reset-btn, .lightbox-zoom-native-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: #ffffff;
    border: 2px solid #3d3526;
    color: #3d3526;
    font-size: 1.5rem;
    font-weight: bold;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001;
    transition: all 0.2s;
}

.lightbox-zoom-out-btn {
    top: 4.5rem;
}

.lightbox-zoom-reset-btn {
    top: 8rem;
    font-size: 1rem;
}

.lightbox-zoom-native-btn {
    font-size: 0.9rem;
}

.lightbox-zoom-btn:hover, .lightbox-zoom-out-btn:hover, .lightbox-zoom-reset-btn:hover, .lightbox-zoom-native-btn:hover {
    background: rgba(61, 53, 38, 0.1);
    border-color: rgba(61, 53, 38, 0.5);
    transform: scale(1.05);
}

.lightbox-zoom-btn.active, .lightbox-zoom-out-btn.active, .lightbox-zoom-reset-btn.active, .lightbox-zoom-native-btn.active {
    background: #ffffff;
    border-color: rgba(61, 53, 38, 0.6);
    color: #3d3526;
}

.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: none;
    color: #3d3526;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.2s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
    opacity: 0.8;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-info {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0;
    border-radius: 0;
    z-index: 1001;
    display: flex;
    gap: 0;
    align-items: center;
}

#lightbox-counter {
    display: none;
}

#lightbox-type {
    background: transparent;
    color: #3d3526;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

/* Contact Page */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d3526;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.125rem;
    color: #6b5d47;
}

.contact-form {
    background: \#f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    color: #f5f0e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #c4b68a;
    color: #3d3526;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a7950;
    background: #d4c5a0;
    box-shadow: 0 0 0 3px rgba(168, 153, 104, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-success {
    text-align: center;
    background: \#f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-success h2 {
    font-size: 2rem;
    color: #3d3526;
    margin-bottom: 1rem;
}

.contact-success p {
    font-size: 1.125rem;
    color: #6b5d47;
    margin-bottom: 2rem;
}

.contact-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.contact-error p {
    color: #991b1b;
    margin: 0;
    font-weight: 500;
}

/* Footer - Style Cube Blog clair */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b5d47;
    margin-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
    font-weight: 500;
}

/* Page objet Système Solaire (solar_object.php) — titre simple façon Messier */
.solar-page-title {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 0 0.5rem;
}

.solar-page-title h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3d3526;
    margin: 0.25rem 0 0 0;
}

.solar-page-back {
    display: inline-block;
    color: #6b5d47;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.solar-page-back:hover {
    color: #3d3526;
}

/* Ancien style objet solaire (conservé pour compatibilité) */
.solar-object-header {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.solar-back-link {
    display: inline-block;
    color: #6b5d47;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.solar-back-link:hover {
    color: #3d3526;
}

.solar-object-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3d3526;
    margin: 0 0 0.5rem 0;
}

.solar-eph-note {
    color: #6b5d47;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.solar-observations-title {
    max-width: 900px;
    margin: 0 auto 1rem auto;
    padding: 0 0.5rem;
    font-size: 1.35rem;
    color: #3d3526;
    font-weight: 600;
}

.solar-observations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.solar-observation-card {
    display: block;
    background: #f5f5f5;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

.solar-observation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.solar-observation-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
}

.solar-observation-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

.solar-observation-thumb.video-thumb {
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-badge {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.solar-observation-body {
    padding: 0.75rem 1rem;
}

.solar-observation-title {
    font-weight: 600;
    color: #3d3526;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.solar-observation-meta {
    font-size: 0.8rem;
    color: #6b5d47;
}

.solar-observation-meta-large {
    font-size: 1rem;
    color: #6b5d47;
    margin-top: 0.5rem;
}

/* Détail d'une observation : grille de médias */
.solar-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.solar-media-cell {
    background: #f5f5f5;
    border-radius: var(--gallery-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.solar-media-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.solar-media-video {
    width: 100%;
    display: block;
    background: #000;
}

.solar-media-caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #6b5d47;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Vidéo dans la vignette de la galerie détail (style Messier) */
.detail-video {
    width: 100%;
    display: block;
    background: #000;
    border-radius: var(--gallery-radius);
}

.badge-video {
    background: #6d28d9;
    color: #fff;
}

.detail-back-link {
    margin-top: 0.75rem;
}

.detail-back-link a {
    color: #6b5d47;
    text-decoration: none;
    font-size: 0.9rem;
}

.detail-back-link a:hover {
    color: #3d3526;
}

/* Responsive - Style Cube Blog */
@media (max-width: 1200px) {
    .objects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-title {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        font-size: 0.85rem;
    }
    
    .object-detail {
        padding: 0 1rem;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        position: static;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .detail-subtitle-inline {
        font-size: 1.125rem;
    }
    
    .detail-thumbnails,
    .detail-thumbnails-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .objects-grid {
        grid-template-columns: 1fr;
        gap: 0.33rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .detail-subtitle-inline {
        font-size: 1.125rem;
    }
    
    .detail-thumbnails,
    .detail-thumbnails-vertical {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-common-name {
        font-size: 1rem;
    }
}