/*
 * RC4 — Fiche Produit Moulinet
 * Enqueue via functions.php : if (rc4_is_reel_product()) wp_enqueue_style('rc4-reel', ...)
 */

/* ══ PAGE ════════════════════════════════════════════════ */
body.single-product .rc4-reel-page {
    background: #fff;
    padding: 0;
}

/* ══ HERO ════════════════════════════════════════════════ */
.rc4-reel-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: stretch;
    overflow: hidden;
}

/* Image pleine largeur — colonne gauche */
.rc4-reel-hero__image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 600px;
}

/* Masquer le composant galerie natif WooCommerce dans le hero
   (on garde les données mais pas le rendu visible) */
/* Galerie WooCommerce dans le hero — masquée, on utilise le background-image CSS */
.rc4-reel-hero__image .woocommerce-product-gallery {
    display: none !important;
}

/* Overlay sombre en bas de l'image */
.rc4-reel-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 420px; /* ne pas couvrir la buybox */
    background: linear-gradient(to top, rgba(11,35,51,.92) 0%, rgba(11,35,51,.4) 60%, transparent 100%);
    padding: 48px 56px;
    display: flex;
    align-items: flex-end;
}

.rc4-reel-hero__content {
    max-width: 640px;
}

.rc4-reel-hero__title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.rc4-reel-hero__lead {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 0;
}

/* Buy box — colonne droite, full height */
.rc4-reel-buybox {
    background: rgb(244,246,248);
    border-left: 1px solid rgb(223,230,238);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.rc4-reel-buybox__inner {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* WooCommerce summary dans la buybox */
.rc4-reel-buybox .product_title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1C244B;
    line-height: 1.25;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(223,230,238);
}

.rc4-reel-buybox .price {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #FF5C1B;
    letter-spacing: -0.02em;
}
.rc4-reel-buybox .price del { color: #9ca3af; font-size: 16px; font-weight: 400; }
.rc4-reel-buybox .price ins { text-decoration: none; }

/* Variations */
.rc4-reel-buybox .variations { border: none; width: 100%; border-collapse: collapse; }
.rc4-reel-buybox .variations tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rc4-reel-buybox .variations th.label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: #7f95aa; padding: 0; border: none;
}
.rc4-reel-buybox .variations td.value { padding: 0; border: none; }
.rc4-reel-buybox .variations select {
    width: 100%; height: 44px;
    border: 1.5px solid rgb(223,230,238);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 500;
    padding: 0 14px;
    background: #fff; color: #1C244B;
    cursor: pointer; display: block;
}
.rc4-reel-buybox .variations select:focus {
    border-color: #FF5C1B; outline: none;
}

/* Add to cart */
.rc4-reel-buybox .woocommerce-variation-add-to-cart,
.rc4-reel-buybox form.cart:not(.variations_form) {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
}
.rc4-reel-buybox .qty {
    width: 100% !important; height: 52px !important;
    border: 1.5px solid rgb(223,230,238) !important;
    border-radius: 8px !important; text-align: center !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important; font-weight: 700 !important;
    color: #1C244B !important; background: #fff !important;
    box-shadow: none !important;
}
.rc4-reel-buybox .single_add_to_cart_button {
    width: 100% !important; height: 52px !important;
    background: #FF5C1B !important; color: #fff !important;
    border: none !important; border-radius: 10px !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 17px !important; font-weight: 800 !important;
    text-transform: uppercase !important; letter-spacing: .03em !important;
    cursor: pointer !important;
    box-shadow: rgba(255,92,27,.25) 0 8px 20px !important;
    transition: background .15s, transform .1s !important;
}
.rc4-reel-buybox .single_add_to_cart_button:hover {
    background: #e04a00 !important; transform: translateY(-1px) !important;
}

/* Trust */
.rc4-reel-trust {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 12px; border-top: 1px solid rgb(223,230,238);
}

/* Woo availability */
.rc4-reel-buybox .woocommerce-variation-availability { display: none; }

/* ══ NAVIGATION ══════════════════════════════════════════ */
.rc4-reel-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0B2333;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.rc4-reel-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
}

.rc4-reel-nav__item {
    display: inline-block;
    padding: 16px 24px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}
.rc4-reel-nav__item:hover {
    color: #fff;
    border-bottom-color: #FF5C1B;
}

/* ══ SECTIONS COMMUNES ═══════════════════════════════════ */
.rc4-reel-content { background: rgb(244,246,248); }

.rc4-reel-section {
    padding: 72px 0;
}
.rc4-reel-section--dark {
    background: #0B2333;
}

.rc4-reel-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.rc4-reel-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.rc4-reel-section__title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    color: #1C244B;
    letter-spacing: -.01em;
    margin: 0 0 12px;
}
.rc4-reel-section--dark .rc4-reel-section__title { color: #fff; }

.rc4-reel-section__divider {
    width: 60px; height: 3px;
    background: #FF5C1B;
    margin: 0 auto;
    border-radius: 2px;
}

/* ══ POINTS FORTS TECHNIQUES ═════════════════════════════
   Supporte le HTML généré par ACF WYSIWYG
   ═══════════════════════════════════════════════════════ */
.rc4-reel-features {
    max-width: 900px;
    margin: 0 auto;
}

.rc4-reel-features p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px; color: #374151;
    line-height: 1.75; margin-bottom: 16px;
}
.rc4-reel-features strong, .rc4-reel-features b { color: #1C244B; }
.rc4-reel-features h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 700;
    color: #1C244B; margin: 28px 0 8px;
    padding-left: 14px;
    border-left: 3px solid #FF5C1B;
}
.rc4-reel-features ul {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.rc4-reel-features ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; color: #374151;
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid rgb(223,230,238);
    position: relative; line-height: 1.5;
}
.rc4-reel-features ul li::before {
    content: '';
    position: absolute; left: 0; top: 16px;
    width: 6px; height: 6px;
    background: #FF5C1B; border-radius: 50%;
}
.rc4-reel-features ul li strong { color: #1C244B; }

/* ══ TECHNOLOGIES ════════════════════════════════════════ */
.rc4-reel-tech__intro {
    max-width: 800px; margin: 0 auto 40px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.7;
}

.rc4-reel-tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.rc4-reel-tech__item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 24px;
}

