/* ═══════════════════════════════════════════════════════════════════════════
   EZEMICROASSURANCE — FEUILLE DE STYLE : FICHE PRODUIT DÉTAILLÉE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Hero Section ────────────────────────────────────────────────────── */
.product-hero {
    position: relative;
    padding: var(--space-24) 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.product-hero__bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-below);
}

.product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 28, 58, 0.9) 0%, rgba(0, 28, 58, 0.7) 50%, rgba(0, 28, 58, 0.4) 100%);
}

.product-hero__container {
    position: relative;
    z-index: var(--z-raised);
}

.product-hero__content {
    max-width: 640px;
    color: var(--color-on-primary);
}

.product-hero__badge {
    margin-bottom: var(--space-6);
    display: inline-block;
}

.product-hero__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-xl);
    line-height: var(--lh-headline-xl);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-4);
    color: #FFFFFF;
}

.product-hero__description {
    font-size: var(--text-body-lg);
    line-height: var(--lh-body-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
}

.product-hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.product-hero__btn-cta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-hero__btn-secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

.product-hero__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* ─── 2. Coverage & Sidebar ──────────────────────────────────────────────── */
.product-coverage {
    padding: var(--space-20) 0;
    background: var(--color-background);
}

.product-coverage__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.product-coverage__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    line-height: var(--lh-headline-lg);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-8);
}

.product-coverage__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.product-coverage__item {
    background: var(--color-surface-card);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    display: flex;
    gap: var(--space-4);
    transition: var(--transition-fast);
}

.product-coverage__item:hover {
    border-color: var(--color-outline);
    box-shadow: var(--shadow-soft);
}

.product-coverage__icon-box {
    width: 48px;
    height: 48px;
    background: var(--color-primary-fixed);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-coverage__icon-box span {
    font-size: 24px;
}

.product-coverage__item-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.product-coverage__item-title {
    font-family: var(--font-headline);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-heading);
}

.product-coverage__item-desc {
    font-size: var(--text-body-sm);
    line-height: var(--lh-body-sm);
    color: var(--color-on-surface-variant);
}

/* Sidebar styling */
.product-coverage__sidebar {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    padding: var(--space-8);
    color: #FFFFFF;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
}

.product-coverage__sidebar--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
}

.product-coverage__sidebar--secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-on-secondary-container) 100%);
}

.product-coverage__sidebar--warning {
    background: linear-gradient(135deg, #B45309 0%, #78350F 100%);
}

.product-coverage__sidebar--error {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
}

.product-coverage__sidebar--tertiary {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-tertiary-container) 100%);
}

.product-coverage__sidebar-blur {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.product-coverage__sidebar-content {
    position: relative;
    z-index: var(--z-raised);
}

.product-coverage__sidebar-title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-sm);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-6);
}

.product-coverage__sidebar-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.product-coverage__sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-body-md);
}

.product-coverage__sidebar-item span:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
}

.product-coverage__sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--space-6);
}

.product-coverage__sidebar-subtitle {
    font-weight: var(--fw-bold);
    font-size: var(--text-body-md);
    margin-bottom: var(--space-1);
}

.product-coverage__sidebar-text {
    font-size: var(--text-body-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-body-sm);
}

/* ─── 3. Target / Who is Covered ────────────────────────────────────────── */
.product-target {
    padding: var(--space-20) 0;
    background: var(--color-surface-card);
}

.product-target__header {
    margin-bottom: var(--space-12);
}

.product-target__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-2);
}

.product-target__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
}

.product-target__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.product-target__card {
    background: var(--color-surface-alt);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-outline-variant);
    transition: var(--transition-fast);
}

.product-target__card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-outline);
}

.product-target__image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-target__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-md);
}

.product-target__card:hover .product-target__image {
    transform: scale(1.05);
}

.product-target__content {
    padding: var(--space-6);
}

.product-target__name {
    font-family: var(--font-headline);
    font-size: var(--text-headline-sm);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2);
}

.product-target__desc {
    font-size: var(--text-body-md);
    line-height: var(--lh-body-md);
    color: var(--color-on-surface-variant);
}

/* ─── 4. Pricing / Plans ─────────────────────────────────────────────────── */
.product-pricing {
    padding: var(--space-20) 0;
    background: var(--color-background);
}

.product-pricing__header {
    margin-bottom: var(--space-12);
}

.product-pricing__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-2);
}

.product-pricing__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
}

.product-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    max-width: 1040px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-bounce);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.pricing-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-secondary-container);
    color: var(--color-secondary);
    font-size: var(--text-label-sm);
    font-weight: var(--fw-bold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.pricing-card__label {
    font-family: var(--font-headline);
    font-size: var(--text-headline-sm);
    font-weight: var(--fw-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-6);
}

.pricing-card__price-box {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--space-6);
}

