/* =========================================================================
   O'life Assurances — Design System
   Palette turquoise (#20b3b2) inspirée du logo de marque
   ========================================================================= */

:root {
    /* Brand */
    --teal:        #20b3b2;
    --teal-dark:   #189a99;
    --teal-darker: #12807f;
    --blue:        #046bd2;
    --blue-dark:   #045cb4;

    /* Ink & neutrals */
    --ink:      #14304a;
    --ink-soft: #334155;
    --body:     #475569;
    --muted:    #64748b;

    /* Surfaces */
    --white:      #ffffff;
    --surface:    #f7fafc;
    --surface-2:  #eef5fb;
    --tint:       #e8f7f7;
    --border:     #e2e8f0;

    /* Effects */
    --radius:     18px;
    --radius-sm:  12px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(20, 48, 74, .06);
    --shadow:    0 12px 30px rgba(20, 48, 74, .10);
    --shadow-lg: 0 24px 60px rgba(20, 48, 74, .16);
    --ring:      0 0 0 4px rgba(32, 179, 178, .18);

    --container: 1180px;
    --header-h:  84px;

    --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Blazor pose le focus sur le h1 après navigation : pas d'anneau pour un focus non-clavier */
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1rem; }

a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-darker); }

img { max-width: 100%; display: block; }

/* ------------------------------------------------------------- Layout util */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tint    { background: var(--surface); }
.section--tint-2  { background: var(--surface-2); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-dark);
    background: var(--tint);
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.1rem;
}

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

.text-teal { color: var(--teal-dark); }

/* ------------------------------------------------------------------ Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .95rem 1.8rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(32, 179, 178, .35);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(32, 179, 178, .45); }

.btn--blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(4, 107, 210, .3);
}
.btn--blue:hover { color:#fff; transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--teal-dark);
    border-color: var(--teal);
}
.btn--ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

.btn--light { background:#fff; color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--lg { padding: 1.1rem 2.3rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .98rem;
    color: var(--ink-soft);
    padding: .55rem .9rem;
    border-radius: var(--radius-pill);
    position: relative;
    transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--teal-dark); background: var(--tint); }
.nav__link.active { color: var(--teal-dark); }
.nav__link.active::after {
    content: "";
    position: absolute;
    left: 50%; bottom: .28rem;
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    transform: translateX(-50%);
}
.header-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 46px; height: 46px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    display: block;
    position: relative;
    width: 24px; height: 2.5px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top:  7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, #fff 78%); }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(48px, 7vw, 96px) 0;
}
.hero__title { margin-bottom: 1.1rem; }
.hero__title .accent {
    background: linear-gradient(120deg, var(--teal) 0%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: 1.2rem; max-width: 34ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__trust { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.hero__trust .stat strong {
    display: block; font-family: var(--font-head);
    font-size: 1.6rem; color: var(--ink); line-height: 1;
}
.hero__trust .stat span { font-size: .9rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
    width: 100%; border-radius: 30px;
    box-shadow: var(--shadow-lg);
}
.hero__blob {
    position: absolute; inset: auto -8% -12% auto;
    width: 55%; aspect-ratio: 1;
    background: radial-gradient(circle at 30% 30%, rgba(32,179,178,.35), transparent 70%);
    filter: blur(10px); z-index: -1;
}
.hero__badge {
    position: absolute; left: -18px; bottom: 34px;
    background: #fff; border-radius: 16px;
    box-shadow: var(--shadow);
    padding: .9rem 1.1rem;
    display: flex; align-items: center; gap: .7rem;
    font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.hero__badge .dot { width: 40px; height: 40px; border-radius: 12px; display:grid; place-items:center; background: var(--tint); color: var(--teal-dark); }

/* --------------------------------------------------------------------- Cards */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--tint), #d7eefb);
    color: var(--teal-dark);
    margin-bottom: 1.2rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* image-topped offer card */
.offer { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.offer__img { aspect-ratio: 16/9; overflow: hidden; }
.offer__img img { width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.offer:hover .offer__img img { transform: scale(1.06); }
.offer__body { padding: 1.7rem 1.8rem 2rem; display:flex; flex-direction:column; flex:1; }
.offer__body h3 { margin-bottom:.6rem; }
.offer__body p { flex:1; }
.offer__link { margin-top:1.1rem; font-family:var(--font-head); font-weight:600; color:var(--teal-dark); display:inline-flex; align-items:center; gap:.4rem; }
.offer:hover .offer__link { gap:.7rem; }

/* ------------------------------------------------------------- Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: 26px; box-shadow: var(--shadow); width:100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.checklist .tick {
    flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: var(--tint); color: var(--teal-dark);
    display: grid; place-items: center; margin-top: 2px;
}
.checklist .tick svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------- CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--teal-dark) 0%, var(--blue) 100%);
    color: #fff; border-radius: 28px;
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* -------------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 4rem 0 1.5rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { height: 66px; background:#fff; padding:.5rem .7rem; border-radius:14px; margin-bottom:1rem; }
.footer__brand p { color: #94a3b8; font-size: .96rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .96rem; }
.footer__contact { display:flex; align-items:center; gap:.6rem; margin-bottom:.7rem; color:#cbd5e1; }
.footer__contact .ic { color: var(--teal); }
.footer__phone { font-family: var(--font-head); font-weight:600; font-size:1.25rem; color:#fff; }
.footer__bottom {
    margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-size: .88rem; color: #94a3b8; flex-wrap: wrap;
}

.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--teal); color: #fff; border: 0; cursor: pointer;
    box-shadow: var(--shadow); display: grid; place-items: center;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ------------------------------------------------------------- Page banner */
.page-banner {
    background: linear-gradient(180deg, var(--tint), #fff);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem,5vw,4rem);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size:.9rem; color: var(--muted); margin-top:.6rem; }
.breadcrumb a { color: var(--teal-dark); }

/* stub notice */
.stub {
    max-width: 620px; margin: 4rem auto; text-align: center;
    background:#fff; border: 1px dashed var(--teal); border-radius: var(--radius);
    padding: 3rem 2rem; box-shadow: var(--shadow-sm);
}
.stub .stub__badge { font-family:var(--font-head); font-weight:600; color:var(--teal-dark); background:var(--tint); display:inline-block; padding:.4rem 1rem; border-radius:var(--radius-pill); margin-bottom:1rem; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { order: -1; max-width: 520px; margin-inline:auto; }
    .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch;
        background: #fff; padding: 1rem 1.2rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-140%);
        transition: transform .3s ease;
        gap: .2rem;
    }
    .nav.open { transform: none; }
    .nav__link { padding: .85rem 1rem; font-size: 1.05rem; }
    .nav__link.active::after { display:none; }
    .header-actions .btn--nav { display: none; }
}

@media (max-width: 560px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    body { font-size: 16px; }
}

/* ------------------------------------------------ Blazor error UI (framework) */
#blazor-error-ui {
    background: #fff3cd;
    color: #664d03;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .8rem 1.4rem 1rem 1.4rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-body);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .6rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: #fff; border-radius: 8px; }
