/**
 * Styles pour Rehub Shortcodes Compatibility
 * Version: 1.0.0
 */

/* ==========================================================================
   Réinitialisation et styles de base
   ========================================================================== */

.rehub-box,
.rehub-button,
.rehub-quote,
.rehub-highlight,
.rehub-divider,
.rehub-list,
.rehub-pros-cons,
.rehub-titlebox,
.rehub-update-box,
.rehub-codebox,
.rehub-numbox,
.rehub-column,
.rehub-accordion,
.rehub-tabgroup,
.rehub-toggle,
.rehub-grid-loop,
.rehub-comparison-table,
.rehub-reviewbox {
    box-sizing: border-box;
}

/* ==========================================================================
   Boxes et conteneurs
   ========================================================================== */

.rehub-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.rehub-box-info {
    background-color: #e7f3ff;
    border-color: #2196F3;
}

.rehub-box-success {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.rehub-box-warning {
    background-color: #fff3e0;
    border-color: #FF9800;
}

.rehub-box-danger {
    background-color: #ffebee;
    border-color: #f44336;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.rehub-button,
.rehub-affbtn,
.rehub-woo-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    background-color: #2196F3;
    color: #fff !important;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rehub-button:hover,
.rehub-affbtn:hover,
.rehub-woo-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rehub-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.rehub-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ==========================================================================
   Citations et highlights
   ========================================================================== */

.rehub-quote {
    margin: 20px 0;
    padding: 20px;
    border-left: 4px solid #2196F3;
    background-color: #f5f5f5;
    font-style: italic;
}

.rehub-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: #666;
}

.rehub-highlight {
    padding: 2px 5px;
    border-radius: 2px;
}

/* ==========================================================================
   Listes
   ========================================================================== */

.rehub-list {
    list-style: none;
    padding-left: 0;
}

.rehub-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.rehub-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Pros et Cons */
.rehub-pros-cons {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.rehub-pros {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.rehub-cons {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.rehub-pros-cons-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.rehub-pros-cons ul {
    margin: 0;
    padding-left: 20px;
}

/* ==========================================================================
   Titlebox et Update
   ========================================================================== */

.rehub-titlebox {
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.rehub-titlebox-title {
    padding: 15px;
    margin: 0;
    background-color: #2196F3;
    color: #fff;
    font-size: 18px;
}

.rehub-titlebox-content {
    padding: 20px;
}

.rehub-update-box {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff3e0;
    border-left: 4px solid #FF9800;
    border-radius: 4px;
}

.rehub-update-label {
    margin-bottom: 10px;
}

.rehub-update-date {
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Codebox
   ========================================================================== */

.rehub-codebox {
    background-color: #f5f5f5;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.rehub-codebox code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Numbox et cercles
   ========================================================================== */

.rehub-numbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.rehub-numbox-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2196F3;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
}

.rehub-numbox-content {
    flex: 1;
}

.rehub-numbox-content h4 {
    margin-top: 0;
}

.rehub-numcircle {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #2196F3;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}

.rehub-numhead {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rehub-numhead-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2196F3;
    color: #fff;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

/* ==========================================================================
   Colonnes
   ========================================================================== */

.rehub-column {
    float: left;
    padding: 0 15px;
}

.rehub-col-12 {
    width: 100%;
}

.rehub-col-6 {
    width: 50%;
}

.rehub-col-4 {
    width: 33.333%;
}

.rehub-col-8 {
    width: 66.666%;
}

.rehub-col-3 {
    width: 25%;
}

.rehub-col-9 {
    width: 75%;
}

.rehub-col-first {
    clear: left;
}

@media (max-width: 768px) {
    .rehub-column {
        width: 100% !important;
        float: none;
    }
}

/* ==========================================================================
   Accordéon
   ========================================================================== */

.rehub-accordion {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 20px;
}

.rehub-accordion-item {
    border-bottom: 1px solid #e1e1e1;
}

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

.rehub-accordion-title {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
}

.rehub-accordion-title:hover {
    background-color: #f5f5f5;
}

.rehub-accordion-icon:before {
    content: "+";
    position: absolute;
    right: 15px;
    font-size: 20px;
}

.rehub-accordion-open .rehub-accordion-icon:before {
    content: "-";
}

.rehub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rehub-accordion-open .rehub-accordion-content {
    max-height: 1000px;
    padding: 15px;
}

/* ==========================================================================
   Onglets
   ========================================================================== */

.rehub-tabgroup {
    margin-bottom: 20px;
}

.rehub-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e1e1e1;
}

.rehub-tab-nav-item {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.rehub-tab-nav-item:hover {
    background-color: #f5f5f5;
}

.rehub-tab-nav-item.active {
    border-bottom-color: #2196F3;
    color: #2196F3;
}

.rehub-tabs-container {
    padding: 20px 0;
}

.rehub-tab-content {
    display: none;
}

.rehub-tab-content.active {
    display: block;
}

/* ==========================================================================
   Toggle
   ========================================================================== */

.rehub-toggle {
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.rehub-toggle-title {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    background-color: #f9f9f9;
}

.rehub-toggle-icon:before {
    content: "+";
    position: absolute;
    right: 15px;
    font-size: 20px;
}

.rehub-toggle-open .rehub-toggle-icon:before {
    content: "-";
}

.rehub-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rehub-toggle-open .rehub-toggle-content {
    max-height: 1000px;
    padding: 15px;
}

/* ==========================================================================
   Galerie et images
   ========================================================================== */

.rehub-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

.rehub-gallery-item {
    padding: 10px;
}

.rehub-gallery-cols-2 .rehub-gallery-item {
    width: 50%;
}

.rehub-gallery-cols-3 .rehub-gallery-item {
    width: 33.333%;
}

.rehub-gallery-cols-4 .rehub-gallery-item {
    width: 25%;
}

.rehub-gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Grilles de posts
   ========================================================================== */

.rehub-grid-loop {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.rehub-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rehub-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rehub-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .rehub-grid-loop {
        grid-template-columns: 1fr !important;
    }
}

.rehub-grid-item {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.rehub-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rehub-grid-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.rehub-grid-content {
    padding: 15px;
}

.rehub-grid-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.rehub-grid-title a {
    color: #333;
    text-decoration: none;
}

.rehub-grid-title a:hover {
    color: #2196F3;
}

.rehub-grid-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rehub-grid-meta span {
    margin-right: 15px;
}

.rehub-grid-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Liste avec petites vignettes
   ========================================================================== */

.rehub-small-thumb-loop {
    list-style: none;
    padding: 0;
}

.rehub-small-thumb-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.rehub-small-thumb-item:last-child {
    border-bottom: none;
}

.rehub-small-thumb {
    flex-shrink: 0;
    width: 80px;
    margin-right: 15px;
}

.rehub-small-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.rehub-small-content {
    flex: 1;
}

.rehub-small-title {
    margin: 0 0 5px;
    font-size: 16px;
}

.rehub-small-title a {
    color: #333;
    text-decoration: none;
}

.rehub-small-title a:hover {
    color: #2196F3;
}

.rehub-small-date {
    color: #666;
    font-size: 13px;
}

/* ==========================================================================
   Liste blog
   ========================================================================== */

.rehub-blog-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e1e1e1;
}

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

.rehub-blog-thumb {
    margin-bottom: 20px;
}

.rehub-blog-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.rehub-blog-title {
    margin: 0 0 15px;
    font-size: 28px;
}

.rehub-blog-title a {
    color: #333;
    text-decoration: none;
}

.rehub-blog-title a:hover {
    color: #2196F3;
}

.rehub-blog-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.rehub-blog-meta span {
    margin-right: 20px;
}

.rehub-blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.rehub-blog-more {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.rehub-blog-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Scorebox et Review
   ========================================================================== */

.rehub-scorebox {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.rehub-scorebox-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.rehub-scorebox-score {
    font-size: 48px;
    font-weight: bold;
    color: #2196F3;
}

.rehub-scorebox-max {
    font-size: 24px;
    color: #666;
}

.rehub-scorebox-bar {
    height: 10px;
    background-color: #e1e1e1;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

.rehub-scorebox-fill {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.3s;
}

.rehub-reviewbox {
    border: 2px solid #2196F3;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.rehub-reviewbox-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.rehub-reviewbox-title {
    margin: 0 0 15px;
}

.rehub-reviewbox-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rehub-reviewbox-score {
    font-size: 36px;
    font-weight: bold;
    color: #2196F3;
}

.rehub-reviewbox-stars {
    display: flex;
    gap: 5px;
}

.rehub-star-wrapper {
    position: relative;
    display: inline-block;
}

.rehub-star-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #FFD700;
}

.rehub-reviewbox-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .rehub-reviewbox-proscons {
        grid-template-columns: 1fr;
    }
}

.rehub-reviewbox-pros,
.rehub-reviewbox-cons {
    padding: 15px;
    border-radius: 4px;
}

.rehub-reviewbox-pros {
    background-color: #e8f5e9;
}

.rehub-reviewbox-cons {
    background-color: #ffebee;
}

.rehub-reviewbox-pros h4,
.rehub-reviewbox-cons h4 {
    margin-top: 0;
}

.rehub-reviewbox-summary {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* ==========================================================================
   Comparaison
   ========================================================================== */

.rehub-compare-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.rehub-compare-button:hover {
    background-color: #45a049;
}

.rehub-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: none;
    z-index: 1000;
}

.rehub-compare-bar.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rehub-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rehub-comparison-table th,
.rehub-comparison-table td {
    padding: 15px;
    border: 1px solid #e1e1e1;
    text-align: center;
}

.rehub-comparison-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* ==========================================================================
   Charts et Tableaux
   ========================================================================== */

.rehub-charts {
    margin-bottom: 30px;
}

.rehub-chart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e1e1;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.rehub-chart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rehub-chart-position {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2196F3;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
}

.rehub-chart-thumb {
    flex-shrink: 0;
    width: 80px;
    margin-right: 15px;
}

.rehub-chart-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rehub-chart-content {
    flex: 1;
}

.rehub-chart-title {
    margin: 0 0 5px;
}

.rehub-chart-title a {
    color: #333;
    text-decoration: none;
}

.rehub-chart-title a:hover {
    color: #2196F3;
}

.rehub-chart-rating {
    color: #666;
    font-size: 14px;
}

.rehub-chart-score {
    font-weight: bold;
    color: #2196F3;
}

/* ==========================================================================
   Versus
   ========================================================================== */

.rehub-versus {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .rehub-versus {
        flex-direction: column;
    }
}

.rehub-versus-item {
    text-align: center;
    flex: 1;
}

.rehub-versus-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.rehub-versus-vs {
    font-size: 36px;
    font-weight: bold;
    color: #2196F3;
    padding: 0 30px;
}

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.rehub-woo-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.rehub-woo-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rehub-woo-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rehub-woo-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .rehub-woo-grid {
        grid-template-columns: 1fr !important;
    }
}

.rehub-woo-grid-item {
    position: relative;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.rehub-woo-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rehub-woo-badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.rehub-woo-grid-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.rehub-woo-grid-content {
    padding: 15px;
}

.rehub-woo-grid-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.rehub-woo-grid-title a {
    color: #333;
    text-decoration: none;
}

.rehub-woo-grid-title a:hover {
    color: #2196F3;
}

.rehub-woo-grid-price {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
    margin: 10px 0;
}

/* ==========================================================================
   Liste WooCommerce
   ========================================================================== */

.rehub-woo-list {
    margin-bottom: 30px;
}

.rehub-woo-list-item {
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}

.rehub-woo-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rehub-woo-list-thumb {
    flex-shrink: 0;
    width: 120px;
    margin-right: 20px;
}

.rehub-woo-list-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rehub-woo-list-content {
    flex: 1;
}

.rehub-woo-list-content h4 {
    margin: 0 0 10px;
}

.rehub-woo-list-content h4 a {
    color: #333;
    text-decoration: none;
}

.rehub-woo-list-content h4 a:hover {
    color: #2196F3;
}

.rehub-woo-list-excerpt {
    color: #666;
    margin-bottom: 10px;
}

.rehub-woo-list-price {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
}

/* ==========================================================================
   Commentaires
   ========================================================================== */

.rehub-comments-list {
    margin-bottom: 30px;
}

.rehub-comment-item {
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.rehub-comment-avatar {
    flex-shrink: 0;
    margin-right: 15px;
}

.rehub-comment-avatar img {
    border-radius: 50%;
}

.rehub-comment-content {
    flex: 1;
}

.rehub-comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.rehub-comment-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rehub-comment-rating {
    color: #FFD700;
    margin-bottom: 10px;
}

.rehub-comment-text {
    margin-bottom: 10px;
}

.rehub-comment-link {
    color: #2196F3;
    text-decoration: none;
}

.rehub-comment-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.rehub-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.rehub-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rehub-error {
    color: #f44336;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 4px;
}

/* Clear floats */
.rehub-grid-loop:after,
.rehub-column:after {
    content: "";
    display: table;
    clear: both;
}
