/* Conseils Hero Section */
#conseils-hero {
    min-height: 70vh;
    background-image: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.3)
    ), url('../../assets/images/ui/conseils.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

#conseils-hero h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

#conseils-hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeIn 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Conseils Nav Section */
#conseils-nav {
    position: sticky;
    top: 70px;
    z-index: 90;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.conseils-nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.nav-link:hover, .nav-link.active {
    background-color: #f5f9ff;
    color: #007bff;
    transform: translateY(-2px);
}

/* Components Grid */
.composants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.composant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.composant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    padding: 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
}

.card-header i {
    font-size: 2rem;
    color: #007bff;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 200px; /* Ensure minimum height before loading */
    background-color: #f5f5f5; /* Placeholder background */
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.recommendation {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 0 5px 5px 0;
    margin-top: 1rem;
}

/* Budget Guide */
.budget-guide {
    margin: 4rem 0 2rem;
    text-align: center;
}

.budget-guide h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.budget-slider {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.budget-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.budget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.budget-card h4 {
    margin-top: 0;
    font-size: 1.3rem;
}

.budget-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 1rem 0;
}

.budget-card.entry {
    border-top: 5px solid #28a745;
}

.budget-card.mid {
    border-top: 5px solid #fd7e14;
}

.budget-card.high {
    border-top: 5px solid #dc3545;
}

/* Sections styling */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #007bff;
}

.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #666;
}

.alt-bg {
    background-color: #f8f9fa;
}

/* Accordion */
.accordion-container {
    margin: 3rem 0;
}

.accordion-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.accordion-header:hover {
    background-color: #f5f9ff;
}

.accordion-item.active .accordion-header {
    background-color: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #2c3e50;
}

.accordion-header h3 i {
    color: #007bff;
    font-size: 1.1rem;
}

.accordion-header > i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #007bff;
}

.accordion-item.active .accordion-header > i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), 
                padding 0.2s ease;
    will-change: max-height, padding;
    visibility: visible !important;
    display: block !important;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    padding-top: 0;
    max-height: 5000px; /* Increased for complex content */
    transition: max-height 0.4s ease-in-out,
                padding 0.2s ease;
}

/* Content Layout for optimization section */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.content-text {
    order: 1;
}

.content-visual {
    order: 2;
}

.performance-boost {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.performance-boost h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.optimization-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
}

.step-category h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.step-category h5 i {
    color: #007bff;
}

.step-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.step-category li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 0.8rem;
}

.step-category li strong {
    color: #2c3e50;
}

.quick-tips {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.quick-tips h5 {
    margin: 0 0 1rem 0;
    color: #8b4513;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    gap: 1rem;
}

.tip-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.tip-item strong {
    color: #8b4513;
    display: block;
    margin-bottom: 0.3rem;
}

.performance-meter {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.performance-meter h5 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #2c3e50;
}

.meter-comparison {
    display: grid;
    gap: 1rem;
}

.meter-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 1rem;
}

.meter-item span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.meter-bar {
    position: relative;
    background: #e9ecef;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.meter-before, .meter-after {
    position: absolute;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    transition: width 1s ease;
}

