:root{
  --ink:#132743;
  --ink-soft:#2E4364;
  --paper:#F7F4EA;
  --paper-alt:#EFE9D8;
  --paper-card:#FFFDF6;
  --line:#D8CFB0;
  --grey:#5B5647;
  --accent-gold:#A9812E;
  --accent-gold-soft:#BE9748;
  --accent-gold-text:#7A5D1F;
  --accent-burgundy:#6E2430;
  --maxw:1180px;
  --radius:0px;
  --shadow-sm:0 8px 20px -16px rgba(19,39,67,0.24);
  --shadow-lg:0 20px 40px -24px rgba(19,39,67,0.3);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; font-size:17px; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'PT Serif', serif;
  font-size:1rem;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family:'Playfair Display', serif; font-weight:600; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }

.mono{
  font-family:'EB Garamond', serif;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:0.76rem;
  font-weight:600;
}

:focus-visible{ outline:2px solid var(--accent-gold); outline-offset:3px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }

/* ---------- NAV ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:var(--paper);
  border-top:3px solid var(--ink);
  border-bottom:1px solid var(--accent-gold);
  transition:box-shadow .2s ease;
}
.nav.scrolled{ box-shadow:var(--shadow-sm); }
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:baseline; gap:8px;
  font-family:'Playfair Display', serif; font-weight:600; font-size:1.15rem;
  text-decoration:none; color:var(--ink); line-height:1.2;
}
.brand-logo{ display:block; height:40px; width:auto; }
.footer-logo-wrap .brand-logo{ height:34px; }
.nav-links{ display:flex; gap:26px; align-items:center; }
.nav-links a{ text-decoration:none; color:var(--ink-soft); transition:color .15s ease; white-space:nowrap; }
.nav-links a:hover{ color:var(--accent-gold-text); }
.nav-links a.btn-primary{ color:var(--paper); }
.nav-links a.btn-primary:hover{ color:var(--ink); }
.nav-toggle{
  display:none; background:none; border:1px solid var(--line); padding:8px 10px; cursor:pointer;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); margin:4px 0; }

/* ---------- BUTTONS ---------- */
.btn{
  font-family:'EB Garamond', serif; font-weight:600; font-size:0.82rem;
  letter-spacing:0.1em; text-transform:uppercase; text-decoration:none;
  padding:13px 26px; border-radius:var(--radius); border:1px solid var(--ink);
  display:inline-block; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--ink); color:var(--paper); }
.btn-primary:hover{ background:var(--accent-gold); border-color:var(--accent-gold); color:var(--ink); }
.btn-secondary{ background:var(--paper); color:var(--ink); }
.btn-secondary:hover{ border-color:var(--accent-gold); color:var(--accent-gold-text); }

/* ---------- SECTION SCAFFOLD ---------- */
section{ padding:104px 0; }
.eyebrow{ color:var(--accent-gold-text); margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent-gold); display:inline-block; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h1, .section-head h2{ font-size:clamp(1.7rem, 2.6vw, 2.4rem); line-height:1.15; }
.section-head p{ margin-top:18px; color:var(--grey); font-size:1.05rem; }