.rc4-reel-tech__name {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    color: #FF5C1B;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.rc4-reel-tech__desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.7;
    margin: 0;
}

.rc4-reel-tech__text {
    max-width: 900px; margin: 0 auto;
}
.rc4-reel-tech__text p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.7;
    margin-bottom: 16px;
}
.rc4-reel-tech__text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 700;
    color: #FF5C1B; margin: 28px 0 8px;
}

/* ══ TABLEAU SPÉCIFICATIONS ══════════════════════════════ */
.rc4-reel-specs__selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rc4-reel-specs__selector-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: #7f95aa;
    white-space: nowrap;
}

.rc4-reel-specs__tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
}

.rc4-reel-specs__tab {
    padding: 7px 16px;
    background: transparent;
    border: 1.5px solid rgb(223,230,238);
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    color: #7f95aa; cursor: pointer;
    transition: all .15s;
}
.rc4-reel-specs__tab:hover {
    border-color: #FF5C1B; color: #FF5C1B;
}
.rc4-reel-specs__tab.is-active {
    background: #FF5C1B; border-color: #FF5C1B;
    color: #fff;
}

.rc4-reel-specs__table-wrap {
    background: #fff;
    border: 1px solid rgb(223,230,238);
    border-radius: 14px;
    overflow: hidden;
}

.rc4-reel-specs__table {
    width: 100%;
    border-collapse: collapse;
}

.rc4-reel-specs__row {
    transition: background .12s;
}
.rc4-reel-specs__row:hover { background: rgb(244,246,248); }
.rc4-reel-specs__row:not(:last-child) td,
.rc4-reel-specs__row:not(:last-child) th {
    border-bottom: 1px solid rgba(223,230,238,.7);
}

.rc4-reel-specs__label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 500;
    color: #4e6376;
    padding: 13px 24px;
    text-align: left;
    width: 42%;
    background: transparent;
    vertical-align: middle;
}

.rc4-reel-specs__value {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #1C244B;
    padding: 13px 24px;
    text-align: right;
    vertical-align: middle;
}

/* ══ AVIS ════════════════════════════════════════════════ */
.rc4-reel-section #rc4-reel-reviews {
    padding: 48px 0;
}

/* ══ RESPONSIVE ══════════════════════════════════════════ */
/* ══ RESPONSIVE MOBILE ═══════════════════════════════════
   Sur mobile, l'overlay sort du flux absolu et devient
   un bloc dans la grille : image / overlay-texte / buybox
   ══════════════════════════════════════════════════════ */
@media (max-width: 960px) {

    /* Hero : 3 rangées empilées */
    .rc4-reel-hero {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        min-height: auto;
    }

    /* Rangée 1 : image */
    .rc4-reel-hero__image {
        height: 55vw;
        min-height: 220px;
        max-height: 400px;
        grid-row: 1;
    }

    /* Rangée 2 : texte — sort de l'absolu, fond sombre solide */
    .rc4-reel-hero__overlay {
        position: relative !important;
        inset: auto !important;
        right: auto !important;
        bottom: auto !important;
        background: #0B2333 !important;
        padding: 28px 24px !important;
        grid-row: 2;
        align-items: flex-start;
    }

    /* Rangée 3 : buybox */
    .rc4-reel-buybox {
        grid-row: 3;
        border-left: none;
        border-top: 1px solid rgb(223,230,238);
    }

    .rc4-reel-nav__item { padding: 14px 16px; font-size: 12px; }
    .rc4-reel-specs__label { width: auto; }
}

@media (max-width: 600px) {
    .rc4-reel-hero__image { height: 56vw; }
    .rc4-reel-hero__title { font-size: 22px !important; }
    .rc4-reel-hero__lead  { font-size: 13px !important; }
    .rc4-reel-hero__overlay { padding: 22px 18px !important; }
    .rc4-reel-buybox__inner { padding: 24px 18px !important; }

    .rc4-reel-nav__inner { gap: 0; overflow-x: auto; white-space: nowrap; }
    .rc4-reel-nav__item { padding: 12px 14px; font-size: 11px; white-space: nowrap; }

    .rc4-reel-section { padding: 48px 0; }
    .rc4-reel-section__inner { padding: 0 18px; }

    .rc4-reel-specs__selector { flex-direction: column; align-items: flex-start; }
    .rc4-reel-specs__label, .rc4-reel-specs__value { font-size: 11px; }
}



/* ══ INTÉGRATION rc-techgrid dans section Technologies ══════
   Le shortcode [rc_reel_tech_grid] génère .rc-techgrid / .rc-tech
   On adapte les couleurs pour le fond sombre #0B2333
   ══════════════════════════════════════════════════════════ */
.rc4-reel-section--dark .rc4-reel-tech__grid-wrap .rc-techgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
}

.rc4-reel-section--dark .rc4-reel-tech__grid-wrap .rc-tech {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
}

.rc4-reel-section--dark .rc4-reel-tech__grid-wrap .rc-tech__ic {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #FF5C1B !important;
    line-height: 1 !important;
}

.rc4-reel-section--dark .rc4-reel-tech__grid-wrap .rc-tech__lb {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.8) !important;
    line-height: 1.3 !important;
}