.meter-before {
    background: linear-gradient(90deg, #ff4757, #ff3838);
    z-index: 1;
}

.meter-after {
    background: linear-gradient(90deg, #2ed573, #1dd1a1);
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 1.5s ease 0.5s both;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: var(--final-width); }
}

/* Game Settings Tabs */
.game-settings-tabs {
    margin: 2rem 0;
}

.settings-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab.active {
    display: block;
}

.settings-tab h5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0 0 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-grid {
    display: grid;
    gap: 0.8rem;
}

.setting-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.setting-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setting-item.priority-critical {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.setting-item.priority-high {
    border-left-color: #fd7e14;
    background: #fff8f0;
}

.setting-item.priority-medium {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.setting-item.priority-low {
    border-left-color: #28a745;
    background: #f0fff4;
}

.setting-name {
    font-weight: 600;
    color: #2c3e50;
}

.setting-value {
    color: #495057;
    text-align: center;
}

.impact {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    white-space: nowrap;
}

.settings-grid .impact {
    background: #e9ecef;
    color: #495057;
}

.priority-critical .impact {
    background: #dc3545;
    color: white;
}

.priority-high .impact {
    background: #fd7e14;
    color: white;
}

/* DLSS/FSR Technology comparison */
.dlss-fsr-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.dlss-fsr-info h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.tech-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tech-item p {
    margin: 0.5rem 0;
    color: #495057;
}

.compatibility {
    display: block;
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* FPS Calculator */
.fps-calculator {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fps-calculator h5 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #2c3e50;
}

.calc-example {
    text-align: center;
}

.gpu-example {
    margin-bottom: 1rem;
}

.gpu-example strong {
    display: block;
    color: #007bff;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.fps-scenarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.fps-scenarios span {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

/* Enhanced Benchmark Table */
.benchmark-table {
    margin-top: 2rem;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benchmark-table h4 {
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benchmark-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.benchmark-table th, .benchmark-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.benchmark-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.benchmark-table tbody tr:hover {
    background-color: #f8f9fa;
}

.benchmark-table td:first-child {
    font-weight: 600;
}

/* Impact indicators for benchmark table */
.impact-extreme { color: #dc3545; font-weight: bold; }
.impact-very-high { color: #fd7e14; font-weight: bold; }
.impact-high { color: #ffc107; font-weight: bold; }
.impact-medium { color: #17a2b8; font-weight: bold; }
.impact-low { color: #28a745; font-weight: bold; }

/* Overclocking specific styles */
.oc-component {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #17a2b8;
}

.oc-component h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oc-steps {
    display: grid;
    gap: 1rem;
}

.oc-step {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.oc-step strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.oc-step ul {
    margin: 0;
    padding-left: 1.5rem;
}

.oc-setting {
    color: #007bff;
    font-weight: 600;
}

.temperature-monitoring {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.temperature-monitoring h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temp-limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.temp-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 0.3rem;
}

.temp-item.safe {
    border: 2px solid #28a745;
}

.temp-item.warning {
    border: 2px solid #ffc107;
}

.temp-item .component {
    font-weight: bold;
    color: #2c3e50;
}

.temp-item .temp {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.temp-item .status {
    font-size: 0.85rem;
    font-weight: 600;
}

.temp-item.safe .status {
    color: #28a745;
}

.temp-item.warning .status {
    color: #ffc107;
}

.oc-results {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.oc-results h5 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #2c3e50;
}

.results-grid {
    display: grid;
    gap: 1rem;
}

.result-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.result-item strong {
    display: block;
    color: #007bff;
    margin-bottom: 0.3rem;
}

.result-item p {
    margin: 0.3rem 0;
    color: #495057;
}

.gain {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tool Recommendations */
.tool-recommendation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.tool-recommendation h4 {
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.tool-header strong {
    font-size: 1.1rem;
}

.tool-type {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tool-item p {
    margin: 0.5rem 0;
    opacity: 0.9;
    line-height: 1.5;
}

.tool-price {
    display: block;
    font-weight: bold;
    color: #ffd700;
    margin-top: 0.5rem;
}

/* Emergency Settings */
.emergency-settings {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 2px solid #dc3545;
}

.emergency-settings h5 {
    margin: 0 0 1rem 0;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.emergency-steps {
    display: grid;
    gap: 1rem;
}

.emergency-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.emergency-item strong {
    display: block;
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.emergency-item p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* RAM Timings */
.ram-timings {
    margin: 1rem 0;
}

.timing-example {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timing-example strong {
    color: #2c3e50;
}

/* Warning Box Enhanced */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.warning-box div {
    flex: 1;
}

.warning-box p {
    margin: 0;
    font-weight: 500;
    color: #856404;
    line-height: 1.5;
}

/* Support Info Enhanced */
.support-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #90caf9;
}

.support-info i {
    color: #1976d2;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.support-info div {
    flex: 1;
}

.support-info h6 {
    margin: 0 0 0.3rem 0;
    color: #1976d2;
    font-weight: 600;
}

.support-info p {
    margin: 0;
    color: #0d47a1;
    line-height: 1.5;
}

.support-info a {
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

.tuto-video {
    margin: 2rem 0 1rem;
}

.tuto-video h4 {
    margin-bottom: 1rem;
}

.tuto-video iframe {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

.benchmark-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.benchmark-table table {
    width: 100%;
    border-collapse: collapse;
}

.benchmark-table th, .benchmark-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.benchmark-table th {
    background-color: #f5f9ff;
}

/* Warning Box */
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0 5px 5px 0;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
}

/* Ergonomie Section */
.ergonomie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.ergo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ergo-card:hover {
    transform: translateY(-5px);
}

.ergo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum height before loading */
    background-color: #f5f5f5; /* Placeholder background */
}

.ergo-card h3 {
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    margin: 0;
}

.ergo-card ul {
    padding: 0 1.5rem 1.5rem;
    list-style: none;
}

.ergo-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ergo-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
}

/* Maintenance Timeline */
.maintenance-timeline {
    margin: 3rem 0;
    position: relative;
}

.maintenance-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.maintenance-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.time-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
    flex-shrink: 0;
}

.maintenance-content {
    background: white;
    border-radius: 0 15px 15px 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-left: 2rem;
    flex-grow: 1;
}

.maintenance-content h3 {
    margin-top: 0;
}

/* Cleaning Guide */
.cleaning-guide {
    margin-top: 4rem;
    text-align: center;
}

.cleaning-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-grow: 1;
    text-align: left;
}

.step-content h4 {
    margin-top: 0;
}

/* Games Section */
.games-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--secondary-bg);
    color: var(--text-color);
}

.filter-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-btn span {
    display: inline-block;
}

.filter-btn.active,
.filter-btn input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    opacity: 0.9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum height before loading */
    background-color: #f5f5f5; /* Placeholder background */
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    margin-top: 0;
}

.game-info p {
    color: #666;
    margin-bottom: 1rem;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.spec-item.low {
    background-color: #d4edda;
    color: #155724;
}

.spec-item.mid {
    background-color: #fff3cd;
    color: #856404;
}

.spec-item.high {
    background-color: #f8d7da;
    color: #721c24;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .conseils-nav-links {
        justify-content: center;
    }
    
    .nav-link {
        min-width: 70px;
        padding: 0.6rem;
    }
    
    .maintenance-timeline::before {
        left: 35px;
    }
    
    .time-circle {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .composants-grid,
    .ergonomie-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .budget-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .budget-card {
        width: 100%;
    }
    
    .tuto-video iframe {
        height: 200px;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .maintenance-timeline::before {
        left: 25px;
    }
    
    .time-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .maintenance-content {
        margin-left: 1rem;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    /* Conseils hero responsive adjustments */
    #conseils-hero {
        min-height: 50vh;
        padding: 2rem 0;
        background-attachment: scroll;
    }
    
    #conseils-hero h2 {
        font-size: 1.8rem;
    }
    
    #conseils-hero p {
        font-size: 1rem;
    }
    
    /* Navigation bar adjustments */
    #conseils-nav {
        top: 60px;
        padding: 0.3rem 0;
    }
    
    .conseils-nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Fix footer styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin: 0.5rem 0;
}

/* Add script for accordion and filter functionality */
.section-padding {
    padding: 5rem 0;
}

/* Fix any remaining issues */
.tool-recommendation {
    background-color: #f5f9ff;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.tool-recommendation h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Make sure we show accordion content initially */
.accordion-item:first-child .accordion-content {
    padding: 1.5rem;
    padding-top: 0;
    max-height: 1000px;
}

/* Optimize AOS animations */
[data-aos] {
    backface-visibility: hidden;
    transform: translateZ(0);
    perspective: 1000px;
}