/* =====================================================================
   UNICARE — Medicare (santé) · Energicare (énergie)
   Concept : le « U » de Unicare est un berceau qui porte ce dont on prend soin.
   Medicare = bleu canard + menthe · Energicare = ambre solaire + vert profond.
   ===================================================================== */
:root {
  --ink: #0E1B24;
  --paper: #F3F6F6;
  --surface: #FFFFFF;
  --line: #D6E1E3;
  --muted: #55666F;

  --med: #0A5C73;          /* bleu canard Medicare */
  --med-2: #1FB89C;        /* menthe */
  --med-soft: #E2F1EF;
  --sun: #F2A007;          /* ambre Energicare */
  --sun-ink: #8A5300;      /* ambre lisible sur fond clair */
  --sun-deep: #13392F;     /* vert profond */
  --sun-soft: #FFF2D4;

  --band-ink: #0E1B24;
  --band-ink-fg: #E9F1F2;
  --band-ink-muted: #9FB2B8;
  --on-accent: #FFFFFF;

  --accent: var(--med);
  --accent-2: var(--med-2);

  --logo-med: #0A5C73; --logo-med-2: #1FB89C;
  --logo-sun: #F2A007; --logo-sun-2: #FFC94A; --logo-sun-deep: #13392F;

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgb(14 27 36 / .06), 0 8px 24px -12px rgb(14 27 36 / .18);
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6EFF1; --paper: #0B151A; --surface: #13212A; --line: #233741; --muted: #9AB0B8;
    --med: #4CC0D8; --med-2: #3AD7B6; --med-soft: #10303A;
    --sun: #FFB52E; --sun-ink: #FFC75A; --sun-deep: #8ED7B4; --sun-soft: #2B2412;
    --band-ink: #060D11; --on-accent: #06141A;
    --logo-med: #4CC0D8; --logo-med-2: #3AD7B6; --logo-sun-deep: #0E2A22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6EFF1; --paper: #0B151A; --surface: #13212A; --line: #233741; --muted: #9AB0B8;
  --med: #4CC0D8; --med-2: #3AD7B6; --med-soft: #10303A;
  --sun: #FFB52E; --sun-ink: #FFC75A; --sun-deep: #8ED7B4; --sun-soft: #2B2412;
  --band-ink: #060D11; --on-accent: #06141A;
  --logo-med: #4CC0D8; --logo-med-2: #3AD7B6; --logo-sun-deep: #0E2A22;
  color-scheme: dark;
}
body[data-view="energie"] { --accent: var(--sun-ink); --accent-2: var(--sun); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--f-mono); font-size: .86rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 12px; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.eyebrow--sun { color: var(--sun-ink); }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.03; margin: 0 0 18px; text-wrap: balance; }
.display em { font-style: normal; color: var(--med-2); position: relative; white-space: nowrap; }
.display em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--sun); border-radius: 4px; z-index: -1; }
.display--md { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h2 { font: 700 clamp(1.6rem, 3vw, 2.35rem)/1.12 var(--f-display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h3 { font: 700 1.25rem/1.25 var(--f-display); margin: 0 0 6px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin: 0 0 26px; }
.lead--dark { color: var(--band-ink-muted); margin: 16px 0 0; }

.section-head { margin: 88px 0 28px; max-width: 760px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.section-head--row > div { min-width: 0; max-width: 720px; }
.section-head--tight { margin-top: 56px; }

/* ---------- Logos ---------- */
.mk { width: 36px; height: 36px; flex: none; }
.word { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.word b { font-weight: 800; }
.word i { font-style: normal; font-weight: 500; }
.word--uni i { background: linear-gradient(90deg, var(--med-2), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lockup { display: inline-flex; align-items: center; gap: 8px; }
.lockup .word i { color: var(--med-2); }
.lockup--sun .word i, .door--sun .word i, .view[data-view="energie"] .lockup .word i { color: var(--logo-sun); }
.lockup--lg { margin-bottom: 20px; }
.lockup--lg .mk { width: 48px; height: 48px; }
.lockup--lg .word { font-size: 1.9rem; }
.lockup--light .word b { color: #fff; }
.lockup--light { --logo-med: #FFFFFF; --logo-sun-deep: #FFFFFF; }

/* ---------- Boutons ---------- */
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--f-body); padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn--lg { padding: 18px 28px; font-size: 1.08rem; }
.btn--med { background: var(--med); color: var(--on-accent); }
.btn--med:hover { box-shadow: 0 8px 20px -8px var(--med); }
.btn--sun { background: var(--sun); color: #2A1800; }
.btn--sun:hover { box-shadow: 0 8px 20px -8px var(--sun); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--full { width: 100%; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mk--brand { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.mk--nav { width: 20px; height: 20px; }
.nav a:hover, .nav a.is-on { color: var(--ink); background: var(--paper); }
.nav a.nav--med.is-on { color: var(--on-accent); background: var(--med); --logo-med: currentColor; }
.nav a.nav--sun.is-on { color: #2A1800; background: var(--sun); --logo-sun: #2A1800; --logo-sun-2: #2A1800; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 10px 8px 14px; font: 600 .95rem var(--f-body); cursor: pointer; }
.cartbtn__n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--med); color: var(--on-accent); display: grid; place-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cartbtn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.mobilenav { display: none; gap: 6px; overflow-x: auto; padding-block: 0 10px; scrollbar-width: none; }
.mobilenav a { flex: none; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mobilenav a.is-on { color: var(--ink); border-color: var(--ink); }
.mobilenav a.nav--med.is-on { background: var(--med); color: var(--on-accent); border-color: var(--med); }
.mobilenav a.nav--sun.is-on { background: var(--sun); color: #2A1800; border-color: var(--sun); }

/* ---------- Accueil ---------- */
.home-hero { padding-block: 56px 32px; }
.home-hero .display { max-width: 18ch; }
.home-hero .lead { margin-bottom: 0; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { position: relative; display: flex; align-items: flex-end; min-height: 500px; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.door--med { background: linear-gradient(135deg, #0A5C73, #0B3B4C 60%, #1FB89C); }
.door--sun { background: linear-gradient(135deg, #13392F, #8A5300 70%, #F2A007); }
.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.door:hover .door__img { transform: scale(1.05); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.door--med::before { background: linear-gradient(180deg, rgb(4 30 40 / .05) 20%, rgb(4 34 44 / .9) 100%); }
.door--sun::before { background: linear-gradient(180deg, rgb(20 14 0 / .0) 20%, rgb(16 26 18 / .9) 100%); }
.door__in { display: grid; gap: 10px; padding: 32px; width: 100%; }
.door__title { font: 800 clamp(2rem, 3.6vw, 2.9rem)/1 var(--f-display); letter-spacing: -.03em; }
.door__txt { color: rgb(255 255 255 / .86); max-width: 42ch; font-size: 1.02rem; }
.door__btn { margin-top: 8px; justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 700 1.1rem var(--f-body); padding: 18px 28px; border-radius: 999px; transition: gap .2s ease; }
.door--med .door__btn { background: var(--med-2); color: #04211B; }
.door--sun .door__btn { background: var(--sun); color: #2A1800; }
.door:hover .door__btn { gap: 16px; }
.door .lockup .word { font-size: 1.5rem; }

.badges { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.badges li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.badges .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--med-soft); color: var(--med); }
.badges span { font-size: .9rem; color: var(--muted); line-height: 1.4; min-width: 0; }
.badges b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.badges--med { margin-top: 28px; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.review__q { width: 32px; height: 32px; color: var(--med-2); }
.review--sun .review__q { color: var(--sun); }
.review blockquote { margin: 0; font: 500 1.08rem/1.5 var(--f-body); flex: 1; }
.review figcaption { font-size: .9rem; color: var(--muted); display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.review figcaption b { color: var(--ink); }
.review__tag { justify-self: start; margin-top: 8px; font: 500 .74rem var(--f-mono); padding: 3px 8px; border-radius: 6px; background: var(--med-soft); color: var(--med); }
.review--sun .review__tag { background: var(--sun-soft); color: var(--sun-ink); }
.review--ex { border-style: dashed; border-width: 1.5px; }
.review--ex blockquote, .review--ex figcaption b { color: var(--muted); font-style: italic; }
.review__ex { position: absolute; top: -11px; left: 20px; font: 600 .72rem var(--f-body); letter-spacing: .04em; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 999px; }

.trust { padding-block: 72px 24px; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust__list li { background: var(--surface); display: grid; place-items: center; text-align: center; padding: 26px 12px; min-height: 96px; font: 700 1rem/1.2 var(--f-display); color: var(--muted); }

/* ---------- Medicare ---------- */
.med-top { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--med-soft), var(--paper) 70%); isolation: isolate; }
.med-top__img { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.med-top__in { padding-block: 56px 52px; }
.med-top__in > * { max-width: 620px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.grid--best { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--best .card { border-color: color-mix(in srgb, var(--med-2) 45%, var(--line)); }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; width: min(420px, 100%); color: var(--muted); }
.search:focus-within { border-color: var(--med); }
.search input { border: 0; outline: 0; background: transparent; font: 500 1rem var(--f-body); padding: 13px 0; width: 100%; color: var(--ink); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--f-body); border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip:hover { border-color: var(--med); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip__n { font: 500 .78rem var(--f-mono); opacity: .65; }
.chips--req .chip { font-weight: 500; background: transparent; }
.chips--req .chip::before { content: "+"; font-weight: 700; color: var(--med-2); }
.chips--req .chip.is-added { background: var(--med-soft); border-color: var(--med-2); }
.chips--req .chip.is-added::before { content: "✓"; }
.count { color: var(--muted); font-size: .9rem; margin: 18px 0 14px; font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; min-width: 0; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__img { aspect-ratio: 5 / 4; background: #fff; display: grid; place-items: center; padding: 14px; cursor: pointer; border: 0; width: 100%; position: relative; }
.card__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.card__tag { position: absolute; top: 10px; left: 10px; font: 600 .72rem var(--f-body); letter-spacing: .04em; background: var(--sun); color: #2A1800; padding: 4px 8px; border-radius: 6px; }
.ph { width: 64%; height: 64%; color: var(--med); opacity: .9; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.card__cat { font: 600 .72rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--med-2); }
.card__name { font: 700 1rem/1.3 var(--f-body); margin: 0; }
.card__spec { font: 500 .8rem/1.4 var(--f-mono); color: var(--muted); margin: 0 0 10px; }
.card__act { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 40px; }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty .ic { width: 16px; height: 16px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font: 600 .95rem var(--f-body); color: var(--ink); -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.addbtn { flex: 1; height: 40px; border-radius: 999px; border: 0; background: var(--med); color: var(--on-accent); font: 600 .9rem var(--f-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.addbtn.is-in { background: var(--med-2); color: #06201A; }
.addbtn .ic { width: 16px; height: 16px; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }

.onreq { margin-top: 48px; padding: 28px; border-radius: 20px; border: 1.5px dashed var(--med-2); display: grid; gap: 18px; }
.onreq__head p { margin: 0; color: var(--muted); max-width: 70ch; }

.band { padding-block: 0 88px; margin-top: 88px; }
.band--flush { margin-top: 0; }
.band--ink { background: var(--band-ink); color: var(--band-ink-fg); }
.band--ink .eyebrow { color: var(--med-2); }
.band--ink .eyebrow--sun { color: var(--logo-sun-2); }
.band--medsoft { background: var(--med-soft); }
.band--sunsoft { background: var(--sun-soft); }
.band .section-head { margin-top: 0; padding-top: 80px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about > div { min-width: 0; padding-top: 80px; }
.about .h2 { margin-bottom: 18px; }
.about__cards { list-style: none; margin: 80px 0 0; padding: 0; display: grid; gap: 12px; }
.about__cards li { background: var(--surface); border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); }
.about__cards h3 { font: 700 1.08rem var(--f-display); margin: 0 0 4px; color: var(--med); }
.about__cards p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Blocs 3D ---------- */
.s3d { margin-top: 88px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; border-radius: 26px; padding: 40px; overflow: hidden; position: relative; }
.s3d--med { background: radial-gradient(circle at 75% 50%, var(--med-soft), var(--surface) 70%); border: 1px solid var(--line); }
.s3d--sun { background: radial-gradient(circle at 75% 50%, var(--sun-soft), var(--surface) 70%); border: 1px solid var(--line); }
.s3d__txt { min-width: 0; }
.s3d__txt .h2 { margin-bottom: 12px; }
.s3d__txt p:not(.eyebrow) { color: var(--muted); margin: 0; }
.s3d__stage { --t: .3; position: relative; height: 380px; display: grid; place-items: center; perspective: 1000px; }
.s3d__hint { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; font: 500 .76rem var(--f-mono); color: var(--muted); background: var(--surface); border: 1px dashed var(--line); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.s3d__hint .ic { width: 14px; height: 14px; }
.has-model .s3d__hint { display: none; }
model-viewer { width: 100%; height: 100%; }
.s3d__obj { --w: 170px; --h: 170px; --d: 170px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(calc(-18deg + var(--t) * 30deg)) rotateY(calc(var(--t) * 360deg - 30deg)); }
.s3d__obj .f { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; border-radius: 12px; backface-visibility: visible; }
.f--fr, .f--bk { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.f--rt, .f--lf { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.f--tp, .f--bt { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.f--fr { transform: translateZ(calc(var(--d) / 2)); }
.f--bk { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f--rt { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.f--lf { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f--tp { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.f--bt { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.s3d--med .f { background: var(--med); border: 2px solid var(--med-2); }
.s3d--med .f--tp, .s3d--med .f--rt { background: color-mix(in srgb, var(--med) 75%, #fff); }
.s3d--med .f .mk { width: 60%; height: 60%; --logo-med: #fff; }
.s3d--sun .s3d__obj { --w: 280px; --h: 180px; --d: 14px; transform: rotateX(calc(35deg - var(--t) * 25deg)) rotateY(calc(var(--t) * 140deg - 70deg)); }
.s3d--sun .f { border-radius: 6px; background: #8A5300; }
.s3d--sun .f--fr { background: repeating-linear-gradient(90deg, transparent 0 66px, #F2A007 66px 70px), repeating-linear-gradient(0deg, transparent 0 41px, #F2A007 41px 45px), linear-gradient(135deg, #1E4A86, #0E2A55); border: 4px solid #F2A007; }
.s3d--sun .f--bk { background: #3A4A52; }

/* ---------- Energicare ---------- */
.sun-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0E2A3A; }
.sun-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.sun-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 24 30 / .88) 0%, rgb(8 24 30 / .55) 48%, rgb(8 24 30 / 0) 80%), linear-gradient(0deg, rgb(8 24 30 / .55), transparent 40%); }
.sun-hero__in { position: relative; z-index: 1; padding-block: 72px 64px; width: 100%; }
.sun-hero__in > * { max-width: 640px; }
.sun-hero .lead { color: rgb(255 255 255 / .86); }
.sun-hero .display { color: #fff; }

.refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.refs figure { margin: 0; border-radius: var(--r); overflow: hidden; background: #13232C; position: relative; }
.refs img { width: 100%; height: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .4s ease; }
.refs figure:hover img { transform: scale(1.04); }
.refs__big { grid-column: span 2; grid-row: span 2; }
.refs figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .82rem; color: rgb(255 255 255 / .8); background: linear-gradient(transparent, rgb(0 0 0 / .75)); }
.refs figcaption b { display: block; color: #fff; font-size: .95rem; }

.whys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.whys li { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.whys .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); margin-bottom: 14px; }
.whys h3 { font: 700 1.1rem var(--f-display); margin: 0 0 4px; }
.whys p { margin: 0; color: var(--muted); font-size: .95rem; }

.match { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.match > div { min-width: 0; padding-top: 80px; }
.match .h2 { margin-bottom: 16px; }
.actors { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actors li { background: var(--surface); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); }
.actors__k { display: inline-block; font: 500 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sun-ink); margin-bottom: 8px; }
.actors b { display: block; font: 700 1.04rem/1.3 var(--f-display); }
.actors p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 0 24px 0 0; position: relative; min-width: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 52px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px); opacity: .3; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 1.15rem var(--f-display); background: var(--sun); color: #2A1800; margin-bottom: 18px; }
.steps h3 { font: 700 1.12rem/1.25 var(--f-display); margin: 0 0 6px; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

.formwrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.formwrap > div { padding-top: 80px; min-width: 0; }
.formwrap > div .h2 { margin-bottom: 14px; }
.formwrap .form { margin-top: 80px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; background: var(--surface); border-radius: 20px; padding: 24px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); min-width: 0; }
.form input:not([type="checkbox"]), .form select, .form textarea { font: 500 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; width: 100%; min-width: 0; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.form .is-bad { border-color: #D2452F !important; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.checks input { accent-color: var(--sun-ink); }
.form__out { border-radius: var(--r-sm); padding: 16px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; display: grid; gap: 12px; }
.form__out h4 { margin: 0; font: 700 1.05rem var(--f-display); }
.form__out p { margin: 0; color: var(--muted); }
.form__out .row-btns .btn { padding: 11px 16px; font-size: .92rem; }
.form__out textarea { font: 500 .8rem/1.5 var(--f-mono); }

.contactlist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contactlist li { display: flex; gap: 12px; align-items: center; }
.contactlist .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.contactlist a, .contactlist span { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contactlist small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

.contact { margin-top: 88px; padding-block: 72px; background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact__grid > div { min-width: 0; }
.contact__grid .h2 { margin-bottom: 12px; }
.contact__grid p { color: var(--muted); margin: 0; }
.contactlist--big { margin: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
.contactlist--big li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; align-items: flex-start; }

.foot { background: var(--band-ink); color: var(--band-ink-muted); padding-block: 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: grid; gap: 10px; }
.foot__brands { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 8px; }
.foot p { margin: 0; }
.foot__small { font-size: .82rem; opacity: .75; }

/* ---------- Panier / modale ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 80; }
.drawer__veil { position: absolute; inset: 0; background: rgb(6 14 18 / .5); backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgb(0 0 0 / .4); padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer__head h2 { margin: 0; font: 700 1.3rem var(--f-display); }
.drawer__body { overflow-y: auto; padding: 18px 20px 28px; display: grid; gap: 18px; align-content: start; }
.drawer .form { padding: 18px; }
.cart { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cart li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.cart__thumb { width: 52px; height: 52px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.cart__thumb img { max-height: 46px; width: auto; mix-blend-mode: multiply; }
.cart__thumb .ph { width: 30px; height: 30px; }
.cart__name { font-weight: 600; font-size: .92rem; line-height: 1.3; min-width: 0; }
.cart__name small { display: block; font: 500 .76rem var(--f-mono); color: var(--muted); }
.cart__side { display: flex; align-items: center; gap: 6px; }
.cart .qty { height: 34px; }
.cart .qty input { width: 34px; }
.cart .qty button { width: 28px; }
.cart__rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; display: grid; }
.cart__rm .ic { width: 16px; height: 16px; }
.cart__empty { margin: 0; color: var(--muted); font-size: .95rem; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); }

.modal { display: grid; place-items: center; padding: 16px; }
.modal__panel { position: relative; background: var(--surface); border-radius: 22px; width: min(820px, 100%); max-height: calc(100% - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; animation: pop .22s ease; }
@keyframes pop { from { transform: scale(.97); opacity: .4; } }
.modal__x { position: absolute; top: 12px; right: 12px; z-index: 1; }
.modal__img { background: #fff; display: grid; place-items: center; padding: 28px; min-height: 280px; }
.modal__img img { max-height: 340px; width: auto; mix-blend-mode: multiply; }
.modal__img .ph { width: 50%; height: auto; }
.modal__txt { padding: 32px 28px; display: grid; gap: 12px; align-content: start; }
.modal__txt h2 { margin: 0; font: 700 1.5rem/1.2 var(--f-display); }
.modal__txt p { margin: 0; color: var(--muted); }
.qtyrow { display: flex; align-items: center; gap: 12px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 90; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: #1FAF5A; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.wa-float .ic { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .badges, .grid--best { grid-template-columns: 1fr 1fr; }
  .trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whys { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .mobilenav { display: flex; }
  .top__in { justify-content: space-between; }
  .doors, .about, .match, .formwrap, .contact__grid, .s3d { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 420px; }
  .about__cards, .actors, .formwrap .form { margin-top: 0; }
  .about > div, .match > div, .formwrap > div { padding-top: 64px; }
  .section-head { margin-top: 64px; }
  .contactlist--big { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__img { min-height: 200px; }
  .med-top__img { width: 100%; opacity: .18; -webkit-mask-image: none; mask-image: none; }
  .sun-hero { min-height: 520px; }
  .sun-hero::after { background: linear-gradient(0deg, rgb(8 24 30 / .92) 10%, rgb(8 24 30 / .5) 70%, rgb(8 24 30 / .2)); }
  .s3d { padding: 28px; }
  .s3d__stage { height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .badges, .whys, .steps, .actors, .f2 { grid-template-columns: minmax(0, 1fr); }
  .trust__list { grid-template-columns: 1fr 1fr; }
  .grid, .grid--best { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__act { flex-direction: column; align-items: stretch; }
  .card__act .qty { justify-content: space-between; }
  .addbtn { font-size: .84rem; }
  .cartbtn__label { display: none; }
  .wa-float span { display: none; }
  .door__in { padding: 22px; }
  .door__title { font-size: 1.75rem; }
  .door__btn { padding: 16px 22px; font-size: 1rem; }
  .onreq { padding: 22px; }
  .refs__big { grid-column: span 2; grid-row: auto; }
  .s3d__obj { --w: 130px; --h: 130px; --d: 130px; }
  .s3d--sun .s3d__obj { --w: 220px; --h: 140px; --d: 12px; }
  .btn--lg { width: 100%; }
}
@media (max-width: 380px) { .grid, .grid--best { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Catalogue partenaire */
.card__variant { margin: 2px 0 0; font: 600 .86rem/1.35 var(--f-body); color: var(--med); }
.btn--more { display: flex; margin: 24px auto 0; }
.modal__variant { margin: 0; font-weight: 700; color: var(--med); }
.modal__desc { margin: 0; color: var(--ink) !important; font-size: .95rem; line-height: 1.55; max-height: 220px; overflow: auto; }
.modal__note { margin: 0; font-size: .86rem; }

/* ---------- Recherche Medicare (en-tête) ---------- */
.hsearch { position: relative; margin: 0 0 18px; max-width: 760px; }
.hsearch__bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--med); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--med) 60%, transparent); }
.hsearch__bar .ic { color: var(--med); width: 22px; height: 22px; }
.hsearch__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1.05rem var(--f-body); padding: 12px 0; }
.hsearch__bar .btn { padding: 13px 22px; }
.hsugg { position: absolute; z-index: 30; left: 0; right: 0; top: 68px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; }
.hsugg li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.hsugg li[aria-selected="true"], .hsugg li:hover { background: var(--med-soft); }
.hsugg img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.hsugg b { display: block; font-size: .95rem; line-height: 1.3; }
.hsugg small { color: var(--muted); font-size: .8rem; }
.hsugg .mono { font-size: .76rem; }
.hsugg .hsugg__all { display: block; text-align: center; font-weight: 600; color: var(--med); }
.hsugg .hsugg__none { display: block; color: var(--muted); cursor: default; }
.hsugg__none b { color: var(--med); cursor: pointer; display: inline; }
.hsearch__pop { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); }
.hsearch__pop button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .85rem var(--f-body); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.hsearch__pop button:hover { border-color: var(--med); color: var(--med); }
@media (max-width: 560px) {
  .hsearch__bar { padding: 4px 4px 4px 14px; }
  .hsearch__bar .btn { padding: 12px 16px; }
  .hsearch__bar input { font-size: 1rem; }
}

/* ---------- Tracker Hélios 3D ---------- */
.refs .tracker { --gx: 50%; --gy: 30%; background: radial-gradient(ellipse at 50% 120%, #1c3326 0%, transparent 55%), linear-gradient(180deg, #050d14 0%, #0b2030 70%, #12261d 100%); min-height: 420px; touch-action: pan-y; }
.tracker.is-sun { cursor: none; }
.tracker__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tracker__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; mix-blend-mode: screen; background: radial-gradient(circle 340px at var(--gx) var(--gy), rgb(255 205 110 / .30), rgb(255 160 50 / .12) 40%, transparent 72%); }
.tracker.is-sun .tracker__glow { opacity: 1; }
.refs .tracker .tracker__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.tracker__hint { position: absolute; top: 14px; left: 14px; font: 600 .82rem var(--f-body); color: #FFE2A6; background: rgb(255 181 46 / .14); border: 1px solid rgb(255 200 90 / .4); padding: 7px 12px; border-radius: 999px; pointer-events: none; animation: hintpulse 2.4s ease-in-out infinite; }
@keyframes hintpulse { 50% { box-shadow: 0 0 0 6px rgb(255 190 70 / .12); } }
.tracker figcaption { pointer-events: none; }
.tracker__read { display: block; font: 500 .8rem var(--f-mono); color: #FFD27A; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .refs .tracker { min-height: 360px; } }

/* ---------- Offre sur devis ---------- */
.devis { margin-top: 72px; border-radius: 26px; padding: 36px; background: linear-gradient(135deg, var(--med) 0%, color-mix(in srgb, var(--med) 70%, #04222c) 100%); color: #fff; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.devis__head .h2 { color: #fff; margin: 14px 0 12px; }
.devis__head p { color: rgb(255 255 255 / .85); margin: 0 0 22px; }
.devis__head .btn--med { background: var(--med-2); color: #04211B; }
.devis__badge, .card__devis { display: inline-flex; align-items: center; gap: 6px; font: 700 .74rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; background: var(--sun); color: #2A1800; padding: 5px 10px; border-radius: 999px; }
.devis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.devis__title { font: 700 1rem var(--f-display); margin: 0 0 10px; color: rgb(255 255 255 / .9); }
.devis__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.devis__item { display: flex; align-items: stretch; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; overflow: hidden; }
.devis__item:hover { background: rgb(255 255 255 / .16); }
.devis__open { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: #fff; padding: 9px 10px; cursor: pointer; font: inherit; }
.devis__ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / .14); display: grid; place-items: center; }
.devis__ic .ph { width: 20px; height: 20px; color: #fff; opacity: 1; }
.devis__txt { min-width: 0; }
.devis__txt b { display: block; font-size: .9rem; line-height: 1.25; }
.devis__txt small { display: block; font-size: .76rem; color: rgb(255 255 255 / .7); line-height: 1.3; }
.devis__add { flex: none; width: 42px; border: 0; border-left: 1px solid rgb(255 255 255 / .16); background: transparent; color: #fff; font: 700 1.2rem var(--f-body); cursor: pointer; }
.devis__add:hover, .devis__add.is-in { background: var(--med-2); color: #04211B; }
.card--devis { border: 1.5px dashed var(--med-2); }
.card--devis .card__img { background: linear-gradient(135deg, var(--med-soft), var(--surface)); }
.card--devis .card__img .ph { width: 42%; height: 42%; }
.card__devis { position: absolute; top: 10px; left: 10px; }
.modal__panel.is-devis .modal__img { background: linear-gradient(135deg, var(--med-soft), var(--surface)); }
.brands { padding-block: 64px 0; }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands__list li { font: 700 .92rem var(--f-display); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.trust__list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 960px) { .devis { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
@media (max-width: 560px) { .devis__grid { grid-template-columns: minmax(0, 1fr); } .devis { padding: 22px; } }
.trust__list { display: flex; flex-wrap: wrap; gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; }
.trust__list li { flex: 1 1 160px; border: 1px solid var(--line); border-radius: var(--r); min-height: 84px; }
@media (min-width: 961px) { .devis__head { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); } }

/* ---------- Logo Médiforce Care ---------- */
.brand .logo { height: 50px; width: auto; display: block; }
.logo--light { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo--dark { display: none !important; } :root:not([data-theme="light"]) .logo--light { display: block !important; } }
:root[data-theme="dark"] .logo--dark { display: none !important; }
:root[data-theme="dark"] .logo--light { display: block !important; }
.lockup--img { display: inline-flex; }
.lockup--img .logo { height: 64px; width: auto; display: block; }
.lockup--img.lockup--lg .logo { height: 86px; }
.door .lockup--img .logo { height: 70px; }
.foot__brands .lockup--img .logo { height: 58px; }
.foot__brands { align-items: center; }
@media (max-width: 560px) { .brand .logo { height: 40px; } .lockup--img.lockup--lg .logo { height: 70px; } }

/* ---------- Produits sur devis, fondus dans le catalogue ---------- */
.card--devis { border: 1.5px solid color-mix(in srgb, var(--sun) 55%, var(--line)); background: color-mix(in srgb, var(--sun-soft) 55%, var(--surface)); }
.card--devis .card__img { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--sun) 22%, var(--sun-soft)) 0 34%, var(--sun-soft) 35%); }
.card--devis .card__img .ph { width: 40%; height: 40%; color: var(--sun-ink); opacity: 1; stroke-width: 1.4; }
.card--devis .card__body { border-top-color: color-mix(in srgb, var(--sun) 35%, var(--line)); }
.card--devis .card__cat { color: var(--sun-ink); }
.card--devis .card__variant { color: var(--sun-ink); }
.card--devis .card__spec::before { content: "● "; color: var(--sun); }
.card--devis .addbtn { background: var(--sun); color: #2A1800; }
.card--devis .addbtn.is-in { background: var(--sun-ink); color: #fff; }
.card__devis { position: absolute; top: 10px; left: 10px; font: 700 .72rem var(--f-body); letter-spacing: .05em; text-transform: uppercase; background: var(--sun); color: #2A1800; padding: 4px 9px; border-radius: 999px; }
.modal__panel.is-devis .modal__img { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sun) 22%, var(--sun-soft)) 0 30%, var(--sun-soft) 31%); }
.modal__panel.is-devis .modal__img .ph { color: var(--sun-ink); width: 40%; }

/* ---------- Avis ---------- */
.reviews__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Ils nous ont fait confiance : une couleur par client ---------- */
.trust__list li { --c: var(--med); position: relative; background: color-mix(in srgb, var(--c) 9%, var(--surface)); border-color: color-mix(in srgb, var(--c) 28%, var(--line)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); filter: none; transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; cursor: default; }
.trust__list li::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.trust__list li:hover { background: var(--c); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px -14px var(--c); }
.trust__list li:nth-child(9n+1) { --c: #0A5C73; }
.trust__list li:nth-child(9n+2) { --c: #C2410C; }
.trust__list li:nth-child(9n+3) { --c: #1E7F5C; }
.trust__list li:nth-child(9n+4) { --c: #6D3FB5; }
.trust__list li:nth-child(9n+5) { --c: #B7791F; }
.trust__list li:nth-child(9n+6) { --c: #BE185D; }
.trust__list li:nth-child(9n+7) { --c: #C81E1E; }
.trust__list li:nth-child(9n+8) { --c: #2563EB; }
.trust__list li:nth-child(9n+9) { --c: #0F766E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust__list li { color: color-mix(in srgb, var(--c) 45%, #fff); } }
:root[data-theme="dark"] .trust__list li { color: color-mix(in srgb, var(--c) 45%, #fff); }

/* Piège à robots des formulaires */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.top__in { min-height: 76px; }
.brand .logo { height: 60px; }
@media (max-width: 560px) { .brand .logo { height: 46px; } .top__in { min-height: 64px; } }

/* ---------- Qui sommes-nous ---------- */
.ab-hero { padding-block: 64px 40px; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 45%), linear-gradient(180deg, var(--med-soft), var(--paper)); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.ab-hero .lead { margin-bottom: 0; }
.ab-portrait { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 14px; text-align: center; }
.ab-portrait__mono { width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; font: 800 4.4rem var(--f-display); letter-spacing: -.04em; color: #fff; background: radial-gradient(circle at 30% 25%, var(--med-2), var(--med) 60%); box-shadow: 0 0 0 10px var(--surface), 0 0 0 12px color-mix(in srgb, var(--sun) 60%, transparent), var(--shadow); }
.ab-portrait figcaption { font-size: .92rem; color: var(--muted); }
.ab-portrait figcaption b { display: block; color: var(--ink); font: 700 1.15rem var(--f-display); }
.ab-story { margin-top: 80px; }
.ab-story > .h2 { margin-bottom: 28px; }
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: ab; }
.ab-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; }
.ab-steps li::before { counter-increment: ab; content: counter(ab); position: absolute; top: -16px; left: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem var(--f-display); background: var(--med); color: var(--on-accent); }
.ab-steps li:last-child::before { background: var(--sun); color: #2A1800; }
.ab-steps__k { font: 600 .74rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--med-2); }
.ab-steps h3 { font: 700 1.15rem/1.25 var(--f-display); margin: 6px 0 8px; }
.ab-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.ab-quote { margin: 72px auto 0; max-width: 860px; text-align: center; }
.ab-quote p { margin: 0; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.3 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.ab-quote p::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--sun); margin: 0 auto 22px; }
.ab-quote footer { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.ab-team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-team__grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.ab-team__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--med-soft); color: var(--med); margin-bottom: 14px; }
.ab-team__ic .ic { width: 24px; height: 24px; }
.ab-team__grid h3 { font: 700 1.1rem var(--f-display); margin: 0 0 6px; }
.ab-team__grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.ab-world { margin-top: 80px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: var(--band-ink); color: var(--band-ink-fg); border-radius: 26px; padding: 40px; }
.ab-world .eyebrow { color: var(--logo-sun-2); }
.ab-world .h2 { color: #fff; margin-bottom: 14px; }
.ab-world p:not(.eyebrow) { color: var(--band-ink-muted); margin: 0; }
.ab-map { margin: 0; }
.ab-map svg { width: 100%; height: auto; overflow: visible; }
.ab-map__route { fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 2; stroke-dasharray: 5 6; }
.ab-map__dot circle { fill: var(--med-2); }
.ab-map__dot--sun circle { fill: var(--sun); }
.ab-map__node circle { fill: #13232C; stroke: var(--med-2); stroke-width: 3; }
.ab-map__node--home circle { stroke: var(--sun); fill: color-mix(in srgb, var(--sun) 25%, #13232C); }
.ab-map__node text { fill: #fff; font: 700 14px var(--f-display); text-anchor: middle; }
.ab-map__node text.sub { fill: var(--band-ink-muted); font: 500 11px var(--f-body); }
.ab-cta { margin-top: 72px; text-align: center; display: grid; justify-items: center; gap: 20px; }
@media (prefers-reduced-motion: reduce) { .ab-map__dot { display: none; } }
@media (max-width: 1020px) { .ab-steps, .ab-team__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 860px) { .ab-hero__grid, .ab-world { grid-template-columns: minmax(0, 1fr); } .ab-world { padding: 28px; } .ab-portrait { justify-self: start; } .ab-portrait__mono { width: 150px; height: 150px; font-size: 3.2rem; } }
@media (max-width: 560px) { .ab-steps, .ab-team__grid { grid-template-columns: minmax(0, 1fr); } }
.nav a { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 861px) { .nav a { padding: 8px 10px; font-size: .9rem; } .cartbtn__label { display: none; } }

/* Histoire en 5 étapes : 3 puis 2 */
.ab-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 32px; }
.ab-steps li { grid-column: span 2; }
.ab-steps li:nth-child(n+4) { grid-column: span 3; }
.ab-steps__sun { background: color-mix(in srgb, var(--sun-soft) 70%, var(--surface)) !important; border-color: color-mix(in srgb, var(--sun) 45%, var(--line)) !important; }
.ab-steps__sun::before { background: var(--sun) !important; color: #2A1800 !important; }
.ab-steps__sun .ab-steps__k { color: var(--sun-ink); }
.ab-steps li:last-child::before { background: var(--med); color: var(--on-accent); }
@media (max-width: 1020px) { .ab-steps { grid-template-columns: 1fr 1fr; } .ab-steps li, .ab-steps li:nth-child(n+4) { grid-column: auto; } .ab-steps li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ab-steps { grid-template-columns: minmax(0, 1fr); } .ab-steps li:last-child { grid-column: auto; } }

/* Carte Europe · Afrique */
.ab-map__zone { fill: rgb(76 192 216 / .07); stroke: rgb(76 192 216 / .25); stroke-dasharray: 3 5; }
.ab-map__zone--af { fill: rgb(255 181 46 / .07); stroke: rgb(255 181 46 / .3); }
.ab-map__zl { fill: rgb(76 192 216 / .75); font: 700 10px var(--f-body); letter-spacing: .2em; text-anchor: end; }
.ab-map__zl--af { fill: rgb(255 201 74 / .8); }
.ab-map__link { stroke: rgb(76 192 216 / .35); stroke-width: 1.2; }
.ab-map__link--af { stroke: rgb(255 181 46 / .4); }
.ab-map__route { stroke: rgb(255 255 255 / .55) !important; stroke-width: 2.4 !important; }
.ab-map__c circle { fill: var(--med-2); }
.ab-map__c--af circle { fill: var(--sun); }
.ab-map__c text { fill: rgb(233 241 242 / .85); font: 500 9.5px var(--f-body); }
.ab-map__c:hover circle { r: 5; }
.ab-map__node text { font-size: 12px !important; }
.ab-map text[text-anchor="end"] { text-anchor: end; }
.ab-map text[text-anchor="start"] { text-anchor: start; }

/* Photo fondatrice */
.ab-portrait__photo { width: 230px; height: 230px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--surface), 0 0 0 12px color-mix(in srgb, var(--sun) 60%, transparent), var(--shadow); }
@media (max-width: 860px) { .ab-portrait__photo { width: 160px; height: 160px; } }

/* Logo Energicare */
.sun-hero .lockup--img.lockup--lg .logo { height: 110px; }
.door--sun .lockup--img .logo { height: 78px; }
.foot__brands .lockup--img .logo { height: 58px; }

/* Meilleures ventes, accueil */
.hbest .section-head { margin-top: 72px; }
.hbest .grid--best { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .hbest .grid--best { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .hbest .grid--best { grid-template-columns: minmax(0, 1fr); } }
.sun-hero .lockup--img.lockup--lg .logo { height: 150px; }
.door--sun .lockup--img .logo { height: 96px; }
.foot__brands .lockup--img .logo { height: 64px; }
@media (max-width: 560px) { .sun-hero .lockup--img.lockup--lg .logo { height: 110px; } .door--sun .lockup--img .logo { height: 80px; } }

/* Histoire en 6 étapes : 3 + 3 */
.ab-steps li, .ab-steps li:nth-child(n+4) { grid-column: span 2; }
@media (max-width: 1020px) { .ab-steps li, .ab-steps li:nth-child(n+4), .ab-steps li:last-child { grid-column: auto; } }

/* Service après-vente Energicare */
.sav { margin-top: 72px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 36px; align-items: start; padding: 36px; border-radius: 26px; background: color-mix(in srgb, var(--sun-soft) 75%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sun) 35%, var(--line)); }
.sav__head .h2 { margin-bottom: 12px; }
.sav__head p:not(.eyebrow) { color: var(--muted); margin: 0; }
.sav__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sav__list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.sav__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sun); color: #2A1800; margin-bottom: 12px; }
.sav__list h3 { font: 700 1.06rem var(--f-display); margin: 0 0 4px; }
.sav__list p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 960px) { .sav { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
@media (max-width: 560px) { .sav__list { grid-template-columns: minmax(0, 1fr); } .sav { padding: 20px; } }

.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.modal__link { font-weight: 600; color: var(--med); text-decoration: none; justify-self: start; }
.modal__link:hover { text-decoration: underline; }
.catlinks { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }
.catlinks a { color: var(--muted); }
.zones { padding-block: 56px 0; }
.zones p { color: var(--muted); max-width: 75ch; }
.zones__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zones__links a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.zones__links a:hover { border-color: var(--med); color: var(--med); }

/* ===== Pages catégories, fiches produit et pages pays (version en ligne) ===== */
.subpage { padding-top: 8px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 22px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }
.seo-head { padding-bottom: 28px; }
.seo-head h1 { margin: 0 0 16px; }
.seo-head p { max-width: 75ch; }
.seo-head--sun h1 em, .seo-head--sun .eyebrow { color: var(--sun-ink); }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.seo-sec { padding-block: 32px; }
.seo-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.seo-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.seo-card a:hover { border-color: var(--med); transform: translateY(-2px); }
.seo-card img, .seo-card .seo-ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--r-sm); }
.seo-card__n { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.seo-card__s { font-size: .8rem; color: var(--muted); }
.seo-card--devis a { border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.seo-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; font-size: .8rem; color: var(--sun-ink); background: var(--sun-soft) !important; }
.seo-ph b { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.pp { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; padding-bottom: 24px; }
.pp__img { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pp__img img, .pp__img .seo-ph { width: 100%; aspect-ratio: 1; object-fit: contain; display: flex; }
.pp__img .seo-ph { font-size: 1.1rem; border-radius: var(--r-sm); }
.pp__info h1 { margin: 6px 0 8px; }
.pp__info .eyebrow a { color: inherit; text-decoration: none; }
.pp__spec { font-weight: 600; margin: 0 0 4px; }
.pp__ref { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.pp__badge { display: inline-block; background: var(--sun-soft); color: var(--sun-ink); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .85rem; }
.pp__desc h2 { font-size: 1rem; margin: 18px 0 6px; }
.pp__desc p { color: var(--muted); line-height: 1.6; }
.pp__act { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.pp__trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.pp__trust li { display: flex; align-items: center; gap: 10px; }
.pp__trust .ic { width: 20px; height: 20px; color: var(--med); flex: none; }
.pp__rel { padding-block: 24px 8px; border-top: 1px solid var(--line); }
.seo-blocks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.seo-blocks li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 22px; }
.seo-blocks h2 { font-size: 1.1rem; margin: 0 0 8px; }
.seo-blocks p { margin: 0; color: var(--muted); line-height: 1.6; }
.seo-faq { display: grid; gap: 10px; max-width: 80ch; }
.seo-faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 14px 18px; }
.seo-faq summary { font-weight: 600; cursor: pointer; }
.seo-faq p { color: var(--muted); margin: 10px 0 0; }
.seo-photos img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 760px) { .pp { grid-template-columns: 1fr; gap: 18px; } .seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.cartbtn { text-decoration: none; color: inherit; }
