﻿
#table-of-contents {
    background-color: var(--bg-raised,#ffffff);
    border: 1px solid var(--line-e2,#e2e2e2);
    border-left: 5px solid var(--accent,#dc5300); /* Ta signature orange */
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    overflow: hidden; /* Crucial pour l'animation */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#table-of-contents span {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-inline,#333);
    display: block;
    line-height: 25px; /* Aligné avec le bouton */
}

#toggle-toc {
    position: absolute;
    top: 12px;
    right: 15px;
    background: var(--bg-btn,#f4f4f4);
    border: 1px solid var(--border-note,#ddd);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toggle-toc:hover {
    background: var(--accent-solid,#dc5300);
    color: white;
    border-color: var(--accent-solid,#dc5300);
}

#table-of-contents ul {
    list-style: none;
    padding: 15px 0 0 0;
    margin: 0;
}

#table-of-contents li {
    border-bottom: 1px solid var(--line-f1,#f1f1f1);
}

#table-of-contents li a {
    display: block;
    padding: 8px 0;
    color: var(--text-emphasis,#444);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

#table-of-contents li a:hover {
    color: var(--accent,#dc5300);
}

#table-of-contents .subsection {
    padding-left: 20px;
    background: var(--bg-sub,#fafafa);
}

#table-of-contents .subsection a {
    font-size: 0.85rem;
    color: var(--text-secondary,#666);
}

.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-right: 5px;
}


.scroll-wrapper {
  position: relative;
}

.slider-prev { position: absolute; left: -20px; top: 40%; }
.slider-next { position: absolute; right: -20px; top: 40%; }

/* Masquer la barre de scroll visuellement tout en gardant le mouvement */
.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  position: relative;
  padding-bottom: 1rem;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-right: 40px;
  margin:5px;
}

.card {
  flex: 0 0 260px;
  padding: 0.5rem;
  box-sizing: border-box;
}
.card img.thumb-full-width {
    width: auto;
    height: auto;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .2), 0 20px 40px 0 rgba(0, 0, 0, .19);
    border-radius: 10px;
    max-height: 300px;
}

.card span {
	display:block;
}

.scroll-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, var(--bg-surface,#ffffff) 60%, transparent);
  pointer-events: none;
}

/* Boutons de navigation */
.slider-prev, .slider-next {
    background: var(--slider-jeu,#ff9800); /* Fond Orange */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Bouton bien rond */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Effet de zoom sur les boutons au hover */
.slider-prev:hover, .slider-next:hover {
    background: var(--slider-jeu-hover,#e68a00);
    transform: scale(1.15);
}

.slider-prev {
  left: 0;
}
.slider-next {
  right: 0;
}
.slider-prev:hover,
.slider-next:hover {
  background: var(--slider-w-hover,#f0f0f0);
}


.descriptionproduitrow {
  background: var(--bg-surface,#ffffff);
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  border-radius: 6px;
  overflow: hidden; /* pour contenir l’effet halo et zoom image */
}

.descriptionproduitrow img {
  transition: transform 0.3s ease;
}

.descriptionproduitrow:hover {
  background-color: var(--bg-f5,#f5f5f5);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25), 0 0 15px rgba(255,255,255,0.2); /* halo lumineux */
}

.descriptionproduitrow:hover img {
  transform: scale(1.05); /* léger zoom de l’image */
}

.btn-produit {
    display: inline-block;
    background-color: var(--bg-surface,#ffffff);
    color: var(--text-price,#000);
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    border: 1px var(--btn-dark-line,#000000) solid;
    margin-top: 15px;
}






/* --- LE CONTENEUR --- */
.comparison-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0;
}

/* --- LA CARTE (LIGNE) --- */
.comparison-card {
    position: relative;
    background: var(--bg-surface,#fff);
    border: 1px solid var(--border-offer-card,#e5e5e5);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: var(--accent,#dc5300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.comparison-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none !important;
    color: var(--text-inline,#333) !important;
}

/* --- LOGOS ET TEXTES --- */
.merchant-logo { width: 110px; flex-shrink: 0; display: flex; align-items: center; }
.merchant-logo img { max-width: 100%; height: auto; border: 0; }

.merchant-info {
    flex-grow: 1;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
}

.merchant-name { font-weight: 700; font-size: 1.1rem; color: var(--text-heading,#1a1a1a); }
.shipping { font-size: 0.8rem; color: var(--text-note-mark,#888); margin-top: 3px; }

/* --- PRIX ET BOUTON --- */
.price-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #dc5300;
}

.price-val.unknown { font-size: 1rem; color: var(--text-secondary,#666); font-style: italic; }

.btn-buy {
    background: var(--accent-solid,#dc5300);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 3px 0 #b04300;
}

/* --- LE BADGE VERT (MEILLEUR PRIX) --- */
.best-price { border: 2px solid #27ae60; }
.badge-tag {
    position: absolute;
    top: -12px;
    left: 15px;
    background: var(--badge-ok,#27ae60);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* --- LE STYLE AMAZON (NOIR) --- */
.amazon-card:hover { border-color: var(--amazon-hover,#232f3e); }
.amazon-card .btn-buy { background: var(--amazon-bg,#232f3e); box-shadow: var(--amazon-shadow,0 3px 0 #131921); }
.amazon-card .price-val { color: var(--amazon-text,#232f3e); }

/* --- RESPONSIVE MOBILE (ET BARRE LATERALE) --- */
@media (max-width: 768px) {
    .comparison-link { flex-direction: column; text-align: center; padding: 20px; }
    .merchant-logo { margin-bottom: 15px; }
    .merchant-info { padding: 0; margin-bottom: 15px; }
    .price-action { flex-direction: column; gap: 10px; width: 100%; }
    .btn-buy { width: 100%; }
}


/* --- SECTION AUTRES VERSIONS --- */
.versions-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-surface-soft,#f9f9f9);
    border-radius: 12px;
    border: 1px solid var(--border-soft,#eee);
}

.versions-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.versions-list li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Style de base des boutons de version */
.btn-version {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
	margin-bottom: 10px;
}

/* Couleurs par console */
.btn-version.ps5 { background: #0070d1; color: #fff !important; }
.btn-version.ps4 { background: #003791; color: #fff !important; }
.btn-version.switch { background: #e60012; color: #fff !important; }
.btn-version.xbox { background: #107c10; color: #fff !important; }
.btn-version.pc { background: #333; color: #fff !important; }
.btn-version.default { background: #ddd; color: #333 !important; }

/* Effet au survol */
.btn-version:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

/* Ajout d'une petite icône avant le texte (optionnel mais sympa) */
.btn-version::before {
    content: "🎮";
    margin-right: 8px;
    font-size: 1rem;
}




.info-bar-prix {
    display: inline-flex; /* Aligne tout parfaitement */
    align-items: center;
    background: var(--warn-bg,#fff8e1); /* Un jaune très pâle type "alerte bon plan" */
    border: 1px solid var(--warn-line,#ffe082);
    padding: 5px 12px;
    border-radius: 20px; /* Forme pilule, très moderne */
    margin-top: 10px;
}

.prix-premium {
    color: var(--price-premium,#e53935); /* Rouge vif pour le prix */
    margin-left: 5px;
    font-size: 1.1em;
}

.separateur {
    color: #ffd54f;
    margin: 0 10px;
}

@media screen and (max-width: 736px) {
	.info-bar-prix, .date-update {
		display:block;
	}
	.separateur {
		display:none;
	}
}

.date-update {
    font-size: 0.85em;
    color: var(--warn-meta,#757575);
}

.card {
    flex: 0 0 260px;
    background: var(--bg-surface,#fff);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-soft,#eee);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Effet Peps au survol */
.card:hover {
        /* Bordure intérieure orange de 3px */
    border-color: #ff9800 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation plus fluide */
}

/* Optionnel : faire ressortir le titre au survol */
.card:hover .product-title {
    color: #ff9800;
}

/* Container image pour le zoom interne */
.card .img-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
}

.card:hover img {
    transform: scale(1.08); /* Zoom très léger sur l'image au survol */
}

/* Titre du produit plus percutant */
.product-title {
    font-weight: bold;
    color: var(--text-value,#222);
    margin: 10px 0;
    font-size: 1.1em;
    height: 2.4em; /* Garde l'alignement si titres longs */
}

/* Bouton style Console */
.btn-produit {
    background: var(--btn-dark,#222);
    color: #fff !important;
    border-radius: 50px !important; /* Bouton arrondi moderne */
    padding: 8px 20px !important;
    font-weight: bold;
    border: none !important;
    transition: background 0.3s ease;
}

.btn-produit:hover {
    background: #e61e25; /* Couleur d'accentuation (Rouge Consollection ?) */
    text-decoration: none;
}

.scroll-container .row.no-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
}

.card-mini .card {
    height: 100%; /* Pour que les cartes aient la même hauteur */
}

/* Bloc "Lire aussi" - Consollection */


.verdict-express {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.verdict-column {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-radius: 8px;
}
.pros { background: var(--ok-bg,#e8f5e9); border-left: 5px solid #2e7d32; }
.cons { background: var(--bad-bg,#ffebee); border-left: 5px solid #c62828; }
.verdict-column h4 { margin-top: 0; text-transform: uppercase; font-size: 0.9rem; }
.verdict-column ul { list-style: none; padding: 0; margin: 0; }
.verdict-column li { margin-bottom: 8px; font-size: 0.95rem; display: flex; align-items: flex-start; }
.verdict-column li::before { margin-right: 10px; }
.pros li::before { content: "✅"; }
.cons li::before { content: "❌"; }

.featured-cover {
    border-radius: 15px;
	margin-bottom: 20px;
}

/* --- Bloc Appel à l'action (Test) --- */

.note-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: 5px;
    transform: rotate(2deg);
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}
/* Bloc Avis Rédaction - Version 2026 */
.lire-aussi2 {
    display: flex;
    flex-direction: column; /* Empilé par défaut (Mobile) */
    align-items: stretch;
    background: var(--bg-surface,#ffffff);
    border: 1px solid var(--border-card,#e0e0e0);
    border-left: 6px solid #e74c3c;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    gap: 15px;
}

.lire-aussi2_titre {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-slate,#2c3e50);
    margin-bottom: 4px;
}

.lire-aussi2_titre_desc {
    display: block;
    color: var(--text-slate-2,#7f8c8d);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Bouton pleine largeur sur mobile */
.btn-test {
    background-color: var(--btn-test,#e74c3c);
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-test:active {
    transform: scale(0.98); /* Effet de pression au doigt */
}

/* --- Passage en mode Desktop (Ecran > 600px) --- */
@media (min-width: 601px) {
    .lire-aussi2 {
        flex-direction: row; /* Aligné horizontalement */
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
    }
    
    .btn-test {
        padding: 10px 25px;
        width: auto;
    }
}

/* --- Bloc Avis Expert (Verdict) --- */
.unautreavis2 {
    background: #2c3e50;
    color: #fff;
    padding: 30px 25px;
    border-radius: 0 0 12px 12px;
    position: relative;
    margin: 0 0 30px 0;
    
    /* On force l'alignement horizontal */
    display: flex;
    flex-direction: row; /* Image à gauche, texte à droite */
    align-items: center; /* Centre verticalement l'image et le texte */
    gap: 25px; /* Espace de sécurité entre l'image et le texte */
}

/* Le conteneur de ton texte (la div après l'image dans ton PHP) */
.unautreavis2 > div:last-of-type {
    flex: 1; /* Prend tout l'espace restant */
    min-width: 0; /* Empêche le texte de pousser hors du cadre */
}

.unautreavis2 .macaron {
    border: 3px solid #fff;
    border-radius: 50%;
    width: 90px !important;
    height: 90px !important;
    flex-shrink: 0; /* L'image ne bouge pas d'un poil */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: block;
}

.unautreavis2 em {
    font-size: 1.05rem;
    line-height: 1.6;
    display: block;
    margin-bottom: 8px;
    color: #ecf0f1;
    font-style: italic;
    padding-right: 20px; /* Évite de coller au badge de note */
	padding-left: 40px;
}

/* Responsive : On empile sur mobile */
@media (max-width: 600px) {
    .unautreavis2 {
        flex-direction: column; /* Image au dessus du texte */
        text-align: center;
        padding-top: 45px;
    }
    .unautreavis2 em {
        padding-right: 0;
        padding-left: 0px;
    }
    .note-badge {
        right: 50%;
        transform: translateX(50%) rotate(0deg);
        top: -15px;
    }
}



#image-popin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.popin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer; /* Indique que c'est cliquable */
}

.popin-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
    max-width: 100vw;
}

.popin-content * {
    pointer-events: auto; /* Rétablit les interactions pour les boutons et l'image */
}
.popin-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
}

.popin-image-wrapper img {
    max-height: 80vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
}

#image-popin.single-image .prev-button,
#image-popin.single-image .next-button {
    display: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10%;
    user-select: none;
    color: grey;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 20px 40px 0 rgba(0, 0, 0, 0.19);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.prev-button:hover,
.next-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.popin-image-wrapper .caption {
    color: white;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.thumb-full-width3{width:100%;height:auto}

.note-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: 5px;
    transform: rotate(2deg);
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Lot 4-4b : les règles mobiles de .fiche-technique-ean sont dans la feuille (rangée défilante commune) */
