/* =========================================================================
   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;
    --orange:      #f59e0b;
    --orange-dark: #ea8c00;
    --orange-soft: #fff3e0;

    /* 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 1px 3px rgba(20, 48, 74, .05);
    --shadow:    0 3px 10px rgba(20, 48, 74, .06);
    --shadow-lg: 0 6px 18px rgba(20, 48, 74, .08);
    --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(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(245, 158, 11, .18);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(245, 158, 11, .22); }

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

.btn--teal {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 2px 6px rgba(32, 179, 178, .15);
}
.btn--teal:hover { color:#fff; background: var(--teal-dark); 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: .92fr 1.08fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(48px, 7vw, 96px) 0;
}
.hero__title { margin-bottom: 1.1rem; }
.hero__title .brandline { color: var(--teal); }
.hero__title .accent { color: var(--orange); }
.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;
    background: var(--orange-soft);
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
}
.hero__trust .stat strong {
    display: block; font-family: var(--font-head);
    font-size: 1.6rem; color: var(--orange-dark); line-height: 1;
}
.hero__trust .stat span { font-size: .9rem; color: var(--ink-soft); }

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

/* =========================================================================
   Formulaires
   ========================================================================= */
.field { display: block; margin-bottom: 1.1rem; }
.field__label {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}
.field__input, .field__select, .field__textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: .75rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: var(--ring);
}
.field__hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.field__error { font-size: .85rem; color: #dc2626; margin-top: .35rem; }
.field--invalid .field__input { border-color: #f2b8b5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.checkbox {
    display: flex; gap: .65rem; align-items: flex-start;
    font-size: .95rem; color: var(--ink-soft); margin-bottom: .9rem;
    cursor: pointer;
}
.checkbox input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--teal); flex: 0 0 auto; }