/* ---------- HERO ---------- */
.hero{ padding-top:88px; position:relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
.hero-copy h1{ font-size:clamp(2.3rem, 3.8vw, 3.4rem); line-height:1.1; }
.hero-copy h1 em{ font-style:normal; color:var(--accent-gold); }
.hero-copy p{ margin-top:22px; max-width:48ch; color:var(--ink-soft); font-size:1.12rem; }
.hero-actions{ margin-top:36px; display:flex; gap:16px; flex-wrap:wrap; }
.hero-meta{ margin-top:52px; display:flex; gap:36px; flex-wrap:wrap; }
.hero-meta div{ border-left:1px solid var(--line); padding-left:14px; }
.hero-meta .mono{ color:var(--grey); margin-bottom:6px; display:block; }
.hero-meta strong{ font-family:'Playfair Display', serif; font-size:1.25rem; }

.crest-wrap{ position:relative; display:flex; align-items:center; justify-content:center; }
.crest-panel{
  position:relative; width:100%; aspect-ratio:1/1;
  border:1px solid var(--ink); outline:1px solid var(--accent-gold); outline-offset:8px;
  background:var(--paper-card);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:36px; gap:10px;
  filter:drop-shadow(0 18px 30px rgba(19,39,67,0.22));
  opacity:0; transform:scale(0.96) translateY(6px); animation:crestIn 0.9s ease forwards 0.3s;
}
.crest-logo{ width:100%; max-width:280px; height:auto; margin-bottom:14px; }
.crest-panel span.mono{ color:var(--grey); }
.crest-contact{ font-family:'PT Serif', serif; font-size:0.82rem; color:var(--grey); }
@keyframes crestIn{ to{ opacity:1; transform:scale(1) translateY(0); } }

/* ---------- CARDS / GRIDS ---------- */
.missions-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.mission-card{
  background:var(--paper-card); padding:36px; position:relative;
  box-shadow:inset 0 3px 0 transparent; transition:box-shadow .2s ease;
}
.mission-card:hover{ box-shadow:inset 0 3px 0 var(--accent-gold); }
.mission-card .tick{ width:26px; height:26px; margin-bottom:22px; }
.mission-card h3{ font-size:1.2rem; margin-bottom:12px; }
.mission-card p{ color:var(--grey); font-size:0.98rem; }
.mission-card .ref{ display:block; margin-top:16px; color:var(--accent-burgundy); }

/* ---------- PROFIL / EQUIPE ---------- */
.profil-inner{ display:grid; grid-template-columns:280px 1fr; gap:56px; align-items:start; }
.quote-frame{ border-left:2px solid var(--accent-gold); padding:4px 0 4px 26px; }
.quote-mark{ font-family:'Playfair Display', serif; font-size:4.2rem; line-height:0.5; color:var(--accent-gold-soft); display:block; margin-bottom:14px; }
.quote-text{ font-family:'Playfair Display', serif; font-style:italic; font-weight:500; font-size:1.2rem; line-height:1.5; color:var(--ink); }
.quote-attribution{ display:block; margin-top:20px; color:var(--accent-gold-text); }
.profil-text h2{ font-size:1.7rem; margin-bottom:4px; }
.profil-text .role{ color:var(--accent-gold-text); margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.profil-text .role svg{ width:14px; height:14px; }
.profil-text p{ color:var(--grey); max-width:62ch; }
.profil-stats{ display:flex; gap:36px; flex-wrap:wrap; margin-top:28px; }
.profil-stats div{ border-left:1px solid var(--line); padding-left:14px; }
.profil-stats .mono{ color:var(--grey); margin-bottom:6px; display:block; }
.profil-stats strong{ font-family:'Playfair Display', serif; font-size:1.4rem; color:var(--ink); }

.cabinet-banner{ border:1px solid var(--ink); outline:1px solid var(--accent-gold); outline-offset:8px; overflow:hidden; margin:12px 0 44px; }
.cabinet-banner img{ width:100%; aspect-ratio:21/8; object-fit:cover; display:block; }
@media (max-width:680px){ .cabinet-banner{ outline-offset:5px; } .cabinet-banner img{ aspect-ratio:4/3; } }

.partners-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
.partner-card{ background:var(--paper-card); padding:40px; }
.partner-card .avatar{
  width:180px; height:225px; border:1px solid var(--ink); outline:1px solid var(--accent-gold); outline-offset:7px;
  display:flex; align-items:center; justify-content:center;
  font-family:'Playfair Display', serif; font-size:3rem; color:var(--ink); background:var(--paper-alt);
  margin-bottom:32px;
  overflow:hidden;
}
@media (max-width:900px){
  .partner-card .avatar{ width:140px; height:175px; }
}
.partner-card .avatar img{
  width:100%; height:100%; object-fit:cover; object-position:center 15%;
}
.partner-card h3{ font-size:1.35rem; margin-bottom:4px; }
.partner-card .role{ color:var(--accent-gold-text); margin-bottom:18px; display:block; }
.partner-card p{ color:var(--grey); font-size:0.98rem; }

@media (max-width:680px){
  .profil-inner{ grid-template-columns:1fr; text-align:left; }
  .profil-text .role{ justify-content:flex-start; }
  .partners-grid{ grid-template-columns:1fr; }
}

/* ---------- EXPERTISE / PILLARS ---------- */
.expertise{ background:var(--paper-alt); }
.pillars{ display:grid; grid-template-columns:repeat(3, 1fr); gap:36px; }
.pillar{ border-top:2px solid var(--ink); padding-top:20px; }
.pillar .tick{ width:22px; height:22px; margin-bottom:18px; }
.pillar h3{ font-size:1.1rem; margin-bottom:10px; }
.pillar p{ color:var(--grey); font-size:0.96rem; }
.pillar .ref{ display:block; margin-top:16px; color:var(--accent-burgundy); }

/* Even out last-row orphans on services.html: 5 cards in Comptabilité, 4 each in Paie/Juridique */
@media (min-width:901px){
  #comptabilite .pillars{ grid-template-columns:repeat(3, 1fr); }
  #comptabilite .pillar:last-child{ grid-column:span 2; }
  #paie .pillars, #juridique .pillars{ grid-template-columns:repeat(2, 1fr); }
}

.tick-svg path{
  fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:40; stroke-dashoffset:40; transition:stroke-dashoffset .7s ease;
}
.in-view .tick-svg path{ stroke-dashoffset:0; }
.tick{ color:var(--accent-gold); }

/* ---------- METHODE / STEPS ---------- */
.steps{ position:relative; display:grid; grid-template-columns:repeat(4, 1fr); gap:28px; }
.steps::before{ content:""; position:absolute; top:22px; left:0; right:0; height:1px; background:var(--line); }
.step{ position:relative; padding-top:56px; }
.step-num{
  position:absolute; top:0; left:0; width:44px; height:44px; border-radius:50%;
  border:1px solid var(--ink); background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  font-family:'Playfair Display', serif; font-weight:600; font-size:1.05rem; z-index:1;
}
.step h3{ font-size:1.05rem; margin-bottom:10px; }
.step p{ color:var(--grey); font-size:0.94rem; }

/* ---------- SECTEURS / TAGS ---------- */
.secteurs{ background:var(--paper-alt); }
.tag-grid{ display:flex; flex-wrap:wrap; gap:14px; }
.tag{
  background:var(--paper-card); border:1px solid var(--line); padding:16px 22px;
  font-family:'Playfair Display', serif; font-weight:500; font-size:1.02rem;
  display:flex; align-items:center; gap:10px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.tag:hover{ border-color:var(--accent-gold); box-shadow:var(--shadow-sm); }
.tag .tick{ width:16px; height:16px; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:820px; }
.faq-item{ border-top:1px solid var(--line); padding:22px 0; }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-item summary{
  cursor:pointer; list-style:none; font-family:'Playfair Display', serif; font-weight:600; font-size:1.08rem;
  color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-family:'EB Garamond', serif; font-size:1.5rem; color:var(--accent-gold); flex-shrink:0;
}
.faq-item[open] summary::after{ content:"\2212"; }
.faq-item p{ margin-top:14px; color:var(--grey); font-size:0.98rem; line-height:1.65; max-width:70ch; }

/* ---------- CONTACT ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.field{ margin-bottom:20px; }
.field label{
  display:block; margin-bottom:8px; font-family:'EB Garamond', serif; font-size:0.72rem;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--grey);
}
.field input, .field select, .field textarea{
  width:100%; background:var(--paper-card); border:1px solid var(--line); padding:13px 14px;
  font-family:'PT Serif', serif; font-size:0.98rem; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--accent-gold); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-status{ margin-top:14px; font-family:'EB Garamond', serif; font-size:0.8rem; display:none; }
.form-status.visible{ display:block; }
.form-status.success{ color:#1F5F3F; }
.form-status.error{ color:var(--accent-burgundy); }

.contact-info{ background:var(--paper-card); border:1px solid var(--line); padding:32px; box-shadow:var(--shadow-sm); }
.contact-info .mono{ color:var(--grey); }
.contact-row{ display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.contact-row:last-child{ border-bottom:none; }
.contact-row span:first-child{ color:var(--grey); flex-shrink:0; }
.contact-row span:last-child{ font-family:'Playfair Display', serif; text-align:right; }

/* Long, paragraph-style entries (réseau) read better stacked and left-aligned */
.contact-info.stacked .contact-row{ display:block; }
.contact-info.stacked .contact-row > span:first-child{
  display:block; margin-bottom:10px; color:var(--ink);
  font-family:'Playfair Display', serif; font-weight:600; font-size:1.15rem;
}
.contact-info.stacked .contact-row > span:last-child{
  display:block; text-align:left; font-family:'PT Serif', serif; color:var(--grey); font-size:0.98rem; line-height:1.65;
}

/* ---------- MENTIONS LÉGALES ---------- */
.mentions{ background:var(--ink); padding:72px 0; }
.mentions .eyebrow{ color:var(--accent-gold-soft); }
.mentions .eyebrow::before{ background:var(--accent-gold-soft); }
.mentions .section-head h2{ color:var(--paper); }
.mentions-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:32px 48px; }
.mentions-grid h4{ color:var(--accent-gold-soft); letter-spacing:0.12em; font-size:0.72rem; margin-bottom:10px; }
.mentions-grid p{ color:rgba(247,244,234,0.72); font-size:0.92rem; line-height:1.65; }
@media (max-width:680px){ .mentions-grid{ grid-template-columns:1fr; } }

/* ---------- FOOTER ---------- */
footer{ background:var(--ink); color:var(--paper); padding:56px 0 28px; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(243,244,239,0.15); }
footer .brand{ color:var(--paper); }
.footer-links{ display:flex; gap:44px; flex-wrap:wrap; }
.footer-links h4{ font-family:'EB Garamond', serif; font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color:rgba(243,244,239,0.5); margin-bottom:14px; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{ text-decoration:none; color:var(--paper); opacity:0.85; }
.footer-links a:hover{ opacity:1; color:var(--accent-gold-soft); }
.footer-bottom{ padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:rgba(243,244,239,0.5); font-family:'EB Garamond', serif; font-size:0.72rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .crest-wrap{ order:-1; padding:20px 0 8px; }
  .crest-panel{ width:min(280px, 70%); margin:0 auto; }
  .missions-grid{ grid-template-columns:1fr; }
  .pillars{ grid-template-columns:1fr; gap:32px; }
  .steps{ grid-template-columns:1fr 1fr; row-gap:44px; }
  .steps::before{ display:none; }
  .contact-grid{ grid-template-columns:1fr; }
  .partners-grid{ grid-template-columns:1fr; }
}
@media (max-width:680px){
  .wrap{ padding:0 20px; }
  section{ padding:72px 0; }
  .nav-links{
    position:fixed; top:64px; left:0; right:0; background:var(--paper);
    border-bottom:1px solid var(--line); flex-direction:column; align-items:flex-start;
    padding:24px 20px; gap:18px; transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
  }
  .nav-links.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-toggle{ display:block; }
  .steps{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .crest-panel{ animation:none; opacity:1; transform:none; }
  .tick-svg path{ transition:none; stroke-dashoffset:0; }
}
