/* ============================================================
   LF Header Mega — styles du mega menu lefuneraire.com
   Charte Sauge Minerale
   Issu du mockup Menu Principal Mega v2.html
   ============================================================ */

:root {
    --bg: #F2EFE7;
    --bg-alt: #E8E4D9;
    --surface: #FBFAF5;
    --surface-2: #FFFFFF;

    --ink: #1A2620;
    --title: #2E3A33;
    --muted: #55605A;
    --tertiary: #8A948D;
    --rule: #DFDACD;
    --rule-soft: #EAE5D8;

    --brand: #6B7F6C;
    --brand-deep: #24332A;
    --brand-light: #8FA08C;
    --accent: #B08867;
    --accent-soft: #D6B898;

    --success: #4E7A5C;
    --info: #3E6478;
    --error: #A13D3D;
    --warning: #B8713A;
    --highlight: #C9A24B;

    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --container: 1240px;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-size: 14.5px;
    line-height: 1.55;
    min-height: 100vh;
  }

  /* ============================================================
     TOP UTILITY BAR
     ============================================================ */
  .topbar {
    background: var(--brand-deep);
    color: rgba(255,255,255,.72);
    font-size: 12px;
  }
  .topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .topbar__left,
  .topbar__right { display: flex; align-items: center; gap: 18px; }
  .topbar__left span,
  .topbar__right a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    letter-spacing: .04em;
  }
  .topbar__right a:hover { color: var(--accent-soft); }
  .topbar__left .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }
  .topbar__left b { color: #FBFAF5; font-weight: 500; }

  /* ============================================================
     HEADER
     ============================================================ */
  .header {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    position: relative;
    z-index: 50;
  }
  .header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
  }
  .brand__mark {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-deep);
    color: var(--accent-soft);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 22px;
  }
  .brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }
  .brand__name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 24px;
    color: var(--title);
    letter-spacing: -0.01em;
  }
  .brand__name em { color: var(--brand); font-style: italic; }
  .brand__tag {
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-top: 5px;
  }

  /* ============================================================
     NAV
     ============================================================ */
  .nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
  }
  .nav__item { position: relative; }
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
    max-width: 160px;
    min-height: 48px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--title);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    border-radius: 10px;
    transition: all .2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
  }
  .nav__link:hover,
  .nav__item.is-open > .nav__link,
  .nav__item.is-active > .nav__link {
    background: var(--bg);
    color: var(--brand-deep);
  }
  .nav__item.is-active > .nav__link::after {
    content: "";
    position: absolute;
    left: 22%; right: 22%;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  .nav__link .label {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
  }
  .nav__caret {
    opacity: .45;
    transition: transform .2s ease, opacity .2s ease;
    flex-shrink: 0;
  }
  .nav__item.is-open .nav__caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* ============================================================
     MEGA PANEL
     ============================================================ */
  .mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 80px -28px rgba(36,51,42,.30);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    z-index: 40;
  }
  .nav__item.is-open .mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }

  /* Mega — plaques (880px, 4 colonnes) */
  .mega--plaques { width: 880px; }
  .mega--plaques .mega__grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 1.4fr;
    gap: 30px;
  }
  /* Mega — hommages (720px, 3 colonnes) */
  .mega--hommages { width: 720px; }
  .mega--hommages .mega__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 28px;
  }
  /* Mega — guides (840px, 4 colonnes) */
  .mega--guides { width: 880px; }
  .mega--guides .mega__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.3fr;
    gap: 26px;
  }

  /* Empêche le mega de sortir du viewport sur les items à droite */
  .nav__item[data-mega-align="end"] .mega {
    left: auto;
    right: 0;
    transform: translateY(-6px);
  }
  .nav__item[data-mega-align="end"].is-open .mega {
    transform: translateY(0);
  }

  .mega__column { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .mega__column h3 {
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin: 0 0 4px;
  }
  .mega__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mega__column li { margin: 0; }
  .mega__column li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    transition: background .15s ease;
  }
  .mega__column li a:hover { background: var(--bg); }
  .mega__column li a:hover .mega__link-label { color: var(--brand-deep); }
  .mega__column li.is-hub { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--rule); }
  .mega__column li.is-hub a { padding: 6px 10px; }
  .mega__column li.is-hub .mega__link-label {
    color: var(--brand);
    font-size: 12.5px;
    letter-spacing: .04em;
  }
  .mega__column li.is-hub .mega__link-label::after {
    content: " →";
    color: var(--brand);
  }
  .mega__column li.is-hub a:hover .mega__link-label { color: var(--brand-deep); }

  .mega__link-label {
    font-size: 13.5px;
    color: var(--title);
    font-weight: 500;
    line-height: 1.35;
    transition: color .15s ease;
  }
  .mega__link-sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
  }
  .mega__link-ico {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: var(--bg);
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* Feature card */
  .mega__feature {
    background: var(--brand-deep);
    color: #ECECE3;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 100%;
  }
  .mega__feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at top right, rgba(176,136,103,.18), transparent 55%),
      radial-gradient(ellipse at bottom left, rgba(107,127,108,.20), transparent 55%);
    pointer-events: none;
  }
  .mega__feature > * { position: relative; z-index: 1; }
  .mega__feature-eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 600;
  }
  .mega__feature-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 22px;
    color: #FBFAF5;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
  }
  .mega__feature-title em { color: var(--accent-soft); font-style: italic; }
  .mega__feature-sub {
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
    margin: 4px 0 0;
  }
  .mega__feature-img {
    aspect-ratio: 5 / 3;
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.04), transparent 50%),
      radial-gradient(circle at 50% 40%, #d8c4ad 0%, #a07d5e 60%, #6b5238 100%);
    margin-bottom: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    display: grid;
    place-items: center;
    position: relative;
  }
  .mega__feature-img .img-plaque {
    width: 50%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, rgba(245,241,232,.95), rgba(232,226,210,.7));
    border-radius: 4px;
    box-shadow: 0 8px 18px -8px rgba(0,0,0,.4);
    display: grid;
    place-items: center;
    color: #2E3A33;
    font-family: var(--font-serif);
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    padding: 8px;
  }
  .mega__feature-img .img-screen {
    width: 50%;
    aspect-ratio: 4 / 5;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 10px;
  }
  .mega__feature-img .img-screen-bar {
    height: 5px;
    border-radius: 2px;
    background: rgba(214,184,152,.5);
  }
  .mega__feature-img .img-screen-bar.s2 { width: 70%; background: rgba(255,255,255,.18); }
  .mega__feature-img .img-screen-bar.s3 { width: 88%; background: rgba(255,255,255,.14); }
  .mega__feature-img .img-screen-bar.s4 { width: 60%; background: rgba(255,255,255,.10); }
  /* Composite : plaque + écran côte à côte */
  .mega__feature-img--composite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
  }
  /* Grille avis de décès */
  .mega__feature-img--obits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
    background:
      linear-gradient(180deg, #2E3A33 0%, #1f2b25 100%);
  }
  .mega__feature-img--obits .obit-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .mega__feature-img--obits .obit-photo {
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle, rgba(216,196,173,.6), rgba(107,82,56,.6));
    border-radius: 2px;
  }
  .mega__feature-img--obits .obit-name {
    height: 3px;
    background: rgba(255,255,255,.25);
    border-radius: 1px;
    margin-top: 3px;
  }
  .mega__feature-img--obits .obit-dates {
    height: 2px;
    width: 60%;
    background: rgba(214,184,152,.4);
    border-radius: 1px;
  }

  .mega__feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: auto;
    padding-top: 6px;
  }
  .mega__feature-cta svg { transition: transform .2s ease; }
  .mega__feature:hover .mega__feature-cta svg { transform: translateX(4px); }

  /* Mega footer */
  .mega__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .mega__footer-text {
    font-size: 12.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .mega__footer-text b { color: var(--brand); font-weight: 600; }
  .mega__footer-text svg { color: var(--brand); flex-shrink: 0; }
  .mega__footer-cta {
    color: var(--brand);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .mega__footer-cta:hover { color: var(--brand-deep); }
  .mega__footer-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--title);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
  }
  .mega__footer-ghost:hover {
    background: var(--bg);
    border-color: var(--brand);
    color: var(--brand-deep);
  }
  .mega__footer-ghost svg { color: var(--brand); }

  /* ============================================================
     ACTIONS (right side)
     ============================================================ */
  .actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--brand-deep);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    text-decoration: none;
  }
  .icon-btn:hover { background: var(--bg); border-color: var(--brand); }
  .icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px; height: 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--surface);
    font-size: 10px;
    font-weight: 600;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
  }
  .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--surface);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background .2s ease, transform .2s ease;
  }
  .cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

  /* Burger (mobile) */
  .burger {
    display: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--brand-deep);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* ============================================================
     BACKDROP DIM
     ============================================================ */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(36, 51, 42, 0);
    opacity: 0;
    visibility: hidden;
    z-index: 30;
    transition: opacity .22s ease, background .22s ease, visibility 0s linear .22s;
    pointer-events: none;
  }
  body.has-open-menu .nav-backdrop {
    opacity: 1;
    visibility: visible;
    background: rgba(36, 51, 42, .18);
    pointer-events: auto;
    transition: opacity .22s ease, background .22s ease, visibility 0s;
  }

  /* ============================================================
     DEMO STAGE
     ============================================================ */
  .stage {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px 200px;
    text-align: center;
  }
  .stage .kicker {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }
  .stage h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 54px;
    color: var(--title);
    letter-spacing: -0.02em;
    margin: 14px 0 18px;
  }
  .stage h1 em { color: var(--brand); font-style: italic; }
  .stage p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
  }
  .stage__hint {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
  }
  .stage__hint svg { color: var(--accent); }
  .stage__hint b { color: var(--brand); font-weight: 600; }

  /* ============================================================
     COMPAGNON STICKY BOTTOM (esquisse seulement)
     ============================================================ */
  .compagnon {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--brand-deep);
    border-top: 1px solid #0e1612;
    z-index: 35;
    padding: 12px 24px;
    color: #ECECE3;
  }
  .compagnon__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .compagnon__brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .compagnon__flame {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(201,162,75,.6), rgba(176,136,103,.3) 60%, transparent);
    border: 1px solid rgba(255,255,255,.1);
    display: grid;
    place-items: center;
    color: var(--accent-soft);
  }
  .compagnon__brand strong {
    display: block;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 17px;
    color: #FBFAF5;
    letter-spacing: -0.005em;
    line-height: 1.1;
  }
  .compagnon__status {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 500;
  }
  .compagnon__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .compagnon__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #ECECE3;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: background .2s ease;
    font-family: inherit;
    cursor: pointer;
  }
  .compagnon__btn:hover { background: rgba(255,255,255,.10); }
  .compagnon__btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #FBFAF5;
  }
  .compagnon__btn--accent:hover { background: #9f7754; }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1240px) {
    .mega--plaques { width: 820px; }
    .mega--guides { width: 820px; }
  }
  @media (max-width: 1100px) {
    .nav, .actions { display: none; }
    .burger { display: inline-flex; }
    .header__inner { grid-template-columns: auto 1fr auto; }
    .topbar__left span:last-child,
    .topbar__right a:not(:last-child) { display: none; }
    .stage h1 { font-size: 38px; }
    .compagnon__actions .compagnon__btn span { display: none; }
    .compagnon__actions .compagnon__btn--accent span { display: inline; }
  }
  @media (max-width: 640px) {
    .topbar__inner { padding: 8px 16px; }
    .header__inner { padding: 14px 16px; }
    .brand__text { display: none; }
    .compagnon { padding: 10px 16px; }
    .stage h1 { font-size: 30px; }
  }

