/**
 * Styles spécifiques à la page Tarifs & Offres (conversion).
 * Respecte les tokens du design-system.css existant.
 *
 * Sections couvertes : probleme, comparatif, rassurance, accompagnateur,
 * profils, parcours, hero--tarifs, cta-final--strong.
 */

/* ===== HERO avec image de fond ===== */
.hero--image {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 5rem 0;
}
.hero--image .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.hero--image .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero--image .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(7, 19, 48, 0.45) 0%, rgba(29, 78, 216, 0.25) 100%);
    pointer-events: none;
}
.hero--image .hero-content {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    text-align: center;
}
.hero--image h1,
.hero--image .hero-subtitle,
.hero--image .hero-legal {
    color: #fff;
}
.hero--image h1 {
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero--image .hero-subtitle {
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}
.hero--image .hero-legal {
    opacity: 0.85;
}
.hero--image .btn--outline {
    color: #fff;
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(2px);
}
.hero--image .btn--outline:hover {
    background: #fff;
    color: var(--color-primary, #1d4ed8);
    border-color: #fff;
}
@media (max-width: 767px) {
    .hero--image {
        min-height: 480px;
        padding: 3.5rem 0;
    }
    .hero--image .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 19, 48, 0.50) 0%, rgba(7, 19, 48, 0.60) 100%);
    }
}

/* ===== HERO variant ===== */
.hero--tarifs .hero-eyebrow {
    display: inline-block;
    background: var(--color-primary, #1d4ed8);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}
.hero--tarifs h1 {
    max-width: 56rem;
    margin: 0 auto 1rem;
    line-height: 1.2;
}
.hero--tarifs .hero-subtitle {
    max-width: 48rem;
    margin: 0 auto 2rem;
}
.hero-legal {
    margin-top: 1.5rem;
    opacity: 0.75;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PROBLEME ===== */
.probleme {
    background: #f8fafc;
}
.probleme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.probleme-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.probleme-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}
.probleme-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.probleme-item p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}
.probleme-conclusion {
    text-align: center;
    max-width: 48rem;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: #fff;
    border-left: 4px solid var(--color-primary, #1d4ed8);
    border-radius: 8px;
    font-size: 1.05rem;
}

/* ===== COMPARATIF ===== */
.comparatif-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.comparatif-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}
.comparatif-table th,
.comparatif-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.comparatif-table thead th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
}
.comparatif-table thead th:nth-child(3) {
    background: var(--color-primary, #1d4ed8);
    color: #fff;
}
.comparatif-table tbody th {
    background: #f8fafc;
    font-weight: 600;
    width: 22%;
}
.comparatif-table tbody td:last-child {
    background: #eff6ff;
    font-weight: 500;
}
.comparatif-legal {
    text-align: center;
    opacity: 0.7;
    margin-top: 1rem;
}

/* ===== RASSURANCE ===== */
.rassurance {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.rassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.rassurance-item {
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rassurance-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.rassurance-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.75rem;
}
.rassurance-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.rassurance-item p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

/* ===== ACCOMPAGNATEUR ===== */
.accompagnateur {
    background: #fff7ed;
}
.accompagnateur-card {
    max-width: 56rem;
    margin: 2rem auto 0;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}
.accompagnateur-card p {
    margin: 0 0 1rem;
}
.accompagnateur-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.5rem;
}
.accompagnateur-points li {
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ===== OFFER alerte accompagnateur ===== */
.offer-alert {
    margin: 1rem 0;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #78350f;
}

/* ===== PROFILS ===== */
.profils {
    background: #f8fafc;
}
.profils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.profil-card {
    display: block;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.profil-card:hover {
    border-color: var(--color-primary, #1d4ed8);
    transform: translateY(-2px);
}
.profil-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.profil-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}
.profil-besoin {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}
.profil-offre {
    color: var(--color-primary, #1d4ed8);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== PARCOURS ===== */
.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.parcours-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
}
.parcours-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary, #1d4ed8);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.parcours-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.parcours-item p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

/* ===== OFFER DETAIL PRIX ===== */
.offer-detail-prix {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.offer-detail-prix td {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.offer-detail-prix td:last-child {
    text-align: right;
}
.offer-detail-total {
    font-size: 1rem;
}
.offer-detail-total td {
    border-top: 2px solid #1e293b;
    border-bottom: none;
    padding-top: 0.6rem;
}

/* ===== CTA FINAL strong ===== */
.cta-final--strong {
    background: var(--color-primary, #1d4ed8);
    color: #fff;
}
.cta-final--strong h2,
.cta-final--strong p {
    color: #fff;
}
.cta-final--strong .btn--outline {
    color: #fff;
    border-color: #fff;
}
.cta-final--strong .btn--outline:hover {
    background: #fff;
    color: var(--color-primary, #1d4ed8);
}
.cta-legal {
    margin-top: 1.5rem;
    opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .comparatif-table {
        font-size: 0.85rem;
    }
    .comparatif-table th,
    .comparatif-table td {
        padding: 0.75rem 0.5rem;
    }
    .hero--tarifs h1 {
        font-size: 1.75rem;
    }
}
