/* ==========================================================================
   Styles pour le template Page Produit
   Refactoring des styles inline
   ========================================================================== */

/* --- Composants communs --- */

/* Couleurs (extraites) */
:root {
    --opq-navy: #112f42;
    --opq-blue-grey: #4a6072;
    --opq-teal: #1C9B9C;
    --opq-border: #E1E1E1;
    --opq-bg-light: #F0F4F8;
    --opq-text-white: #FFFFFF;
}

/* Badges */
.c-product-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.c-product-badge {
    display: inline-block;
    padding: 4px 14px;
    color: var(--opq-text-white);
    font-weight: 600;
    font-size: 0.75rem;
    background-color: var(--opq-navy);
    border-radius: 20px;
}

/* En-têtes produit */
.c-product-title {
    margin: 0 0 8px 0;
    color: var(--opq-navy);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
}

.c-product-subtitle {
    margin: 0 0 24px 0;
    color: var(--opq-blue-grey);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Boîtes de contenu (Cards) */
.c-product-box {
    background: var(--opq-text-white);
    border: 1.5px solid var(--opq-border);
    border-left: 6px solid #254356;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.c-product-box--grey {
    background: var(--opq-bg-light);
    border: none;
    /* Reset border if needed */
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.c-product-box--highlight {
    border-left-color: var(--opq-teal);
}

section.c-product-box h2 {
    margin-top: 0;
}

.c-product-box__title {
    margin: 0 0 16px 0;
    color: var(--opq-navy);
    font-weight: 700;
    font-size: 1.15rem;
}

.c-product-box__intro {
    margin: 0 0 12px 0;
    color: var(--opq-blue-grey);
    font-size: 0.9rem;
}

/* Listes (Vue d'ensemble, Objectifs, Contenus) */
.c-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-product-list__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.c-product-list__bullet {
    color: var(--opq-teal);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.c-product-list__bullet--check {
    color: #7DB952;
    font-size: 1.2rem;
}

.c-product-list__text {
    color: var(--opq-blue-grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.c-product-list__strong {
    color: var(--opq-navy);
}

/* Listes à puces classiques (Objectifs, Avantages) */
ul.c-product-ul {
    margin: 0 0 0 20px;
    padding: 0;
    list-style-type: disc !important;
    color: var(--opq-blue-grey);
    font-size: 0.95rem;
    line-height: 2;
}

.c-product-ul li strong {
    color: var(--opq-navy);
}

/* Boutons CTA */
.c-product-cta-container {
    margin-top: 20px;
}

.c-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.c-product-btn--outline {
    color: #254356;
    background-color: transparent;
    border: 2px solid #254356;
}

.c-product-btn--outline:hover {
    background-color: var(--opq-teal);
    border-color: var(--opq-teal);
    color: white !important;
    /* Force override style inline legacy if present */
}

.c-product-btn--outline-teal {
    color: var(--opq-teal);
    background-color: transparent;
    border: 2px solid var(--opq-teal);
}

.c-product-btn--outline-teal:hover {
    background-color: var(--opq-teal);
    border-color: var(--opq-teal);
    color: var(--opq-text-white);
}

.c-product-btn--primary {
    color: var(--opq-text-white);
    background-color: var(--opq-navy);
    border: 2px solid #D25148;
}

.c-product-btn--primary:hover {
    background-color: #254356;
}

.c-product-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Chiffres clés */
.c-product-figures {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.c-product-figure {
    flex: 1;
    min-width: 120px;
    background: var(--opq-bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.c-product-figure__value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--opq-navy);
}

.c-product-figure__label {
    margin: 4px 0 0 0;
    font-size: 0.78rem;
    color: #6B7280;
}

/* Infos pratiques */
.c-product-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-product-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--opq-border);
}

.c-product-info-row:last-child {
    border-bottom: none;
}

.c-product-info-label {
    color: var(--opq-blue-grey);
    font-size: 0.9rem;
}

.c-product-info-value {
    color: var(--opq-navy);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Formateurs & Témoignages */
.c-product-section-title {
    margin: 32px 0 16px 0;
    color: var(--opq-navy);
    font-weight: 700;
    font-size: 1.15rem;
}

.c-product-trainers {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.c-product-trainer {
    flex: 1;
    min-width: 250px;
    background: var(--opq-text-white);
    border: 1.5px solid var(--opq-border);
    border-left: 6px solid var(--opq-teal);
    border-radius: 12px;
    padding: 24px;
}

.c-product-trainer__name {
    margin: 0 0 4px 0;
    color: var(--opq-navy);
    font-weight: 700;
    font-size: 1rem;
}

.c-product-trainer__role {
    margin: 0 0 8px 0;
    color: var(--opq-teal);
    font-weight: 600;
    font-size: 0.82rem;
}

.c-product-trainer__bio {
    margin: 0 0 10px 0;
    color: var(--opq-blue-grey);
    font-size: 0.88rem;
    line-height: 1.5;
}



.c-product-testimonials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.c-product-testimonial {
    background: var(--opq-bg-light);
    border-radius: 12px;
    padding: 20px 24px;
}

.c-product-testimonial__text {
    margin: 0 0 10px 0;
    color: var(--opq-blue-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

.c-product-testimonial__author {
    margin: 0;
    color: var(--opq-navy);
    font-weight: 600;
    font-size: 0.82rem;
}

.c-product-testimonial__role {
    color: #6B7280;
    font-weight: 400;
}


/* --- Sidebar Sticky --- */

.c-sticky-header {
    background: var(--opq-bg-light);
    padding: 24px 24px 20px 24px;
    border-bottom: 1.5px solid #D1D5DB;
}

.c-sticky-header__badge {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-sticky-header__price {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--opq-navy);
    line-height: 1.1;
}

.c-sticky-header__ht {
    font-size: 0.6em;
    font-weight: 600;
    color: #374151;
}

.c-sticky-header__note {
    margin: 4px 0 0 0;
    font-size: 0.78rem;
    color: #4B5563;
}

.c-sticky-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-sticky-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.c-sticky-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon backgrounds */
.u-bg-teal-light {
    background: #E8F5F5;
}

.u-bg-orange-light {
    background: #FEF6E6;
}

.u-bg-red-light {
    background: #FDEEEC;
}

.u-bg-green-light {
    background: #D8EACB;
}

.c-sticky-item__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--opq-navy);
    line-height: 1.3;
}

.c-sticky-item__desc {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: #4B5563;
}

.c-sticky-divider {
    border-top: 1.5px solid #D1D5DB;
    margin: 0 24px;
}

.c-sticky-sessions {
    padding: 16px 24px;
}

.c-sticky-sessions__title {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--opq-navy);
}

.c-sticky-sessions__item {
    margin: 0 0 6px 0;
    font-size: 0.78rem;
    color: #4B5563;
}

.c-sticky-sessions__item:last-child {
    margin: 0;
}

.c-sticky-actions {
    padding: 20px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-sticky-qualiopi {
    background: var(--opq-bg-light);
    border-top: 1.5px solid #D1D5DB;
    padding: 14px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.c-sticky-qualiopi__text {
    margin: 0;
    font-size: 0.78rem;
    color: #374151;
    line-height: 1.3;
}

.c-sticky-calendar {
    margin: 20px 0;
    text-align: center;
}

/* ========================================
   Refactoring Colonne Gauche (Contenu Principal)
   ======================================== */

/* --- Google Review Badge --- */
.section-label {
    margin-bottom: 20px;
}

.badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #E1E1E1;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.badge-compact:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.g-logo {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
}

.g-logo svg {
    width: 100%;
    height: 100%;
}

.separator {
    width: 1px;
    height: 16px;
    background: #E1E1E1;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FBBC05'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.star.half {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FBBC05'%3E%3Cpath d='M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3E%3C/svg%3E");
}

.rating-text {
    font-weight: 700;
    color: var(--opq-navy);
    font-size: 0.9rem;
}

.review-count {
    color: #6B7280;
    font-size: 0.8rem;
}

/* --- Carousel --- */
.c-cert-carousel {
    background: var(--opq-navy);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.c-cert-carousel__header {
    padding: 24px 24px 0 24px;
}

.c-cert-carousel__label {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--opq-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-cert-carousel__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--opq-text-white);
    line-height: 1.3;
}

.c-cert-carousel__body {
    padding: 24px;
}

.c-cert-slide {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
}

.c-cert-slide__title {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--opq-text-white);
    line-height: 1.3;
}

/* Program List inside Carousel (Replacing Table) */
.c-program-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.c-program-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.c-program-item:last-child {
    border-bottom: none;
}

.c-program-col--title {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.c-program-col--type {
    flex-shrink: 0;
    text-align: center;
}

.c-program-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFF;
}

.c-program-tag--text {
    background: #254356;
}

.c-program-tag--video {
    background: #D25148;
}

.c-program-tag--quiz {
    background: #1C9B9C;
}

.c-program-col--duration {
    flex-shrink: 0;
    width: 40px;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    white-space: nowrap;
}

.c-cert-slide__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-cert-slide__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.c-cert-slide__total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--opq-teal);
}

/* Carousel Navigation */
.c-cert-nav {
    padding: 0 24px 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-cert-dots {
    display: flex;
    gap: 8px;
}

.c-cert-dots br,
.c-cert-arrows br,
.c-cert-carousel__header br,
.c-cert-slide__footer br,
.c-program-item br,
.c-program-list br {
    display: none;
}

.c-cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFF;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
}

.c-cert-dot.active,
.c-cert-dot:hover {
    opacity: 1;
}

.c-cert-arrows {
    display: flex;
    gap: 8px;
}

.c-cert-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #FFF;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.c-cert-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}