/* =========================================================
   CABINET AUBERT · LENOIR — Avocats, Nantes
   Identité : sobre, institutionnelle, rassurante
   Palette  : marine profond · ivoire chaud · laiton · ardoise
   Typo     : Lora (serif, autorité) + Inter (sans, clarté)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --marine:    #14213A;
  --marine-d:  #0E1729;
  --marine-2:  #20304F;
  --marine-l:  #3A4D70;
  --sable:     #F3EEE4;
  --sable-2:   #E9E1D2;
  --papier:    #FBF9F4;
  --ivoire:    #FFFFFF;
  --or:        #B08D57;
  --or-d:      #97744093;
  --or-d2:     #8A6B3C;
  --ardoise:   #5B6577;
  --ardoise-l: #8A93A3;
  --encre:     #1B2434;
  --ligne:     #E2DACB;
  --ligne-2:   #D2C8B4;

  --maxw:    1180px;
  --pad-x:   clamp(22px, 5vw, 60px);
  --t:       240ms cubic-bezier(.4, 0, .15, 1);
  --serif:   'Lora', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;

  --sh-sm: 0 2px 12px rgba(20, 33, 58, .06);
  --sh-md: 0 16px 44px rgba(20, 33, 58, .12);
  --sh-lg: 0 36px 72px rgba(20, 33, 58, .20);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.72;
  color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--marine); letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
::selection { background: var(--marine); color: var(--sable); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: 14px 30px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn--solid  { background: var(--marine); color: var(--sable); }
.btn--solid:hover  { background: var(--marine-d); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--gold   { background: var(--or); color: #fff; }
.btn--gold:hover   { background: var(--or-d2); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--outline{ background: transparent; color: var(--marine); border-color: var(--ligne-2); }
.btn--outline:hover{ border-color: var(--marine); }
.btn--ghost  { background: transparent; color: var(--sable); border-color: rgba(243,238,228,.45); }
.btn--ghost:hover  { background: var(--sable); color: var(--marine); border-color: var(--sable); }
.btn--sm { padding: 11px 20px; font-size: .82rem; }
.btn--lg { padding: 16px 38px; font-size: .96rem; }

.link-arrow { font-family: var(--sans); font-weight: 600; font-size: .86rem; color: var(--or-d2); display: inline-flex; align-items: center; gap: 8px; transition: var(--t); }
.link-arrow svg { transition: var(--t); } .link-arrow:hover { color: var(--or); } .link-arrow:hover svg { transform: translateX(4px); }

/* ============ TOPBAR ============ */
.topbar { background: var(--marine-d); color: var(--sable-2); font-size: .8rem; letter-spacing: .02em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__strong { font-weight: 600; color: #fff; }
.topbar a:hover { color: var(--or); }
@media (max-width: 640px) { .topbar__item--hide { display: none; } .topbar__inner { justify-content: center; gap: 14px; } }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 60; background: rgba(251,249,244,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne); transition: var(--t); }
.header.is-scrolled { box-shadow: var(--sh-sm); background: rgba(251,249,244,.98); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 30px; }
.logo { display: block; color: var(--marine); flex-shrink: 0; }
.logo svg { height: 42px; width: auto; }

.nav { display: flex; gap: 30px; }
.nav__link { font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--encre); position: relative; padding: 6px 0; transition: var(--t); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: var(--t); }
.nav__link:hover { color: var(--marine); } .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--marine); font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 16px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 5px; }
.burger span { display: block; height: 1.8px; width: 100%; background: var(--marine); transition: var(--t); }
@media (max-width: 940px) { .nav { display: none; } .burger { display: flex; } .header__inner { height: 70px; } .logo svg { height: 36px; } }

/* ============ MENU MOBILE ============ */
.mobile-overlay { position: fixed; inset: 0; background: rgba(20,33,58,.55); opacity: 0; visibility: hidden; transition: var(--t); z-index: 90; }
.mobile-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 85vw); background: var(--marine); color: var(--sable); z-index: 100; transform: translateX(100%); transition: transform 340ms cubic-bezier(.4,0,.15,1); padding: 78px 38px 40px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu.is-open { transform: translateX(0); box-shadow: var(--sh-lg); }
.mobile-menu__close { position: absolute; top: 24px; right: 26px; background: none; border: none; color: var(--sable); cursor: pointer; }
.mobile-menu__eyebrow { font-family: var(--serif); font-size: 1.2rem; opacity: .6; margin-bottom: 16px; }
.mobile-menu a { font-family: var(--serif); font-size: 1.4rem; padding: 12px 0; border-bottom: 1px solid rgba(243,238,228,.14); transition: var(--t); }
.mobile-menu a:hover { padding-left: 8px; color: var(--or); }
.mobile-menu__resa { color: var(--or) !important; }
.mobile-menu__phone { margin-top: auto; font-family: var(--sans) !important; font-size: 1.05rem !important; border: none !important; opacity: .85; }