/* ============================================================
   DRAWER MOBILE — panneau qui slide depuis la droite sous 1100px
   ============================================================ */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  max-width: 100vw;
  background: var(--surface);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: none;
  flex-direction: column;
  box-shadow: -20px 0 40px -10px rgba(36, 51, 42, .25);
}
.drawer.is-open {
  transform: translateX(0);
}
body.drawer-open {
  overflow: hidden;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 51, 42, 0);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, background .3s ease, visibility 0s linear .3s;
  pointer-events: none;
}
body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
  background: rgba(36, 51, 42, .55);
  transition: opacity .3s ease, background .3s ease, visibility 0s;
  pointer-events: auto;
}

/* Header du drawer */
.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  flex-shrink: 0;
}
.drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer__brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
}
.drawer__brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--title);
  letter-spacing: -0.01em;
}
.drawer__brand-name em {
  color: var(--brand);
  font-style: italic;
}
.drawer__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.drawer__close:hover {
  background: var(--bg);
  border-color: var(--brand);
}

/* Liste des items dans le drawer */
.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.drawer__item {
  border-bottom: 1px solid var(--rule-soft);
}
.drawer__link,
.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--title);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.drawer__link:hover,
.drawer__toggle:hover {
  background: var(--bg);
  color: var(--brand-deep);
}
.drawer__toggle svg {
  transition: transform .25s ease;
  flex-shrink: 0;
  color: var(--muted);
}
.drawer__item.is-expanded .drawer__toggle svg {
  transform: rotate(180deg);
  color: var(--brand);
}

