:root {
    --bg-dark: #0f1115;
    --card-dark: #181b22;
    --text-dark: #eaeaea;
    --muted-dark: #a0a0a0;

	--tier-s: #ff2e2e;
	--tier-a: #ff9f1c;
	--tier-b: #3a86ff;
	--tier-c: #4cc9f0;
	--tier-d: #2ec4b6;

    --amazon: #ff9900;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    padding: 20px;
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#theme-toggle {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #10131a;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.tab:hover {
    box-shadow: 0 0 12px rgba(255,255,255,0.08);
}

.tab.active {
    background: var(--amazon);
    color: #000;
    box-shadow: 0 0 15px rgba(255,153,0,0.6);
}

.last-update-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.last-update {
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-align: center;
}

.seo-intro {
    max-width: 1000px;
    margin: 20px auto;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    color: #cccccc;
}

.tab-description {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    background: rgba(255, 165, 0, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-align: center;
    margin: 20px auto;
}

.tab-description .emoji {
    font-size: 1.3em;
    line-height: 1;
    flex-shrink: 0;
	vertical-align: baseline;
}

.tab-description .text {
    display: inline;
}

.tab-description strong {
    color: #ffffff;
    font-weight: 700;
}


.tiers {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 30px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tiers.is-transitioning {
    opacity: 0;
    transform: translateY(10px);
}

.tier {
    background: var(--card-dark);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    border-left: 6px solid;
    transition: all 0.3s ease;
}

.tier-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge config"
        "title title";
    align-items: start;
    gap: 6px 10px;
    margin-bottom: 15px;
}

.tier-header .left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tier-header .left h2 {
    width: 100%;
    margin-top: 6px;
    font-size: 1.3rem;
}

.tier-header .badge {
    grid-area: badge;
}

.tier-header h2 {
    grid-area: title;
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.tier-header .config-type {
    grid-area: config;
    justify-self: end;
    margin: 0;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    color: #000;
	font-size: 0.95rem;
}

.tier.s { border-left-color: var(--tier-s); }
.tier.s .badge { background-color: var(--tier-s); }

.tier.a { border-left-color: var(--tier-a); }
.tier.a .badge { background-color: var(--tier-a); }

.tier.b { border-left-color: var(--tier-b); }
.tier.b .badge { background-color: var(--tier-b); }

.tier.c { border-left-color: var(--tier-c); }
.tier.c .badge { background-color: var(--tier-c); }

.tier.d { border-left-color: var(--tier-d); }
.tier.d .badge { background-color: var(--tier-d); }

.config-type {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--amazon);
    color: #000;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-left: auto;
}

.commentaire {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--muted-dark);
}

.components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.component {
    background: #10131a;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.component-info {
    display: flex;
    flex-direction: column;
}

.component-info span.price {
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 3px;
    color: var(--text-dark);
	display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amazon-btn {
    background: var(--amazon);
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.amazon-btn:hover {
    background: var(--amazon);
    color: #000;
    box-shadow: 0 0 15px rgba(255,153,0,0.6);
    transform: translateY(-1px);
}

.total-price {
    font-weight: bold;
    margin-top: 10px;
}

.total-price span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.total-separator {
    display: inline-block;
    width: 12px;
}

.performance {
    margin-top: 25px;
}

.performance h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--muted-dark);
}

.stat {
    margin-bottom: 8px;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.bar {
    background: #0b0d11;
    border-radius: 6px;
    overflow: hidden;
    height: 10px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #00ff85);
}

.site-footer {
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    color: var(--muted-dark);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--amazon);
}

.config-prix {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.tier.s .config-prix {
    background-color: var(--tier-s);
}

.tier.a .config-prix {
    background-color: var(--tier-a);
}

.tier.b .config-prix {
    background-color: var(--tier-b);
}

.tier.c .config-prix {
    background-color: var(--tier-c);
}

.tier.d .config-prix {
    background-color: var(--tier-d);
}

.site-footer a svg {
    vertical-align: middle;
    margin-left: 4px;
}

.imgUp {
	width: 16px;
    height: 16px;
	display: inline-block;
}

.imgDown {
	width: 16px;
    height: 16px;
	display: inline-block;
}

.imgConst {
	width: 16px;
    height: 16px;
	display: inline-block;
}


@media (max-width: 768px) {
	
	h1{
		margin-bottom: 10px;
		font-size: 1.5rem;
	}
	
	.last-update-container {
		margin-bottom: 10px;
	}
	
	.seo-intro {
		font-size: 0.90rem;
	}
	
    body {
        padding: 12px;
        overflow-x: hidden;
    }

    .tiers {
        display: flex !important;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .tiers::-webkit-scrollbar {
        display: none;
    }

    .tier {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
        scroll-snap-align: start;
        border-left-width: 6px;
        border-left-style: solid;
    }

    .components {
        grid-template-columns: 1fr;
    }

    .component {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .amazon-btn {
        align-self: flex-start;
        display: inline-flex;
        margin-top: 6px;
    }

    .config-type {
        margin-left: 0;
        margin-top: 6px;
    }

    .slider-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 12px 0;
    }

    .slider-badge {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #000;
        font-size: 0.9rem;
        cursor: default;
        transition: all 0.25s ease;
    }

    .slider-badge.s { background-color: var(--tier-s); }
    .slider-badge.a { background-color: var(--tier-a); }
    .slider-badge.b { background-color: var(--tier-b); }
    .slider-badge.c { background-color: var(--tier-c); }
	.slider-badge.d { background-color: var(--tier-d); }

    .slider-badge.active {
        box-shadow: 0 0 12px rgba(255,255,255,0.7);
        transform: scale(1.3);
    }
	

.tier-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge config"
        "title title";
    align-items: start;
    gap: 6px 10px;
}


    .tier-header .badge {
        grid-area: badge;
    }

    .tier-header h2 {
        grid-area: title;
        margin: 4px 0 0;
        font-size: 1.15rem;
    }

    .tier-header .config-type {
        grid-area: config;
        justify-self: end;
        margin: 0;
        padding: 6px 12px;
        font-size: 0.85rem;
        line-height: 1;
    }
	
	  .config-prix {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  
  .tier-header .left h2 {
    width: 100%;
}
    .tab-description {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 15px;
        font-size: 1rem;
        width: fit-content;
        max-width: 95%;
    }

    .tab-description .emoji {
        margin-bottom: 4px;
    }

    .tab-description .text {
        display: block;          /* texte complet dans un seul bloc */
    }
}