/* ============ SECTIONS ============ */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section--sable { background: var(--sable); }
.section--marine { background: var(--marine); color: var(--sable); }
.section--ivory { background: var(--ivoire); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or-d2); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--or); }
.section--marine .eyebrow { color: var(--or); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(2rem, 4.2vw, 3rem); }
.section--marine .section__title { color: var(--sable); }
.section__lead { font-size: 1.1rem; color: var(--ardoise); margin-top: 16px; }
.section--marine .section__lead { color: var(--sable-2); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: var(--sable); overflow: hidden; background: var(--marine); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--marine) 8%, rgba(20,33,58,.55) 60%, rgba(20,33,58,.25) 100%); }
.hero__inner { position: relative; z-index: 1; padding: 120px 0 70px; max-width: 720px; }
.hero__eyebrow { color: var(--or); }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.08; color: var(--sable); }
.hero__title em { font-style: italic; color: var(--or); }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 560px; margin-top: 22px; color: rgba(243,238,228,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; padding-top: 30px; border-top: 1px solid rgba(243,238,228,.18); }
.hero__meta b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--or); }
.hero__meta span small { font-size: .9rem; color: var(--sable-2); }

/* ============ SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; box-shadow: var(--sh-md); }
.split__media::before { content: ''; position: absolute; top: -16px; left: -16px; width: 70px; height: 70px; border-top: 2px solid var(--or); border-left: 2px solid var(--or); z-index: -0; }
.split__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.split__text p { color: var(--ardoise); }
.signature-block { margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--or); }
.signature-block strong { font-family: var(--serif); font-size: 1.1rem; color: var(--marine); }
.signature-block span { display: block; font-size: .85rem; color: var(--ardoise-l); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 44px; } .split--reverse .split__media { order: 0; } }

/* ============ DOMAINES (cartes) ============ */
.domaines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.domaine { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: 4px; padding: 34px 30px; transition: var(--t); position: relative; }
.domaine:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--ligne-2); }
.domaine__ico { width: 46px; height: 46px; color: var(--or-d2); margin-bottom: 20px; }
.domaine__ico svg { width: 100%; height: 100%; }
.domaine__title { font-size: 1.3rem; margin-bottom: 10px; }
.domaine__desc { font-size: .95rem; color: var(--ardoise); margin: 0 0 16px; }
.domaine__link { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--or-d2); display: inline-flex; gap: 6px; }
@media (max-width: 920px) { .domaines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .domaines { grid-template-columns: 1fr; } }

/* ============ ACCORDÉON (expertises) ============ */
.acc { max-width: 880px; margin: 0 auto; }
.acc__item { border: 1px solid var(--ligne); border-radius: 4px; background: var(--ivoire); margin-bottom: 14px; overflow: hidden; transition: var(--t); scroll-margin-top: 110px; }
.acc__item.is-open { box-shadow: var(--sh-sm); border-color: var(--ligne-2); }
.acc__head { display: flex; align-items: center; gap: 18px; padding: 24px 26px; cursor: pointer; }
.acc__ico { width: 34px; height: 34px; color: var(--or-d2); flex: none; }
.acc__ico svg { width: 100%; height: 100%; }
.acc__head h3 { font-size: 1.25rem; flex: 1; }
.acc__chevron { width: 22px; height: 22px; color: var(--ardoise-l); transition: transform var(--t); flex: none; }
.acc__item.is-open .acc__chevron { transform: rotate(180deg); color: var(--or-d2); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height 360ms cubic-bezier(.4,0,.15,1); }
.acc__item.is-open .acc__body { max-height: 460px; }
.acc__inner { padding: 0 26px 28px 78px; }
.acc__inner p { color: var(--ardoise); }
.acc__points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 14px; }
.acc__points li { display: flex; gap: 10px; font-size: .92rem; color: var(--encre); }
.acc__points li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--or); border-radius: 50%; }
@media (max-width: 620px) { .acc__inner { padding-left: 26px; } .acc__points { grid-template-columns: 1fr; } }