.pricing-card__price {
    font-family: var(--font-headline);
    font-size: var(--text-headline-xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-primary);
}

.pricing-card__unit {
    font-size: var(--text-body-md);
    color: var(--color-on-surface-variant);
    margin-left: var(--space-1);
}

.pricing-card__benefits {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex-grow: 1;
}

.pricing-card__benefit {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-body-md);
    align-items: center;
}

.pricing-card__benefit--excluded {
    color: var(--color-on-surface-variant);
    opacity: 0.6;
}

.pricing-card__btn {
    width: 100%;
    justify-content: center;
}

/* Popular card style modifiers */
.pricing-card--popular {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.pricing-card--popular .pricing-card__badge {
    background: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
}

.pricing-card--popular .pricing-card__label--popular {
    color: #FFFFFF;
}

.pricing-card--popular .pricing-card__price {
    color: #FFFFFF;
}

.pricing-card--popular .pricing-card__unit--popular {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-card--popular .pricing-card__benefit span:first-child {
    color: var(--color-secondary-fixed) !important;
}

.pricing-card--popular .pricing-card__benefit--excluded {
    color: rgba(255, 255, 255, 0.5);
}

/* ─── 5. Steps / Process ─────────────────────────────────────────────────── */
.product-steps {
    padding: var(--space-20) 0;
    background: var(--color-surface-card);
}

.product-steps__header {
    margin-bottom: var(--space-16);
}

.product-steps__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    font-weight: var(--fw-extrabold);
}

.product-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.product-steps__line {
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--color-outline-variant);
    z-index: 1;
}

.product-step-item {
    text-align: center;
    position: relative;
    z-index: var(--z-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-step-item__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-surface-card);
    border: 2px solid var(--color-outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: var(--transition-bounce);
}

.product-step-item__icon-wrapper span {
    font-size: 28px;
    color: var(--color-primary);
}

.product-step-item:hover .product-step-item__icon-wrapper {
    transform: scale(1.1);
    border-color: var(--color-primary);
    background: var(--color-primary-fixed);
}

.product-step-item__title {
    font-family: var(--font-headline);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-2);
}

.product-step-item__desc {
    font-size: var(--text-body-sm);
    line-height: var(--lh-body-sm);
    color: var(--color-on-surface-variant);
    max-width: 240px;
}

/* ─── 6. FAQ Section ─────────────────────────────────────────────────────── */
.product-faq {
    padding: var(--space-20) 0;
    background: var(--color-background);
}

.product-faq__header {
    margin-bottom: var(--space-12);
}

.product-faq__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    font-weight: var(--fw-extrabold);
}

.product-faq__accordion {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--color-surface-card);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-outline);
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}

.faq-item__question {
    font-family: var(--font-headline);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-heading);
}

.faq-item__icon {
    font-size: 24px;
    color: var(--color-on-surface-variant);
    transition: var(--transition-fast);
}

.rotate-180 {
    transform: rotate(180deg);
}

.faq-item__content {
    border-top: 1px solid var(--color-surface-alt);
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface-alt);
}

.faq-item__answer {
    font-size: var(--text-body-md);
    line-height: var(--lh-body-md);
    color: var(--color-on-surface-variant);
}

/* ─── 7. Related Products ────────────────────────────────────────────────── */
.product-related {
    padding: var(--space-20) 0;
    background: var(--color-surface-card);
}

.product-related__title {
    font-family: var(--font-headline);
    font-size: var(--text-headline-lg);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-10);
    text-align: center;
}

.product-related__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 960px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-bounce);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-outline);
    box-shadow: var(--shadow-soft);
}

.related-card__image-box {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.related-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-md);
}

.related-card:hover .related-card__image {
    transform: scale(1.05);
}

.related-card__content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.related-card__title {
    font-family: var(--font-headline);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-2);
}

.related-card__desc {
    font-size: var(--text-body-sm);
    line-height: var(--lh-body-sm);
    color: var(--color-on-surface-variant);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.related-card__link {
    font-size: var(--text-label-md);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: auto;
}

.related-card__link span {
    font-size: 16px;
    transition: var(--transition-fast);
}

.related-card:hover .related-card__link span {
    transform: translateX(4px);
}

/* ─── 8. Responsive Design ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-coverage__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: var(--space-16) 0;
        min-height: 440px;
    }
    
    .product-hero__title {
        font-size: var(--text-headline-lg);
    }
    
    .product-hero__actions {
        flex-direction: column;
    }
    
    .product-hero__btn-cta,
    .product-hero__btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .product-steps__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .product-steps__line {
        display: none;
    }
    
    .product-related__grid {
        grid-template-columns: 1fr;
    }
    
    .related-card {
        flex-direction: column;
    }
    
    .related-card__image-box {
        width: 100%;
        height: 160px;
    }
}