/* Sous-menu accordéon */
.drawer__submenu {
  max-height: 0;
  overflow: hidden;
  background: var(--bg);
  transition: max-height .35s cubic-bezier(.2, .8, .2, 1);
}
.drawer__item.is-expanded .drawer__submenu {
  max-height: 2000px;
}
.drawer__submenu-list {
  padding: 8px 0;
}
.drawer__submenu-group {
  padding: 8px 0;
}
.drawer__submenu-group + .drawer__submenu-group {
  border-top: 1px dashed var(--rule-soft);
}
.drawer__submenu-title {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 8px 20px 4px;
}
.drawer__submenu a {
  display: block;
  padding: 10px 20px 10px 28px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.drawer__submenu a:hover {
  background: var(--surface);
  color: var(--brand-deep);
}
.drawer__submenu a small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Footer drawer : CTA + actions secondaires */
.drawer__footer {
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.drawer__cta:hover {
  background: var(--brand-deep);
}
.drawer__secondary {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.drawer__secondary a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--title);
  text-decoration: none;
  font-size: 13px;
}
.drawer__secondary a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* Activer le drawer uniquement sous 1100px */
@media (max-width: 1100px) {
  .drawer {
    display: flex;
  }
}

/* ============================================================
   FEATURE CARD — image reelle (deposee dans assets/images/)
   ============================================================ */
.mega__feature-img--photo {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--brand-deep);
  margin-bottom: 12px;
  position: relative;
}
.mega__feature-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