.alert { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .95rem; }
.alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert--info    { background: var(--tint); border: 1px solid #bfe9e8; color: var(--teal-darker); }

/* =========================================================================
   Espace administration
   ========================================================================= */
.admin-shell { display: flex; min-height: 100vh; background: var(--surface); }
.admin-side {
    width: 250px; flex: 0 0 250px;
    background: var(--ink); color: #cbd5e1;
    padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
}
.admin-side__brand { display:flex; align-items:center; gap:.6rem; padding:.3rem .6rem 1.2rem; }
.admin-side__brand img { height: 40px; background:#fff; border-radius:8px; padding:3px 5px; }
.admin-side__brand span { font-family:var(--font-head); font-weight:600; color:#fff; font-size:1.02rem; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.admin-nav a {
    display: flex; align-items: center; gap: .7rem;
    color: #cbd5e1; padding: .7rem .8rem; border-radius: 10px;
    font-family: var(--font-head); font-weight: 500; font-size: .96rem;
    transition: background .2s ease, color .2s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--teal); color: #fff; }
.admin-nav a svg { width: 19px; height: 19px; }
.admin-side__foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.admin-side__user { font-size: .85rem; color: #94a3b8; padding: 0 .8rem .6rem; }
.admin-side__logout { display:flex; align-items:center; gap:.6rem; color:#fca5a5; padding:.6rem .8rem; border-radius:10px; font-family:var(--font-head); font-weight:500; font-size:.92rem; }
.admin-side__logout:hover { background: rgba(248,113,113,.12); color:#fecaca; }

.admin-main { flex: 1; min-width: 0; padding: 2rem clamp(1.2rem, 3vw, 2.6rem); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.admin-head p { color: var(--muted); margin: .3rem 0 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:1.3rem 1.5rem; box-shadow:var(--shadow-sm); }
.stat-card strong { display:block; font-family:var(--font-head); font-size:2rem; color:var(--ink); line-height:1; }
.stat-card span { color:var(--muted); font-size:.9rem; }

.panel { background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-sm); overflow:hidden; }
.panel__head { padding:1.1rem 1.4rem; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.panel__head h2 { font-size:1.15rem; margin:0; }
.panel__body { padding:1.4rem; }

.table-wrap { overflow-x: auto; }
table.data { width:100%; border-collapse: collapse; font-size:.93rem; }
table.data th, table.data td { text-align:left; padding:.8rem 1rem; border-bottom:1px solid var(--border); white-space:nowrap; }
table.data th { font-family:var(--font-head); font-weight:600; color:var(--ink-soft); background:var(--surface); font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
table.data tbody tr:hover { background: var(--surface); }
table.data td.wrap { white-space: normal; }

.badge { display:inline-flex; align-items:center; gap:.3rem; font-size:.78rem; font-weight:600; font-family:var(--font-head); padding:.25rem .6rem; border-radius:var(--radius-pill); }
.badge--teal { background:var(--tint); color:var(--teal-darker); }
.badge--blue { background:#e0edfb; color:var(--blue-dark); }
.badge--gray { background:#eef2f6; color:var(--muted); }
.badge--green { background:#ecfdf5; color:#047857; }

.icon-btn { background:none; border:0; cursor:pointer; color:var(--muted); padding:.35rem; border-radius:8px; display:inline-grid; place-items:center; transition:background .15s ease,color .15s ease; }
.icon-btn:hover { background:#fee2e2; color:#dc2626; }
.icon-btn svg { width:18px; height:18px; }

.empty-state { text-align:center; padding:3rem 1rem; color:var(--muted); }
.empty-state svg { width:48px; height:48px; color:var(--border); margin-bottom:1rem; }

@media (max-width: 820px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width:100%; flex-basis:auto; height:auto; position:static; flex-direction:row; flex-wrap:wrap; align-items:center; }
    .admin-side__brand { padding:.3rem .6rem; }
    .admin-nav { flex-direction:row; flex-wrap:wrap; margin:0; flex:1; }
    .admin-side__foot { margin:0; border:0; padding:0; }
    .admin-side__user { display:none; }
}

/* Import Excel — zone de dépôt */
.import-drop {
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
    border: 2px dashed var(--teal); border-radius: 16px;
    padding: 2.4rem 1.5rem; text-align: center; cursor: pointer;
    background: var(--tint); color: var(--teal-darker);
    transition: background .2s ease;
}
.import-drop:hover { background: #dcf3f2; }
.import-drop svg { width: 40px; height: 40px; }
.import-drop input[type=file] { font-size: .9rem; }
.panel__body .btn + .btn { margin-left: .6rem; }

code {
    font-family: 'Consolas', 'SFMono-Regular', monospace;
    font-size: .88em; background: var(--surface); color: var(--teal-darker);
    padding: .12em .45em; border-radius: 6px; border: 1px solid var(--border);
}

/* Bloc coordonnées (page Contact) */
.contact-info { display: grid; gap: 1.3rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: center; }
.contact-info__ic {
    flex: 0 0 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--tint); color: var(--teal-dark);
}
.contact-info__ic svg { width: 22px; height: 22px; }
.contact-info__label { display: block; font-size: .82rem; color: var(--muted); }
.contact-info__value { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* Liste des messages (admin) */
.msg-list { display: flex; flex-direction: column; }
.msg { border-bottom: 1px solid var(--border); }
.msg:last-child { border-bottom: 0; }
.msg--unread { background: #f4fbfb; }
.msg__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; cursor: pointer; }
.msg__head:hover { background: var(--surface); }
.msg__from { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.msg__from strong { color: var(--ink); }
.msg__subject { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.msg__meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.msg__body { padding: 0 1.4rem 1.4rem; }
.msg__text { white-space: pre-wrap; color: var(--ink-soft); background: var(--surface); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.msg__contacts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.msg__actions { display: flex; align-items: center; gap: .6rem; }

/* Sous-titres de section dans les formulaires */
.form-section {
    font-size: 1.02rem; color: var(--teal-darker);
    margin: 1.6rem 0 1rem; padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}
.form-section:first-child { margin-top: 0; }

/* Segmented control Oui / Non */
.seg { display: inline-flex; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.seg__btn {
    border: 0; background: transparent; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    color: var(--muted); padding: .55rem 1.6rem; border-radius: 9px;
    transition: background .18s ease, color .18s ease;
}
.seg__btn:hover { color: var(--ink-soft); }
.seg__btn.active { background: var(--teal); color: #fff; box-shadow: 0 4px 10px rgba(32,179,178,.3); }

/* Réduire l'espace entre l'en-tête collant et le premier bloc de la page */
.hero__grid { padding-top: clamp(20px, 3vw, 40px); }
main > section.section:first-child { padding-top: clamp(24px, 3.5vw, 48px); }
main > section.page-banner:first-child { padding-top: clamp(24px, 3.5vw, 44px); }

/* Autocomplétion (composant Autocomplete) */
.ac { position: relative; }
.ac__menu {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); max-height: 264px; overflow-y: auto;
    list-style: none; margin: 0; padding: 5px;
}
.ac__item {
    padding: .6rem .8rem; border-radius: 8px; cursor: pointer;
    font-size: .96rem; color: var(--ink-soft);
}
.ac__item:hover, .ac__item.active { background: var(--tint); color: var(--teal-darker); }

/* Pages légales (politique de confidentialité, mentions légales) */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 1.2rem; }
.legal h2 {
    font-size: 1.25rem; color: var(--teal-darker);
    margin: 2.2rem 0 .7rem; padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}
.legal ul { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 0 0 1.1rem; }
.legal li { color: var(--body); }
.legal__contact {
    margin-top: 2.5rem; background: var(--tint);
    border-radius: var(--radius-sm); padding: 1.1rem 1.4rem;
}

/* Cartes offres — variante 4 colonnes avec accent et icône ronde */
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid--4 { grid-template-columns: 1fr; } }

.offer--accent .offer__body { border-left: 4px solid var(--teal); }
.offer--accent.offer--orange .offer__body { border-left-color: var(--orange); }

.offer__icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--tint); color: var(--teal-dark);
    margin-bottom: .9rem; margin-top: -2.4rem;
    position: relative; z-index: 1;
    background-clip: padding-box;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}
.offer__icon svg { width: 24px; height: 24px; }
.offer--orange .offer__icon { background: var(--orange-soft); color: var(--orange); }

.grid--4 .offer__img { aspect-ratio: 4/3; }
.grid--4 .offer__body { padding: 0 1.3rem 1.5rem; }
.grid--4 .offer__body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.grid--4 .offer__body p { font-size: .93rem; }
.grid--4 .offer__link { font-size: .9rem; margin-top: .8rem; }

/* Ancres : compenser le header sticky lors du défilement vers une section */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Checklist variante orange (formule Confort maximum) */
.checklist--orange .tick { background: var(--orange-soft); color: var(--orange); }

/* ============================================= Page Pourquoi nous ? */
.why-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.why-title__accent { color: var(--teal); }

.why-list { display: grid; gap: 1.4rem; max-width: 1000px; margin-inline: auto; }
.why-card {
    display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-sm);
}
.why-card__icon {
    flex: 0 0 116px; height: 116px; border-radius: 18px;
    display: grid; place-items: center;
    background: var(--tint); color: var(--teal-dark);
}
.why-card__icon svg { width: 54px; height: 54px; }
.why-card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; flex-wrap: wrap; }
.why-card__head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0; }
.why-num {
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    background: var(--tint); color: var(--teal-darker);
    padding: .2rem .65rem; border-radius: 8px;
}
.why-card__content p { margin: 0; color: var(--body); }
@media (max-width: 640px) {
    .why-card { flex-direction: column; align-items: flex-start; }
    .why-card__icon { flex-basis: auto; width: 84px; height: 84px; }
    .why-card__icon svg { width: 40px; height: 40px; }
}

/* Étoiles */
.stars { display: inline-flex; gap: .25rem; color: var(--orange); margin-bottom: .8rem; }
.stars svg { width: 26px; height: 26px; }
.stars--sm svg { width: 18px; height: 18px; }
.stars--sm { margin-bottom: .6rem; }

/* Bande "Ils nous font confiance" */
.trust-head {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center; margin-bottom: 2.2rem;
    background: var(--tint); border: 1px solid #d8efee; border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.trust-head__left h2 { margin-bottom: 1rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.trust-quote { margin: 0; position: relative; padding-left: 2.2rem; }
.trust-quote__mark {
    position: absolute; left: 0; top: -0.4rem;
    font-family: Georgia, serif; font-size: 3rem; line-height: 1;
    color: var(--teal); opacity: .55;
}
.trust-quote p { font-style: italic; color: var(--ink-soft); margin-bottom: .8rem; }
.trust-quote footer, .tcard footer {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    font-size: .92rem;
}
.trust-quote footer strong, .tcard footer strong { color: var(--ink); }
.trust-role { color: var(--muted); }
.verified {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--teal-dark); font-weight: 500;
}
.verified svg { width: 16px; height: 16px; }

.trust-head__right {
    text-align: center;
    border-left: 1px solid #cfe9e8;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.trust-score { font-family: var(--font-head); line-height: 1; margin-bottom: .5rem; }
.trust-score strong { font-size: clamp(2.6rem, 5vw, 3.4rem); color: var(--teal); font-weight: 700; }
.trust-score span { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.trust-score__base { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.trust-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--ink); color: #fff;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    padding: .5rem 1rem; border-radius: var(--radius-pill);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--orange); }
@media (max-width: 780px) {
    .trust-head { grid-template-columns: 1fr; }
    .trust-head__right { border-left: 0; border-top: 1px solid #cfe9e8; padding-left: 0; padding-top: 1.4rem; }
}

/* Cartes témoignages */
.trust-grid { align-items: stretch; }
.tcard {
    background: var(--tint); border: 1px solid #d8efee; border-radius: var(--radius);
    padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.tcard p { font-style: italic; color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }

/* Témoignages : un avis par ligne, note à droite (style bloc 4,9/5) */
.trust-list { display: grid; gap: 1.2rem; }
.trust-list .tcard {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "stars  score"
        "text   score"
        "footer score";
    column-gap: clamp(1.4rem, 3vw, 2.4rem);
    align-items: start;
}
.trust-list .tcard .stars  { grid-area: stars; }
.trust-list .tcard > p     { grid-area: text; }
.trust-list .tcard footer  { grid-area: footer; }
.tcard__score {
    grid-area: score;
    align-self: center;
    text-align: center;
    min-width: 118px;
    border-left: 1px solid #cfe9e8;
    padding-left: clamp(1.4rem, 3vw, 2.4rem);
    font-family: var(--font-head);
    line-height: 1;
}
.tcard__score strong { font-size: 2.4rem; font-weight: 700; color: var(--teal); }
.tcard__score span   { font-size: 1.15rem; font-weight: 600; color: var(--muted); }

@media (max-width: 640px) {
    .trust-list .tcard {
        grid-template-columns: 1fr;
        grid-template-areas: "stars" "text" "footer" "score";
    }
    .tcard__score {
        border-left: 0; border-top: 1px solid #cfe9e8;
        padding-left: 0; padding-top: 1rem; margin-top: 1rem;
        justify-self: start; text-align: left;
    }
}

/* DxGrid — lignes compactes (admin) */
.admin-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

.grid-compact { font-size: .855rem; }
.grid-compact .dxbl-grid-table > tbody > tr > td {
    padding: .14rem .5rem;
    line-height: 1.3;
}
.grid-compact .dxbl-grid-table > thead > tr > th {
    padding: .3rem .5rem;
    font-size: .8rem;
}
.grid-compact .icon-btn { padding: .1rem; }

/* Barre d'outils au-dessus du DxGrid (style image de référence) */
.grid-toolbar {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem .8rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
    border-radius: 16px 16px 0 0;
}
.grid-toolbar__link {
    margin-left: auto;
    font-family: var(--font-head); font-weight: 500; font-size: .9rem;
    color: var(--teal-dark); padding: .35rem .7rem; border-radius: 8px;
}
.grid-toolbar__link:hover { background: var(--tint); }

/* Popup d'édition du grid + dialogue applicatif */
.demande-edit-popup { min-width: min(880px, 96vw); }
.edit-form-actions {
    display: flex; justify-content: flex-end; gap: .6rem;
    margin-top: 1.1rem; padding-top: .9rem;
    border-top: 1px solid var(--border);
}
.app-dialog__body {
    display: flex; align-items: flex-start; gap: .8rem;
    font-size: 1rem; padding: .3rem 0;
}
.app-dialog__icon { font-size: 1.6rem; line-height: 1.2; color: var(--teal-dark); }

/* Reconnexion Blazor totalement silencieuse : aucun overlay, la page reste
   visible et lisible ; la reconnexion se fait en arrière-plan (voir site.js). */
#components-reconnect-modal { display: none !important; }

/* ------------------------------------------------------ Page Contact (carte) */
.contact-wrap { max-width: 1040px; }
.contact-card {
    display: grid; grid-template-columns: 1.4fr 1fr;
    background: #fff; border: 1px solid var(--border);
    border-radius: 26px; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.contact-form { padding: clamp(1.8rem, 4vw, 3rem); }
.contact-form .field { margin-bottom: 1.15rem; }
.contact-hint {
    display: flex; align-items: center; gap: .5rem;
    margin: .9rem 0 0; font-size: .85rem; color: var(--muted);
}

.contact-aside {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: clamp(1.8rem, 4vw, 2.6rem);
    background: var(--teal-dark);
    color: #fff;
}
.contact-aside::before, .contact-aside::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.08); pointer-events: none;
}
.contact-aside::before { width: 240px; height: 240px; top: -90px; right: -80px; }
.contact-aside::after  { width: 170px; height: 170px; bottom: -60px; left: -50px; }
.contact-aside > * { position: relative; z-index: 1; }
.contact-aside h3 { color: #fff; margin-bottom: .2rem; }
.contact-aside .contact-info__ic { background: rgba(255,255,255,.15); color: #fff; }
.contact-aside .contact-info__label { color: rgba(255,255,255,.7); }
.contact-aside .contact-info__value { color: #fff; }
.contact-aside .contact-info__value:hover { color: #d9f6f5; }

.aside-badge {
    display: flex; gap: .9rem; align-items: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px; padding: .9rem 1.1rem;
    font-size: .92rem; line-height: 1.45;
}
.aside-badge i { font-size: 1.5rem; }
.aside-foot { margin: auto 0 0; font-size: .78rem; color: rgba(255,255,255,.65); }

.contact-success { text-align: center; padding: 2.2rem 1rem; }
.contact-success__icon {
    width: 78px; height: 78px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tint); color: var(--teal-dark);
    font-size: 2.3rem; margin-bottom: 1.1rem;
}
.contact-success h2 { margin-bottom: .4rem; }
.contact-success p { color: var(--body); max-width: 46ch; margin: 0 auto 1.4rem; }

@media (max-width: 860px) {
    .contact-card { grid-template-columns: 1fr; }
}

/* Formulaire agrandi (page Je compare) */
.form-lg .field__label { font-size: 1.05rem; margin-bottom: .5rem; }
.form-lg .form-section { font-size: 1.2rem; }
.form-lg .field { margin-bottom: 1.35rem; }
.form-lg .checkbox { font-size: 1.05rem; }
.form-lg .field__error { font-size: .95rem; }
.form-lg .field__hint { font-size: .95rem; }

/* Statistiques du rapport d'import */
.import-stats {
    list-style: none; margin: 0 0 1.2rem; padding: 0;
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.import-stats li {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; padding: .55rem 1rem; font-size: .93rem;
}
.import-stats li + li { border-top: 1px solid var(--border); }
.import-stats li span { color: var(--muted); }
.import-stats li strong { color: var(--ink); white-space: nowrap; }
.import-stats li em { color: var(--teal-dark); font-style: normal; font-weight: 500; }

/* Indicateur d'activité (import en cours) */
.import-busy {
    display: flex; align-items: center; gap: .7rem;
    margin-top: 1rem; color: var(--muted); font-weight: 500;
}
.spinner {
    width: 22px; height: 22px; flex: 0 0 auto;
    border: 3px solid var(--tint);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Zone de sélection de fichier (import) — version enjolivée */
.import-drop {
    position: relative;
    padding: 2.2rem 1.5rem;
    gap: .5rem;
    background: linear-gradient(180deg, var(--tint), #f2fbfb);
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.import-drop:hover { background: #dcf3f2; transform: translateY(-2px); }
.import-drop input[type=file] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer; font-size: 0;
}
.import-drop__icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--teal-dark);
    box-shadow: var(--shadow-sm);
}
.import-drop__icon svg { width: 30px; height: 30px; }
.import-drop__title { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.import-drop__hint { font-size: .85rem; color: var(--muted); }
.import-drop__btn {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: .4rem;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    color: #fff; background: var(--teal);
    padding: .55rem 1.4rem; border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px rgba(32, 179, 178, .35);
}
.import-drop:hover .import-drop__btn { background: var(--teal-dark); }

.import-drop--disabled {
    opacity: .55; filter: grayscale(.4);
    border-color: var(--border);
}
.import-drop--disabled:hover { background: linear-gradient(180deg, var(--tint), #f2fbfb); transform: none; }
.import-drop--disabled input[type=file] { cursor: not-allowed; }
.import-drop--disabled .import-drop__btn { box-shadow: none; }

/* Grid des messages : lignes non lues + détail déplié */
.msg-row-unread > td { font-weight: 600; color: var(--ink); }
.msg-detail { padding: .9rem 1.2rem; }
.msg-detail .msg__text { margin-bottom: .8rem; }
.msg-detail .msg__contacts { margin-bottom: 0; }

/* Séparateur vertical dans la barre d'outils des grids */
.grid-toolbar__sep {
    width: 1px; height: 22px;
    background: var(--border);
    margin: 0 .5rem;
}

/* Zone droite de la barre d'outils (case Origine + lien import) */
.grid-toolbar__right { margin-left: auto; display: inline-flex; align-items: center; }
.grid-toolbar__link--inline { margin-left: .6rem; }


/* Réduction de l'espace sous le hero (accueil) */
.hero__grid { padding-bottom: clamp(20px, 3vw, 40px); }
.hero + .section { padding-top: clamp(24px, 3.5vw, 48px); }

/* Marge latérale du hero sur mobile (portrait comme paysage) */
@media (max-width: 960px) {
    .hero .container { padding-inline: clamp(28px, 6vw, 44px); }
}

/* ------------------------------------------- Bandeau de consentement cookies */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 0 16px 16px;
    transform: translateY(120%);
    transition: transform .35s ease;
    pointer-events: none;
}
.cookie-banner--show { transform: none; pointer-events: auto; }
.cookie-banner__inner {
    max-width: 880px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 8px 30px rgba(20, 48, 74, .18);
    padding: 1.1rem 1.3rem;
    display: flex; gap: 1.1rem; align-items: center;
}
.cookie-banner__icon { font-size: 2rem; color: var(--orange); line-height: 1; }
.cookie-banner__text { flex: 1; font-size: .92rem; line-height: 1.5; }
.cookie-banner__text strong {
    font-family: var(--font-head); color: var(--ink);
    display: block; margin-bottom: .2rem;
}
.cookie-banner__text p { margin: 0; color: var(--muted); }
.cookie-banner__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-banner__actions .btn { padding: .6rem 1.2rem; font-size: .9rem; }

@media (max-width: 640px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner__icon { display: none; }
    .cookie-banner__actions { justify-content: center; }
}
