@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/inter-400.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/inter-500.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/inter-600.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/inter-700.woff2) format('woff2');}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/instrument-serif-400.woff2) format('woff2');}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(https://dervalavocat.fr/wp-content/uploads/2026/11/instrument-serif-400-italic.woff2) format('woff2');}


  /* ============ PALETTES ============ */
  :root, [data-aurore="A1"] {
    --a1: #4098d8; --a2: #e868b8; --a3: #8060c8; --a4: #60b8e8;
    --b1: #0e1a30; --b2: #122240; --b3: #060e20;
    --accent: #222628;
  }
  [data-aurore="A2"] {
    --a1: #0ea5e8; --a2: #ff2e9a; --a3: #a830f0; --a4: #1e4ad8;
    --b1: #080820; --b2: #10082a; --b3: #050516;
    --accent: #ff2e9a;
  }
  [data-aurore="A3"] {
    --a1: #8a1a3a; --a2: #e8a848; --a3: #5a1a68; --a4: #c04070;
    --b1: #180a14; --b2: #1a0a10; --b3: #0a0408;
    --accent: #e8a848;
  }
  [data-aurore="A4"] {
    --a1: #c82840; --a2: #e89050; --a3: #7a2030; --a4: #3a1a24;
    --b1: #120808; --b2: #1a0a0a; --b3: #080404;
    --accent: #e89050;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: #ffffff;
    color: #222628;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  a { color: inherit; text-decoration: none; }
  em, i { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

  /* ============ NAV STICKY ============ */
  .nav-top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 20px 48px;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 40px;
    color: #fff;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
  }
  .nav-top.light {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    color: #222628;
    border-bottom-color: rgba(0,0,0,0.08);
  }
  .nav-top .brand {
    font: 600 14px/1 'Inter', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .nav-top .items { display: flex; gap: 32px; font: 500 13px/1 'Inter', sans-serif; justify-content: center; }
  .nav-top .right { justify-self: end; display: flex; gap: 20px; align-items: center; font: 500 13px/1 'Inter', sans-serif; }
  .nav-top .call-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border: 1px solid currentColor; border-radius: 100px;
    font: 500 13px/1 'Inter', sans-serif;
    transition: background 0.2s, color 0.2s;
  }
  .nav-top .call-btn:hover { background: currentColor; }
  .nav-top:not(.light) .call-btn:hover { color: var(--b1); }
  .nav-top.light .call-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
  .nav-top.light .call-btn:hover { opacity: 0.85; }

  /* ============ HERO ============ */
  .hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px 48px 80px;
    background: #0e1a30;
    color: #fff;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url(https://dervalavocat.fr/wp-content/uploads/2026/11/hero-eclat-2560.webp) center / cover no-repeat;
    transform-origin: 50% 46%;
    animation: eclat-breathe 28s ease-in-out infinite alternate;
    z-index: 0;
  }
  @media (max-width: 1440px) {
    .hero::before { background-image: url(https://dervalavocat.fr/wp-content/uploads/2026/11/hero-eclat-1920.webp); }
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 55% at 50% 50%, rgba(6,14,32,0.5), rgba(6,14,32,0.2) 75%),
      linear-gradient(180deg, rgba(6,14,32,0.45) 0%, transparent 22%, transparent 72%, rgba(6,14,32,0.8) 100%);
    z-index: 1;
  }
  /* Mobile portrait : image dédiée, les deux colonnes du Palais */
  @media (max-width: 900px) and (orientation: portrait) {
    .hero::before { background-image: url(https://dervalavocat.fr/wp-content/uploads/2026/11/hero-eclat-portrait.webp); transform-origin: 50% 42%; }
  }
  @keyframes eclat-breathe {
    from { transform: scale(1); }
    to   { transform: scale(1.045); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
  }


  .hero-content { position: relative; z-index: 10; text-align: center; max-width: 1600px; margin: 0 auto; width: 100%; }
  .hero-eyebrow {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
  }
  .hero-eyebrow::before { content: '('; margin-right: 6px; }
  .hero-eyebrow::after { content: ')'; margin-left: 6px; }
  .hero-statement {
    color: #fff;
    text-shadow: 0 2px 60px rgba(0,0,0,0.3);
  }
  .hero-lead {
    display: block;
    font: 500 clamp(13px, 1.4vw, 18px)/1 'Inter', sans-serif;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
  }
  .hero-block1, .hero-block2 {
    display: block;
    font: 400 clamp(42px, 6.4vw, 108px)/1.02 'Inter', sans-serif;
    letter-spacing: -0.035em;
  }
  .hero-block1 em, .hero-block2 em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.025em;
  }
  .hero-block1 { margin-bottom: 0; }
  .hero-join {
    display: block;
    margin: 14px 0 12px;
    font: 400 22px/1.4 'Instrument Serif', serif;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0;
  }
  .hero-sub {
    margin-top: 32px;
    font: 400 italic 22px/1.4 'Instrument Serif', serif;
    color: rgba(255,255,255,0.88);
    max-width: 700px; margin-left: auto; margin-right: auto;
  }
  .hero-ctas {
    margin-top: 48px;
    display: inline-flex; gap: 12px; align-items: center;
    flex-wrap: wrap; justify-content: center;
  }
  .cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 28px; border-radius: 100px;
    font: 500 14px/1 'Inter', sans-serif;
    transition: all 0.2s;
  }
  .cta.primary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(10px); }
  .cta.primary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); transform: translateY(-2px); }
  .cta.ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(12px); }
  .cta.ghost:hover { background: rgba(255,255,255,0.15); }

  /* Pilule flottante nav bas */
  .pill-float {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 40;
    display: flex; align-items: center; gap: 2px; padding: 8px;
    background: rgba(0,0,0,0);
    -webkit-backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
    backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 32px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.4);
    font: 500 13px/1 'Inter', sans-serif;
    color: rgba(255,255,255,0.88);
    opacity: 1; transition: opacity 0.3s, transform 0.3s;
  }
  .pill-float.hidden { opacity: 0; transform: translateX(-50%) translateY(80px); pointer-events: none; }
  .pill-float a { padding: 11px 20px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; transition: background 0.2s; white-space: nowrap; }
  .pill-float a:hover { background: rgba(255,255,255,0.08); }
  .pill-float a sup { font-size: 10px; opacity: 0.55; vertical-align: super; line-height: 0; margin-left: 2px; }
  .pill-float .sep { width: 1px; height: 14px; background: rgba(255,255,255,0.28); margin: 0 2px; }

  /* ============ CTA FLOTTANT PERSISTANT (post-scroll, bas-droite) ============ */
  .call-float {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 45;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 22px;
    background: var(--accent); color: #fff;
    border-radius: 100px;
    font: 600 14px/1 'Inter', sans-serif;
    box-shadow: 0 20px 60px -10px color-mix(in oklab, var(--accent) 50%, transparent);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
  }
  .call-float.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .call-float:hover { transform: translateY(-3px); }


  /* ============ MENU MOBILE — pilule + carte vitrée ============ */
  .menu-pill, .menu-sheet { display: none; }
  .menu-pill {
    position: fixed; bottom: 24px; left: 24px; z-index: 60;
    align-items: center; gap: 12px; height: 50px; padding: 0 24px; border-radius: 999px;
    font: 500 14px/1 'Inter', sans-serif; color: rgba(255,255,255,0.92); text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    background: linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0.01) 40%, rgba(255,255,255,0.02));
    -webkit-backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
    backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
    box-shadow: inset 0 0 0 .5px rgba(255,255,255,0.28), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 1px rgba(0,0,0,0.08), 0 10px 50px rgba(0,0,0,0.3);
    transition: color .3s, background .3s, box-shadow .3s;
  }
  .menu-pill .ico { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
  .menu-pill .ico i { position: absolute; height: 1px; background: currentColor; }
  .menu-pill .ico i:nth-child(1) { top: 0; right: 1px; width: 7px; animation: sig-a 2s ease-in-out 3; }
  .menu-pill .ico i:nth-child(2) { top: 50%; left: 0; width: 12px; }
  .menu-pill .ico i:nth-child(3) { bottom: 0; left: 1px; width: 7px; animation: sig-b 2s ease-in-out 3; }
  @keyframes sig-a { 50% { width: 12px; right: 0; } }
  @keyframes sig-b { 50% { width: 3px; } }
  /* État fond clair : verre clair */
  .menu-pill.on-light { color: rgba(0,0,0,0.75); text-shadow: none;
    background: linear-gradient(rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.08) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    box-shadow: inset 0 0 0 .5px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
  .menu-pill::before, .call-float::before { content: ''; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4) 15%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 85%, transparent); }
  .menu-pill.on-light::before, .call-float.visible::before { opacity: 1; }
  /* croix de fermeture, dans la carte */
  body:has(#menu:target) .menu-pill { opacity: 0; pointer-events: none; }
  .menu-close { position: absolute; left: 8px; bottom: 8px; width: 60px; height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    background: rgba(14,26,48,0.35); box-shadow: inset 0 0 0 .5px rgba(255,255,255,0.28), inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 40px rgba(0,0,0,0.3); }
  .menu-close i { position: absolute; width: 14px; height: 1px; background: #fff; }
  .menu-close i:first-child { transform: rotate(45deg); }
  .menu-close i:last-child { transform: rotate(-45deg); }
  .menu-sheet {
    position: fixed; left: 16px; right: 16px; top: 72px; bottom: 16px; z-index: 65;
    flex-direction: column; justify-content: center; padding: 28px 24px 96px;
    border-radius: 28px; overflow: hidden; color: #fff;
    background:
      radial-gradient(ellipse 70% 45% at 75% 18%, rgba(222,160,186,0.55), transparent 70%),
      radial-gradient(ellipse 60% 50% at 15% 40%, rgba(100,196,214,0.45), transparent 70%),
      radial-gradient(ellipse 80% 55% at 70% 85%, rgba(40,120,150,0.6), transparent 70%),
      rgba(22,28,42,0.25);
    -webkit-backdrop-filter: blur(28px) saturate(2.1) brightness(1.25) contrast(1.05);
    backdrop-filter: blur(28px) saturate(2.1) brightness(1.25) contrast(1.05);
    box-shadow: inset 0 0 0 .5px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.35), 0 30px 80px rgba(0,0,0,0.35);
    opacity: 0; transform: translateY(14px) scale(0.98); pointer-events: none;
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
  }
  .menu-sheet:target { opacity: 1; transform: none; pointer-events: auto; }
  .menu-sheet a.big { font: 400 40px/1.14 'Inter', sans-serif; letter-spacing: -0.01em; padding: 3px 0; }
  .menu-sheet a.big em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .menu-sheet:target a.big { animation: menu-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .menu-sheet:target a.big:nth-of-type(3) { animation-delay: .04s; }
  .menu-sheet:target a.big:nth-of-type(4) { animation-delay: .08s; }
  .menu-sheet:target a.big:nth-of-type(5) { animation-delay: .12s; }
  .menu-sheet:target a.big:nth-of-type(6) { animation-delay: .16s; }
  @keyframes menu-rise { from { opacity: 0; transform: translateY(12px); } }
  .menu-sheet .meta { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.28); font: 400 13px/1.6 'Inter', sans-serif; opacity: .85; }
  .menu-sheet .meta a { display: block; font-weight: 500; font-size: 15px; }
  @media (prefers-reduced-motion: reduce) { .menu-pill .ico i, .menu-sheet:target a.big { animation: none; } }
  @media (max-width: 900px) {
    .pill-float { display: none !important; }
    .nav-top .call-btn { display: none; }
    body:has(#menu:target) .call-float { opacity: 0; pointer-events: none; }
    .menu-pill { display: inline-flex; }
    .menu-sheet { display: flex; }
  }

  /* ============ SECTION STATS ============ */
  .stats {
    background: #ffffff; color: #222628;
    padding: 100px 48px;
    position: relative;
  }
  .stats-inner { max-width: 1360px; margin: 0 auto; }
  .stats-head {
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: baseline;
    margin-bottom: 60px; padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  .stats-head .label {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase; color: #7a6a4a;
  }
  .stats-head .label::before { content: '('; margin-right: 4px; }
  .stats-head .label::after { content: ')'; margin-left: 4px; }
  .stats-head .title { margin: 0;
    font: 400 clamp(28px, 3.5vw, 48px)/1.1 'Inter', sans-serif;
    letter-spacing: -0.025em;
  }
  .stats-head .title em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .stats-head .meta {
    font: 400 italic 14px/1.4 'Instrument Serif', serif;
    color: #7a6a4a; text-align: right;
  }
  .stats-intro { margin: -24px 0 48px; max-width: 760px; font: 400 18px/1.6 'Inter', sans-serif; color: #222628; }
  @media (max-width: 900px) { .stats-intro { margin: -32px 0 32px; font-size: 16px; } }
  .stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #e4ddc8; border: 1px solid #e4ddc8; }
  .stat {
    background: #ffffff; padding: 40px 28px;
    display: grid; gap: 10px; align-content: start;
  }
  .stat .num {
    font: 400 clamp(32px, 3.6vw, 48px)/1 'Instrument Serif', serif;
    font-style: italic; color: rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
  }
  .stat .lead {
    font: 400 italic clamp(22px, 2.4vw, 30px)/1.15 'Instrument Serif', serif;
    color: #222628; letter-spacing: -0.015em;
    margin-top: -4px;
  }
  .stat .lbl {
    font: 500 12px/1.4 'Inter', sans-serif;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #222628;
  }


  /* ============ RENVOI PROCÉDURE (vers la page dédiée) ============ */
  .procedure { background: #fff; color: #222628; padding: 100px 48px; border-top: 1px solid rgba(34,38,40,0.1); }
  .procedure-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
  .procedure .label { font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #222628; padding-top: 10px; }
  .procedure .label::before { content: '('; margin-right: 4px; }
  .procedure .label::after { content: ')'; margin-left: 4px; }
  .procedure-text { grid-column: 2; margin: 0; max-width: 900px; font: 400 clamp(22px, 2.4vw, 32px)/1.3 'Inter', sans-serif; letter-spacing: -0.015em; }
  .procedure-text em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .procedure-link { grid-column: 2; justify-self: start; display: inline-block; margin-top: 8px; padding-bottom: 6px;
    font: 500 15px/1.4 'Inter', sans-serif; color: #222628; border-bottom: 1px solid #222628; }
  .procedure-link span { display: inline-block; margin-left: 8px; transition: transform .25s; }
  .procedure-link:hover span { transform: translateX(5px); }
  @media (max-width: 900px) {
    .procedure { padding: 60px 24px; }
    .procedure-inner { grid-template-columns: 1fr; gap: 20px; }
    .procedure-text, .procedure-link { grid-column: 1; }
  }
  .bref { border-top: 0; padding-top: 90px; padding-bottom: 40px; }
  .bref .procedure-text { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; letter-spacing: -0.005em; }
  .bref .procedure-text strong { font-weight: 500; }
  h2.label { margin: 0; }

  /* ============ ENGAGEMENTS — manifeste ============ */
  .eng { padding: 110px 48px; background: #fff; color: #222628; }
  .eng-inner { max-width: 1360px; margin: 0 auto; }
  .eng-label { margin: 0 0 56px; font: 500 11px/1 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; }
  .eng-label::before { content: '('; margin-right: 4px; } .eng-label::after { content: ')'; margin-left: 4px; }
  .eng-m { display: grid; gap: 30px; max-width: 1150px; }
  .eng-m .mi { display: grid; }
  .eng-m .k { font: italic 400 clamp(36px, 4.2vw, 56px)/1 'Instrument Serif', serif; letter-spacing: -.01em; }
  .eng-m .d { font: 400 clamp(18px, 1.55vw, 22px)/1.55 'Inter', sans-serif; letter-spacing: -.005em; padding-left: 180px; margin-top: 8px; max-width: 900px; }
  @media (max-width: 900px) {
    .eng { padding: 64px 20px; }
    .eng-label { margin-bottom: 36px; }
    .eng-m { gap: 22px; }
    .eng-m .d { padding-left: 40px; }
  }
  /* Ordinateur : le numéro reste dans la barre du haut, pas de pilule flottante en double */
  @media (min-width: 901px) { .call-float { display: none !important; } }
  /* ============ SECTION SITUATIONS ============ */
  .situations {
    background: #ffffff; color: #222628;
    padding: 120px 48px;
  }
  .situations-inner { max-width: 1360px; margin: 0 auto; }
  .situations-head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
    margin-bottom: 60px;
  }
  .situations-head .label {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase; color: #222628;
    margin-bottom: 20px;
  }
  .situations-head .label::before { content: '('; margin-right: 4px; }
  .situations-head .label::after { content: ')'; margin-left: 4px; }
  .situations-head .title {
    font: 400 clamp(40px, 5vw, 72px)/1 'Inter', sans-serif;
    letter-spacing: -0.03em;
  }
  .situations-head .title em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .situations-head .lead {
    font: 400 17px/1.6 'Inter', sans-serif; max-width: 440px; padding-bottom: 12px;
  }
  .situations-head .lead em { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.08em; }

  .situations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #ececec; border: 1px solid #ececec; }
  .situation {
    background: #ffffff; padding: 36px 28px;
    display: grid; gap: 16px; align-content: start;
    transition: background 0.2s;
    cursor: pointer; text-decoration: none; color: inherit;
    min-height: 220px;
    position: relative;
  }
  a.situation:hover { background: #fafafa; }
  .situation-cta { background: linear-gradient(rgba(34,38,40,0.03), rgba(34,38,40,0.03)), #fff; }
  .situation-cta .cta-link { font: 500 14px/1.4 'Inter', sans-serif; border-bottom: 1px solid #222628; justify-self: start; padding-bottom: 4px; }
  @media (max-width: 1200px) and (min-width: 901px) { .situations-grid { grid-template-columns: repeat(2, 1fr); } }
  .situation .num {
    font: 400 italic 13px/1 'Instrument Serif', serif;
    color: #222628;
  }
  .situation .title {
    font: 400 24px/1.15 'Instrument Serif', serif;
    font-style: italic; letter-spacing: -0.015em;
  }
  .situation .desc {
    font: 400 14px/1.5 'Inter', sans-serif; color: #222628;
  }
  .situation .arrow {
    position: absolute; bottom: 28px; right: 28px;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #222628;
    display: grid; place-items: center;
    transition: background 0.2s, color 0.2s;
  }
  .situation:hover .arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

  /* ============ APPROCHE (3 étapes) ============ */
  .steps {
    background: #fff; color: #222628;
    padding: 120px 48px;
  }
  .steps-inner { max-width: 1360px; margin: 0 auto; }
  .steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 80px; }
  .steps-head .label {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase; color: #7a7570;
    margin-bottom: 20px;
  }
  .steps-head .label::before { content: '('; margin-right: 4px; }
  .steps-head .label::after { content: ')'; margin-left: 4px; }
  .steps-head .title {
    font: 400 clamp(40px, 5vw, 72px)/1 'Inter', sans-serif;
    letter-spacing: -0.03em;
  }
  .steps-head .title em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .steps-head .lead { font: 400 17px/1.6 'Inter', sans-serif; max-width: 440px; padding-bottom: 12px; }

  .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step {
    display: grid; gap: 16px; align-content: start;
    padding-top: 32px;
    border-top: 1px solid #222628;
  }
  .step .num {
    font: 400 italic 14px/1 'Instrument Serif', serif;
    color: var(--accent);
  }
  .step h3 {
    font: 500 22px/1.2 'Inter', sans-serif;
    letter-spacing: -0.015em;
  }
  .step p { font: 400 15px/1.6 'Inter', sans-serif; color: #222628; }

  /* ============ CABINET (section humain) ============ */
  .cabinet {
    background: #ffffff; color: #222628;
    padding: 120px 48px;
  }
  .cabinet-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .cabinet-portrait {
    aspect-ratio: 4/5;
    background: #ececec;
    position: relative;
    overflow: hidden;
  }
  .cabinet-portrait img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
  }
  .cabinet-right { padding-top: 20px; }
  .cabinet-right .label {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase; color: #222628;
    margin-bottom: 20px;
  }
  .cabinet-right .label::before { content: '('; margin-right: 4px; }
  .cabinet-right .label::after { content: ')'; margin-left: 4px; }
  .cabinet-right h2 {
    font: 400 italic clamp(56px, 7vw, 108px)/0.95 'Instrument Serif', serif;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
  }
  .cabinet-right p { font: 400 17px/1.65 'Inter', sans-serif; margin-bottom: 20px; max-width: 560px; }
  .cabinet-right p em { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.08em; }
  .cabinet-table {
    margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.15);
  }
  .cabinet-row {
    display: grid; grid-template-columns: 180px 1fr auto; gap: 20px;
    padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
    align-items: baseline;
  }
  .cabinet-row .k {
    font: 600 11px/1.3 'Inter', sans-serif;
    letter-spacing: 0.14em; text-transform: uppercase;
  }
  .cabinet-row .v { font: 400 16px/1.4 'Inter', sans-serif; }
  .cabinet-row .m { font: 400 italic 14px/1.3 'Instrument Serif', serif; color: #222628; text-align: right; }

  /* ============ FAQ ============ */
  .faq {
    background: #fff; color: #222628;
    padding: 120px 48px;
  }
  .faq-inner { max-width: 900px; margin: 0 auto; }
  .faq-head { text-align: center; margin-bottom: 60px; }
  .faq-head .label {
    font: 500 11px/1 'Inter', sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase; color: #7a7570;
    display: inline-block; margin-bottom: 20px;
  }
  .faq-head .label::before { content: '('; margin-right: 4px; }
  .faq-head .label::after { content: ')'; margin-left: 4px; }
  .faq-head h2 {
    font: 400 clamp(40px, 5vw, 72px)/1 'Inter', sans-serif;
    letter-spacing: -0.03em;
  }
  .faq-head h2 em { font-family: 'Instrument Serif', serif; font-style: italic; }

  /* Accordéon */
  .faq-inner { counter-reset: faq; }
  .faq-item { border-bottom: 1px solid rgba(34,38,40,0.1); counter-increment: faq; }
  .faq-item summary {
    display: flex; align-items: center; gap: 32px; padding: 24px 0;
    font: 400 21px/32px 'Inter', sans-serif; letter-spacing: normal; color: #222628;
    cursor: pointer; list-style: none;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::before {
    content: none; display: none;
    flex-shrink: 0; width: 20px; font: 500 10px/12px 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: #222628;
  }
  .faq-item summary::after {
    content: ''; flex-shrink: 0; margin-left: auto; width: 12px; height: 12px;
    background:
      linear-gradient(#222628, #222628) center / 12px 1px no-repeat,
      linear-gradient(#222628, #222628) center / 1px 12px no-repeat;
    transition: background-size .25s ease;
  }
  .faq-item[open] summary::after { background-size: 12px 1px, 1px 0; }
  .faq-item p a.faq-link { color: #222628; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .faq-item p {
    font: 400 14px/20px 'Inter', sans-serif;
    color: rgba(34,38,40,0.6); margin: 0; padding: 0 0 24px;
    max-width: 760px;
  }

  /* ============ CONTACT ============ */
  .contact {
    background: #ffffff; color: #222628;
    padding: 120px 48px 60px;
  }
  .contact-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .contact-left h2 {
    font: 400 clamp(40px, 5.5vw, 80px)/1 'Inter', sans-serif;
    letter-spacing: -0.03em; margin-bottom: 32px;
  }
  .contact-left h2 em { font-family: 'Instrument Serif', serif; font-style: italic; }
  .contact-left .lead { font: 400 italic 20px/1.5 'Instrument Serif', serif; color: #222628; margin-bottom: 48px; max-width: 480px; }

  .contact-direct { display: grid; gap: 24px; margin-bottom: 48px; }
  .contact-direct a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline;
    padding: 20px 0; border-top: 1px solid rgba(0,0,0,0.15);
    transition: background 0.2s;
  }
  .contact-direct a:last-child { border-bottom: 1px solid rgba(0,0,0,0.15); }
  .contact-direct .lbl {
    font: 600 11px/1.3 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #222628;
  }
  .contact-direct .val {
    font: 400 24px/1.3 'Instrument Serif', serif; font-style: italic;
  }

  .contact-form { background: none; border: 0; padding: 8px 0 0; }
  .contact-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .contact-form .fld { position: relative; border-bottom: 1px solid rgba(34,38,40,0.2); margin-bottom: 24px; transition: border-color 0.2s; }
  .contact-form .fld:focus-within { border-bottom-color: #222628; }
  .contact-form .fld input, .contact-form .fld select, .contact-form .fld textarea {
    display: block; width: 100%; margin: 0; background: transparent; border: 0; border-radius: 0;
    padding: 26px 0 10px; font: 500 16px/24px 'Inter', sans-serif; color: #222628;
    outline: none; -webkit-appearance: none; appearance: none;
  }
  .contact-form .fld textarea { resize: vertical; min-height: 120px; }
  .contact-form .fld label {
    position: absolute; left: 0; top: 22px; pointer-events: none;
    font: 400 13px/16px 'Inter', sans-serif; letter-spacing: 0; text-transform: uppercase;
    color: rgba(34,38,40,0.5); transition: top 0.2s, font-size 0.2s;
  }
  .contact-form .fld input:focus + label, .contact-form .fld input:not(:placeholder-shown) + label,
  .contact-form .fld textarea:focus + label, .contact-form .fld textarea:not(:placeholder-shown) + label,
  .contact-form .fld select:focus + label, .contact-form .fld select:valid + label { top: 4px; font-size: 11px; }
  .contact-form .fld-select::after {
    content: ''; position: absolute; right: 4px; top: 30px; width: 7px; height: 7px; pointer-events: none;
    border-right: 1px solid rgba(34,38,40,0.6); border-bottom: 1px solid rgba(34,38,40,0.6); transform: rotate(45deg);
  }
  .contact-form .fld-select select { padding-right: 24px; cursor: pointer; }
  .contact-form .mentions { margin: 8px 0 0; font: 400 12px/1.55 'Inter', sans-serif; color: rgba(34,38,40,0.6); max-width: 620px; }
  .contact-form button {
    margin-top: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #222628; border: 1px solid #222628; border-radius: 999px;
    padding: 16px 32px; font: 400 14px/1 'Inter', sans-serif; letter-spacing: 0.01em;
    cursor: pointer; transition: background 0.25s, color 0.25s;
  }
  .contact-form button:hover { background: #222628; color: #fff; }
  @media (max-width: 600px) { .contact-form .pair { grid-template-columns: 1fr; gap: 0; } }

  /* ============ FOOTER ============ */
  footer {
    background: #ffffff; color: #222628;
    padding: 60px 48px 40px;
    border-top: 1px solid #000000;
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: baseline;
    font: 400 12px/1.5 'Inter', sans-serif;
  }
  footer em { font-family: 'Instrument Serif', serif; font-style: italic; }
  footer .c { text-align: center; }
  footer .r { text-align: right; }

  /* ============ SWITCHER ============ */
  .switcher {
    position: fixed; top: 72px; right: 20px; z-index: 100;
    background: rgba(34,38,40,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px; padding: 10px;
    display: flex; flex-direction: column; gap: 4px;
    font: 500 10px/1.2 'Inter', sans-serif; color: #fff;
    max-width: 180px;
  }
  .switcher-title { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; padding: 2px 2px; }
  .switcher button {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px;
    background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 5px;
    cursor: pointer; text-align: left;
    font: 500 10.5px/1.2 'Inter', sans-serif; color: #fff;
  }
  .switcher button.active { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
  .switcher .sw { width: 32px; height: 16px; border-radius: 3px; display: flex; flex-shrink: 0; overflow: hidden; }
  .switcher .sw i { flex: 1; }

  /* ============ MOBILE ============ */
  @media (max-width: 900px) {
    .nav-top { grid-template-columns: 1fr auto; padding: 16px 20px; gap: 12px; }
    .nav-top .items { display: none; }
    .nav-top .brand { white-space: nowrap; font-size: 13px; letter-spacing: 0.16em; }
    .nav-top .right > a:not(.call-btn) { display: none; }
    .hero { padding: 100px 24px 60px; }
    .hero-block1, .hero-block2 { font-size: clamp(32px, 9vw, 56px); }
    .hero-lead { font-size: 12px; margin-bottom: 20px; }
    .hero-sub { font-size: 18px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .cta { width: 100%; justify-content: center; }
    .pill-float { bottom: 16px; max-width: calc(100vw - 32px); overflow-x: auto; padding: 6px; }
    .pill-float a { padding: 9px 14px; font-size: 11px; }
    .call-float { bottom: 24px; right: 24px; height: 50px; padding: 0 22px; gap: 10px; font: 500 14px/1 'Inter', sans-serif; overflow: hidden;
      color: rgba(0,0,0,0.75); text-shadow: none;
      background: linear-gradient(rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.08) 100%);
      -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
      backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
      box-shadow: inset 0 0 0 .5px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
    .stats { padding: 60px 24px; }
    .stats-head { grid-template-columns: 1fr; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid .stat { padding: 28px 24px; }
    .situations, .steps, .cabinet, .faq, .contact { padding: 60px 24px; }
    .situations-head, .steps-head { grid-template-columns: 1fr; gap: 20px; }
    .situations-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .cabinet-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .cabinet-row { grid-template-columns: 1fr; gap: 6px; }
    .cabinet-row .m { text-align: left; }
    .contact-direct a { grid-template-columns: 1fr; gap: 4px; }
    footer { grid-template-columns: 1fr; text-align: center; gap: 16px; }
    footer .r, footer .c { text-align: center; }
  }

/* ===== Intégration WordPress ===== */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-notice { margin: 0 0 24px; padding: 14px 0; border-top: 1px solid #222628; border-bottom: 1px solid #222628; font: 400 15px/1.5 'Inter', sans-serif; color: #222628; }
footer .r a { color: inherit; text-decoration: none; }
footer .r a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.admin-bar .nav-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav-top { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .nav-top { top: 0; } }

/* Pages intérieures (mentions légales, honoraires) */
.derval-page .legal { max-width: 1100px; margin: 0 auto; padding: 160px 48px 120px; color: #222628; }
.derval-page .legal .label { font: 500 11px/1 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #7a7570; margin-bottom: 24px; }
.derval-page .legal .label::before { content: '('; margin-right: 4px; } .derval-page .legal .label::after { content: ')'; margin-left: 4px; }
.derval-page .legal h1 { font: 400 clamp(40px,5.2vw,72px)/1.02 'Inter', sans-serif; letter-spacing: -.03em; margin: 0 0 48px; }
.derval-page .legal h1 em { font-family: 'Instrument Serif', serif; font-style: italic; letter-spacing: -.01em; }
.derval-page .legal section { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid rgba(34,38,40,.1); }
.derval-page .legal section h2 { font: 500 11px/1.4 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; margin: 0; padding-top: 6px; }
.derval-page .legal section p { margin: 0 0 10px; font: 400 16px/1.65 'Inter', sans-serif; }
.derval-page .legal section p:last-child { margin-bottom: 0; }
.derval-page .legal a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 900px) { .derval-page .legal { padding: 110px 16px 80px; } .derval-page .legal section { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; } }

section[id]:focus, main:focus { outline: none; }

/* Ordinateur : menu uniquement dans la pilule flottante */
.nav-top .items { display: none; }
.nav-top .right { grid-column: 3; justify-self: end; }
.pill-float.on-light { color: rgba(0,0,0,0.75); border-color: transparent;
  background: linear-gradient(rgba(255,255,255,0.82) 0%, rgba(250,250,249,0.74) 40%, rgba(255,255,255,0.78) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
  backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
.pill-float.on-light a:hover { background: rgba(0,0,0,0.05); }
.pill-float.on-light .sep { background: rgba(0,0,0,0.15); }

/* Confirmation d'envoi du formulaire : remplace les champs */
.form-done { padding: 8px 0 0; animation: done-in .5s ease both; }
.form-done[hidden] { display: none; }
.form-done .done-title { margin: 0 0 18px; font: 400 clamp(40px, 4.4vw, 64px)/1.02 'Inter', sans-serif; letter-spacing: -0.03em; color: #222628; }
.form-done .done-title em { font-family: 'Instrument Serif', serif; font-style: italic; letter-spacing: -0.01em; }
.form-done .done-sub { margin: 0; font: 400 16px/1.6 'Inter', sans-serif; color: rgba(34,38,40,0.6); }
.form-done .done-sub a { color: #222628; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@keyframes done-in { from { opacity: 0; transform: translateY(8px); } }

/* Ordinateur : le numéro est dans le bandeau, pas de doublon dans le héros */
@media (min-width: 901px) { .hero-ctas .cta[href^="tel:"] { display: none; } }

/* FAQ : libellé aligné à gauche comme les autres sections */
.faq-head { text-align: left; }

/* Pilule ordinateur */
.pill-float { padding: 12px 40px; gap: 56px; border-radius: 9999px; font: 400 15px/22px 'Inter', sans-serif; color: rgba(255,255,255,0.88);
  background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.08) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
  backdrop-filter: blur(22px) saturate(2.1) brightness(1.35) contrast(1.08);
  border: .5px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 2px 4px rgba(255,255,255,0.04), inset 0 -1px 1px rgba(0,0,0,0.08), 0 10px 50px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
  transition: color .3s, background .3s, box-shadow .3s, border-color .3s, opacity .3s, transform .3s; }
.pill-float::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.35) 10%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0.35) 90%, rgba(0,0,0,0) 100%); }
.pill-float::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(168deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 18%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 75%, rgba(255,255,255,0.01) 90%, rgba(255,255,255,0.03) 100%); }
.pill-float .sep { display: none; }
.pill-float a { position: relative; z-index: 1; padding: 0; border-radius: 0; transition: opacity .2s; }
.pill-float a:hover, .pill-float.on-light a:hover { background: none; opacity: .65; }
.pill-float.on-light { color: rgba(0,0,0,0.75);
  background: linear-gradient(rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.08) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
  backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
.pill-float.on-light::before { background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.4) 15%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 85%, rgba(0,0,0,0) 100%); }

/* iPhone : flèche de défilement sur le héros */
.hero-down { display: none; }
@media (max-width: 900px) {
  .hero-down { display: flex; position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%);
    width: 72px; height: 72px; border-radius: 9999px; align-items: center; justify-content: center; background: transparent;
    border: 1px solid rgba(255,255,255,0.2); color: #fff; -webkit-tap-highlight-color: transparent; transition: opacity .3s, border-color .15s cubic-bezier(.4,0,.2,1); }
  .hero-down:active { border-color: rgba(255,255,255,0.5); }
  .hero-down svg { animation: hero-down 2.4s ease-in-out infinite; }
  .hero-down.gone, body:has(#menu:target) .hero-down { opacity: 0; pointer-events: none; }
}
@keyframes hero-down { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hero-down svg { animation: none; } }

/* iPhone : contenu du héros remonté pour que les boutons restent au-dessus de « Menu » et de la flèche */
@media (max-width: 900px) { .hero { justify-content: flex-start; padding-top: 84px; padding-bottom: 112px; } }

/* Bouton « retour en haut » (pied de page) */
footer { position: relative; padding-bottom: 120px; }
.back-top { position: absolute; right: 48px; top: 42px; width: 72px; height: 72px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; background: transparent; color: #222628; cursor: pointer; padding: 0;
  border: 1px solid rgba(34,38,40,0.2); -webkit-tap-highlight-color: transparent; transition: border-color .15s cubic-bezier(.4,0,.2,1); }
.back-top:hover, .back-top:active { border-color: rgba(34,38,40,0.6); }
@media (max-width: 900px) {
  footer { padding-bottom: 96px; }
  .back-top { position: static; transform: none; margin: 8px auto 0; }
}

/* iPhone : hors du héros, la flèche se retourne et ramène en haut (verre clair, comme « Menu ») */
@media (max-width: 900px) {
  .hero-down path { transform-box: fill-box; transform-origin: center; transform: rotate(180deg); transition: transform .35s cubic-bezier(.4,0,.2,1); }
  .hero-down { transition: opacity .3s, color .3s, background .3s, border-color .3s, box-shadow .3s; }
  .hero-down.up { color: rgba(0,0,0,0.75); border-color: rgba(0,0,0,0.08);
    background: linear-gradient(rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.08) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
  .hero-down.up path { transform: rotate(0deg); }
  .hero-down.up svg { animation: none; }
}

/* Ordinateur : flèche en bas à droite — vers le bas sur le héros (descend sur « En bref »), puis vers le haut (remonte au héros) */
@media (min-width: 901px) {
  .hero-down { display: flex; position: fixed; z-index: 60; right: 48px; bottom: 24px; width: 72px; height: 72px; border-radius: 9999px;
    align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,0.2); background: transparent;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .3s, color .3s, background .3s, border-color .3s, box-shadow .3s; }
  .hero-down:hover { border-color: rgba(255,255,255,0.5); }
  .hero-down svg { animation: hero-down 2.4s ease-in-out infinite; }
  .hero-down path { transform-box: fill-box; transform-origin: center; transform: rotate(180deg); transition: transform .35s cubic-bezier(.4,0,.2,1); }
  .hero-down.up { color: rgba(0,0,0,0.75); border-color: rgba(0,0,0,0.08);
    background: linear-gradient(rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.08) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    backdrop-filter: blur(22px) saturate(1.6) brightness(0.97) contrast(1.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04); }
  .hero-down.up:hover { border-color: rgba(0,0,0,0.3); }
  .hero-down.up path { transform: rotate(0deg); }
  .hero-down.up svg { animation: none; }
  .hero-down.gone { opacity: 0; pointer-events: none; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) { .hero-down svg { animation: none; } }

/* Flèche « retour en haut » : une seule flèche fixe, blanche en mode « différence » (s'inverse selon le fond, jusque dans le pied de page) */
.hero-down.up { color: #fff; border-color: rgba(255,255,255,0.2); background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; mix-blend-mode: difference; }
.hero-down.up:hover { border-color: rgba(255,255,255,0.5); }

/* Page 404 (même design que les pages intérieures) */
.derval-page .legal-404 { min-height: 70vh; }
.derval-page .legal-404 p { font: 400 18px/1.6 'Inter', sans-serif; color: #4a4744; margin: 0 0 40px; max-width: 560px; }
.derval-page .legal-404 .links-404 { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.derval-page .legal-404 .btn-404 { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border-radius: 999px;
  background: #222628; color: #fff; border: 1px solid #222628; font: 400 15px/1 'Inter', sans-serif; text-decoration: none;
  transition: background .15s, color .15s; }
.derval-page .legal-404 .btn-404:hover { background: #000; }
.derval-page .legal-404 .btn-404.ghost { background: transparent; color: #222628; }
.derval-page .legal-404 .btn-404.ghost:hover { background: rgba(34,38,40,0.06); }
.derval-page .legal-404 .urgence-404 { font-size: 14px; color: #7a7570; margin: 0; }
.derval-page .legal-404 .urgence-404 a { color: #222628; text-decoration: none; border-bottom: 1px solid rgba(34,38,40,0.3); }

/* Nom « Derval Avocat » (capitales de 12 px, graisse forte, espacement serré) */
.nav-top .brand { font-size: 16.5px; font-weight: 700; letter-spacing: 0.06em; }
@media (max-width: 900px) { .nav-top .brand { font-size: 16.5px; letter-spacing: 0.06em; } }