/* ============ AVOCATS ============ */
.lawyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.lawyer { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: 4px; overflow: hidden; transition: var(--t); }
.lawyer:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.lawyer__photo { aspect-ratio: 1/1; overflow: hidden; }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: var(--t); }
.lawyer:hover .lawyer__photo img { filter: grayscale(0); }
.lawyer__body { padding: 26px 28px 30px; }
.lawyer__name { font-size: 1.35rem; }
.lawyer__role { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--or-d2); margin: 6px 0 14px; }
.lawyer__bio { font-size: .92rem; color: var(--ardoise); margin: 0 0 14px; }
.lawyer__tags { font-size: .82rem; color: var(--marine); font-weight: 500; padding-top: 12px; border-top: 1px solid var(--ligne); }
@media (max-width: 860px) { .lawyers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ============ DÉMARCHE (étapes) ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 0 26px; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 18px; right: -1px; width: 1px; height: calc(100% - 18px); background: rgba(243,238,228,.18); }
.step__n { font-family: var(--serif); font-size: 1.4rem; color: var(--or); width: 44px; height: 44px; border: 1px solid var(--or); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; color: var(--sable); margin-bottom: 10px; }
.step p { font-size: .92rem; color: var(--sable-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* ============ HONORAIRES ============ */
.fees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.fee { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: 4px; padding: 32px 30px; border-left: 3px solid var(--or); }
.fee__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.fee__title { font-size: 1.3rem; }
.fee__price { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-d2); white-space: nowrap; }
.fee p { font-size: .94rem; color: var(--ardoise); margin: 0; }
@media (max-width: 700px) { .fees { grid-template-columns: 1fr; } }

/* ============ BANDE CONFIANCE / CITATION ============ */
.quote-band { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.45; color: var(--sable); }
.quote-band span { color: var(--or); }
.quote-band cite { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sable-2); margin-top: 24px; }

/* ============ PAGE HERO ============ */
.page-hero { position: relative; color: var(--sable); background: var(--marine); padding: clamp(120px, 15vw, 190px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,58,.6), var(--marine)); }
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); color: var(--sable); }
.page-hero__title em { font-style: italic; color: var(--or); }
.page-hero__text { font-size: 1.08rem; color: rgba(243,238,228,.86); margin-top: 16px; max-width: 580px; }
.crumb { font-size: .82rem; letter-spacing: .04em; color: var(--or); margin-bottom: 18px; }
.crumb a { color: var(--sable-2); } .crumb a:hover { color: var(--sable); }

/* ============ FORMULAIRE ============ */
.form-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
@media (max-width: 880px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--ivoire); border: 1px solid var(--ligne); border-radius: 4px; padding: clamp(28px, 4vw, 46px); box-shadow: var(--sh-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--marine); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--encre); padding: 13px 15px; border: 1px solid var(--ligne-2); border-radius: 3px; background: var(--papier); transition: var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marine); background: var(--ivoire); box-shadow: 0 0 0 3px rgba(20,33,58,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--ardoise-l); margin-top: 6px; }
.err { color: #B0432F; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--ardoise); }
.consent input { width: auto; margin-top: 4px; }

.aside-info { display: flex; flex-direction: column; gap: 24px; }
.info-block h3 { font-size: 1.25rem; margin-bottom: 14px; }
.info-block ul li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.info-block ul li .is-closed { color: var(--ardoise-l); }
.info-block address { font-style: normal; color: var(--ardoise); line-height: 1.9; }
.info-block a { color: var(--or-d2); font-weight: 600; }
.info-soft { background: var(--sable); border-radius: 4px; padding: 26px; border-left: 3px solid var(--or); }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 1px solid var(--ligne); border-radius: 4px; overflow: hidden; background: var(--sable-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ============ FOOTER ============ */
.footer { background: var(--marine-d); color: var(--sable-2); padding: clamp(60px, 8vw, 92px) 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(243,238,228,.12); }
.logo--footer { color: var(--sable); margin-bottom: 22px; } .logo--footer svg { height: 44px; }
.footer__bio { font-size: .92rem; color: var(--ardoise-l); max-width: 340px; }
.footer__col h4 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sable); margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--ardoise-l); font-size: .92rem; transition: var(--t); }
.footer__col a:hover { color: var(--or); }
.footer__address { font-style: normal; color: var(--ardoise-l); font-size: .92rem; line-height: 1.7; }
.footer__address a:hover { color: var(--or); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; font-size: .8rem; color: var(--ardoise); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; } .footer__legal a:hover { color: var(--sable-2); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============ FLASH ============ */
.flash { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 11px; background: var(--marine); color: var(--sable); padding: 15px 26px; border-radius: 3px; box-shadow: var(--sh-lg); font-weight: 500; font-size: .94rem; transition: opacity 500ms ease; max-width: 90vw; }

/* ============ REVEAL & UTILS ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.4,0,.15,1), transform 700ms cubic-bezier(.4,0,.15,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
.text-center { text-align: center; }
