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

/* ==========================================================================
   VARIABLES - Modifier ici pour ajuster les espacements
   ========================================================================== */
:root {
    /* Couleurs */
    --opq-navy: var(--opq-navy);
    --opq-blue-grey: var(--opq-text-muted);
    --opq-teal: var(--opq-turquoise);
    --opq-border: var(--opq-border);
    --opq-bg-light: var(--opq-bg-light);
    --opq-text-white: var(--opq-bg-white);

    /* ESPACEMENTS PAGE PRODUIT - Ajuster ces valeurs pour positionner */
    --produit-content-padding-top: 8px;      /* Espace au-dessus du contenu */
    --produit-breadcrumb-margin-bottom: 20px; /* Espace sous le fil d'Ariane */
    --produit-sidebar-margin-top: 30px;       /* Décalage vertical du sidebar */
    --produit-gap: 40px;                      /* Espace entre contenu et sidebar */
    --produit-sidebar-width: 320px;           /* Largeur du sidebar */
}

/* ==========================================================================
   STYLES SPECIFIQUES PAGE PRODUIT (template 3)
   Le layout de base est maintenant dans nav-v2.css pour tous les templates
   ========================================================================== */

/* Sidebar produit - style card avec bordure */
.page-template-page-template-3-produit #opq-sticky-sidebar,
body.page-template-page-template-3-produit #opq-sticky-sidebar {
    background: var(--opq-bg-white);
    border: 1.5px solid var(--opq-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

/* Conteneur principal du contenu produit */
.page-template-page-template-3-produit .c-product-main-content,
.c-opposite-toc-right .c-product-main-content,
.c-product-main-content {
    flex: 1 !important;
    min-width: 0 !important;
    margin-right: 30px !important;
    margin-top: -20px !important;
}

/* ==========================================================================
   COMPOSANTS
   ========================================================================== */

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

/* Aligner le badge Google à droite */
.c-product-badges li:has(.section-label),
.c-product-badges li:has(.badge-compact) {
    margin-left: auto;
}

.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 var(--opq-navy-light);
    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);
    margin-top: 20px;
}

.c-product-box--spaced {
    margin-top: 32px;
}

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: 1rem;
}

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

.c-product-box__intro--spaced {
    line-height: 1.7;
}

.c-product-box__title--compact {
    margin-bottom: 4px;
}

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

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

.c-product-list > li {
    position: relative;
    padding-left: 20px;
    color: var(--opq-blue-grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.c-product-list > li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--opq-teal);
    font-size: 0.9rem;
    font-weight: 700;
}

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

/* Variante avec checkmarks */
.c-product-list--check > li::before {
    content: "✓";
    color: var(--opq-green);
    font-size: 1rem;
}

/* Legacy - pour rétrocompatibilité */
.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: var(--opq-green);
    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);
}

:root[data-theme="dark"] .c-product-ul li strong {
    color: inherit;
}

/* 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: var(--opq-navy-light);
    background-color: transparent;
    border: 2px solid var(--opq-navy-light);
}

/* Dark mode - bouton outline en blanc */
:root[data-theme="dark"] .c-product-btn--outline {
    color: var(--opq-text-white);
    border-color: var(--opq-text-white);
}

.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 var(--opq-red);
}

.c-product-btn--primary:hover {
    background-color: var(--opq-navy-light);
}

.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: 32px !important;
    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: var(--opq-gray);
}

/* 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;
}

/* Programme horaires */
.c-product-info-row--active .c-product-info-label {
    color: var(--opq-teal);
    font-weight: 700;
}

.c-product-info-row--active .c-product-info-value {
    color: var(--opq-blue-grey);
    font-weight: 400;
}

.c-product-info-row--pause .c-product-info-label {
    color: var(--opq-gray);
    font-weight: 400;
}

.c-product-info-row--pause .c-product-info-value {
    color: var(--opq-gray);
    font-weight: 400;
    font-style: italic;
}

/* 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-trainer__link {
    color: var(--opq-teal);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.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: var(--opq-gray);
    font-weight: 400;
}


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

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

.c-sticky-header__badge {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--opq-text-body);
    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: var(--opq-text-body);
}

.c-sticky-header__note {
    margin: 4px 0 0 0;
    font-size: 0.78rem;
    color: var(--opq-text-light);
}

.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: var(--opq-turquoise-light);
}

.u-bg-orange-light {
    background: var(--opq-yellow-light);
}

.u-bg-red-light {
    background: var(--opq-red-light);
}

.u-bg-green-light {
    background: var(--opq-green-light);
}

.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: var(--opq-text-light);
}

.c-sticky-divider {
    border-top: 1.5px solid var(--opq-border-light);
    margin: 0 24px;
}

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

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

.c-sticky-sessions__list {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: disc;
}

.c-sticky-sessions__list li {
    font-size: 0.75rem;
    color: var(--opq-text-light);
    line-height: 1.3;
    margin: 0 0 2px 0;
}

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

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

/* Bouton Stripe - forcer la largeur */
stripe-buy-button {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
}

.c-sticky-actions stripe-buy-button,
.call-to-action stripe-buy-button {
    display: block !important;
    width: 100% !important;
}

/* Conteneur call-to-action pleine largeur */
.c-sticky-actions .call-to-action,
.call-to-action {
    width: 100%;
    display: block;
}

/* Cibler l'iframe Stripe si présent */
stripe-buy-button iframe {
    width: 100% !important;
    min-width: 100% !important;
}

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

.c-sticky-qualiopi__text {
    margin: 0;
    font-size: 0.78rem;
    color: var(--opq-text-body);
    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;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--opq-bg-white);
    border: 1px solid var(--opq-border);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.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: var(--opq-border);
}

.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");
}

.star.empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E0E0E0'%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");
}

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

.review-count {
    color: var(--opq-gray);
    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;
}

:root[data-theme="dark"] .c-program-col--title {
    color: inherit;
}

.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: var(--opq-bg-white);
}

.c-program-tag--text {
    background: var(--opq-navy-light);
}

.c-program-tag--video {
    background: var(--opq-red);
}

.c-program-tag--quiz {
    background: var(--opq-turquoise);
}

.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: var(--opq-bg-white);
    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: var(--opq-bg-white);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

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

/* ==========================================================================
   ÉLÉMENTS SPÉCIFIQUES PAGE EXPERT
   ========================================================================== */

/* Puce d'avertissement (rouge) */
.c-product-list__bullet--warning {
    color: var(--opq-red);
}

/* Prix barré */
.c-product-price--strikethrough {
    text-decoration: line-through;
    color: var(--opq-gray);
    font-weight: 400;
}

/* Boîte alerte (bordure rouge) - Comment s'inscrire */
.c-product-box--alert {
    border-left-color: var(--opq-red);
}

/* Travaux dirigés - bloc info */
.c-product-td {
    background: var(--opq-bg-light);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

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

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