/**
 * Feuille de style du composant OffresSection
 * Fichier : public/css/offres-section.css
 * Entièrement responsive & accessible (WCAG AA)
 */

:root {
    --accent: #e8743b;
    --accent-hover: #d3622c;
    --brand-dark: #121a2b;
    --card-bg: #f6f4ef;
    --text-muted: #4a5366;
    --font-heading: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
    --card-radius: 20px;
    --badge-bg: #ffffff;
    --shadow-card-hover: 0 22px 40px -24px rgba(18, 26, 43, 0.35);
}

/* SECTION CONTENEUR */
.offres-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding-top: clamp(48px, 8vw, 112px);
    padding-bottom: clamp(56px, 9vw, 112px);
    font-family: var(--font-body);
    color: var(--brand-dark);
}

.offres-section .custom-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    box-sizing: border-box;
}

.font-heading {
    font-family: var(--font-heading);
}

/* EN-TÊTE DE SECTION (Anti-chevauchement mobile garanti) */
.offres-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    position: relative;
    z-index: 2; 
    clear: both;
}

.offres-header-left {
    width: 100%;
    max-width: 44rem;
}

.eyebrow-text {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    user-select: none;
}

.offres-title {
    display: block;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--brand-dark);
    font-size: clamp(26px, 6.5vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.offres-header-right {
    width: 100%;
    flex-shrink: 0;
    padding-bottom: 0.25rem;
}

/* LIEN VERS TOUTES LES OFFRES */
.all-offers-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
    min-height: 44px;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.all-offers-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.all-offers-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 59, 0.35);
}

.all-offers-link .arrow {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.all-offers-link:hover .arrow {
    transform: translateX(4px);
}

/* GRILLE DES CARTES (Annule toute marge négative parasite sur mobile) */
.offres-section .row {
    position: relative;
    z-index: 1;
    clear: both;
}

/* CARTES D'ASSURANCE */
.assurance-card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: clamp(20px, 3vw, 32px);
    height: 100%;
    border: 1px solid transparent;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s ease;
}

.assurance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(232, 116, 59, 0.25);
}

/* En-tête de carte (Numéro + Badge) */
.card-number {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    user-select: none;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    background-color: var(--badge-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    box-shadow: 0 1px 3px rgba(18, 26, 43, 0.05);
    border: 1px solid rgba(18, 26, 43, 0.08);
    user-select: none;
    white-space: nowrap;
}

/* Titre & Description */
.card-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.2vw, 23px);
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.62;
    margin-bottom: 1.75rem;
}

/* Pied de carte (Lien localisé) */
.card-bottom {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(18, 26, 43, 0.06);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    min-height: 44px;
    text-decoration: none;
    transition: color 0.15s ease;
    border-radius: 4px;
}

.card-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 59, 0.35);
}

.card-link .arrow {
    display: inline-block;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

/* MEDIA QUERIES : TABLETTE & DESKTOP (>= 768px) */
@media (max-width: 768px) {
  .offres-title{
    margin-bottom: auto !important;
  }
}
@media (min-width: 768px) {
    .offres-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
        margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    }

    .offres-header-right {
        width: auto;
    }
}

/* ACCESSIBILITÉ : RÉDUCTION DES ANIMATIONS */
@media (prefers-reduced-motion: reduce) {
    .assurance-card,
    .all-offers-link .arrow,
    .card-link .arrow {
        transition: none !important;
        transform: none !important;
    }
}