/* =========================================================
   LAGIER AVOCAT — Feuille de style
   Charte : Bordeaux profond, Prune, Lilas poudré, Crème, Anthracite
   Typographies : Cormorant Garamond (titres) + Manrope (textes)
   ========================================================= */

:root {
  /* Palette de la charte */
  --bordeaux:   #6E2C3A;
  --prune:      #8A5A7B;
  --lilas:      #C9BEDD;
  --lilas-pale: #E8E2F0;
  --creme:      #F7F4EF;
  --creme-warm: #F1ECE3;
  --anthracite: #2B2B2B;
  --blanc:      #FFFFFF;

  --bordeaux-dark: #5A2230;
  --text-muted:    #6b6259;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Manrope', -apple-system, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  background: var(--creme);
  color: var(--anthracite);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--prune); color: var(--creme); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===================== TYPO COMMUNE ===================== */
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--prune);
  margin-bottom: 1.1rem;
}
.section-kicker.light { color: var(--lilas); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--bordeaux);
}

.section { padding: clamp(5rem, 11vw, 9rem) clamp(1.5rem, 5vw, 4rem); }
.section-head { max-width: var(--maxw); margin: 0 auto 3.5rem; }
.section-intro {
  max-width: 540px;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ===================== BOUTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--creme);
  border-color: var(--bordeaux);
}
.btn-primary:hover {
  background: var(--bordeaux-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(110, 44, 58, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--bordeaux);
  border-color: rgba(110, 44, 58, 0.3);
}
.btn-ghost:hover { border-color: var(--bordeaux); background: rgba(110,44,58,0.04); }
.btn-full { width: 100%; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.4rem 0;
}
.site-header.scrolled {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(110, 44, 58, 0.08);
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-monogram {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--bordeaux);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--anthracite);
}
.nav-name em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.3em; display: block; color: var(--text-muted); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--anthracite);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--bordeaux);
  transition: width 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--bordeaux); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--bordeaux);
  color: var(--creme) !important;
  padding: 0.6rem 1.35rem;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.nav-cta:hover { background: var(--bordeaux-dark); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 26px; height: 2px; background: var(--bordeaux); transition: all 0.3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--creme);
  border-top: 1px solid rgba(110,44,58,0.1);
}
.nav-mobile a { padding: 1.1rem clamp(1.5rem, 5vw, 4rem); font-size: 0.95rem; border-bottom: 1px solid rgba(110,44,58,0.06); color: var(--anthracite); }
.nav-mobile.open { display: flex; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--lilas) 0%, var(--lilas-pale) 55%, transparent 72%);
  border-radius: 47% 53% 60% 40% / 45% 50% 50% 55%;
  opacity: 0.6;
  z-index: 0;
  animation: blobFloat 18s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-22px, 24px) rotate(8deg); }
}
.hero-branch {
  position: absolute;
  top: 16%;
  right: 6%;
  width: clamp(120px, 16vw, 210px);
  color: var(--prune);
  opacity: 0.5;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--prune);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--bordeaux);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}
.hero-title .amp { color: var(--lilas); font-style: normal; }
.hero-title-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.8vw, 1.18rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--prune);
  margin-top: 1.4rem;
  max-width: 600px;
}
.hero-title-sub .amp { color: var(--lilas); font-weight: 600; padding: 0 0.15em; }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 540px;
  color: var(--text-muted);
  margin-bottom: 2.6rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}
.hero-scroll-line { width: 60px; height: 1px; background: var(--prune); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content:''; position:absolute; left:0; top:0; width:40%; height:100%; background: var(--bordeaux);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{transform:translateX(-100%)} 100%{transform:translateX(250%)} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== EXPERTISE ===================== */
.section-expertise { background: var(--creme); }
.expertise-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.exp-card {
  background: var(--blanc);
  padding: 2.6rem 2.4rem;
  border-radius: 3px;
  border: 1px solid rgba(110,44,58,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(110,44,58,0.4);
  border-color: rgba(110,44,58,0.18);
}
.exp-icon {
  width: 56px; height: 56px;
  color: var(--bordeaux);
  background: var(--creme-warm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.6rem;
}
.exp-icon svg { width: 30px; height: 30px; }
.exp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--bordeaux);
  margin-bottom: 0.8rem;
}
.exp-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ===================== APPROCHE ===================== */
.section-approche { background: var(--bordeaux); color: var(--creme); }
.approche-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.section-approche .section-title { color: var(--creme); }
.approche-lead { color: var(--lilas); margin-top: 1.6rem; font-size: 1.05rem; }
.values-list { list-style: none; display: flex; flex-direction: column; gap: 2.2rem; }
.values-list li { display: flex; gap: 1.5rem; align-items: baseline; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(201,190,221,0.2); }
.values-list li:last-child { border-bottom: none; padding-bottom: 0; }
.value-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--lilas);
  font-style: italic;
  min-width: 2rem;
}
.values-list h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--blanc); }
.values-list p { color: var(--lilas); font-size: 0.95rem; }

/* ===================== À PROPOS ===================== */
.section-apropos { background: var(--creme-warm); }
.apropos-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.apropos-portrait { position: relative; }
.portrait-frame {
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, var(--bordeaux), var(--prune));
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
}
.portrait-mono { font-family: var(--font-serif); font-size: 5.5rem; color: var(--creme); font-weight: 500; letter-spacing: 0.05em; }
.portrait-accent {
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--prune);
  border-radius: 4px;
  z-index: 1;
}
.apropos-text .section-title { margin-bottom: 1.6rem; }
.apropos-text p { color: var(--text-muted); margin-bottom: 1.2rem; max-width: 520px; }
.apropos-signature {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 1.5rem !important;
  color: var(--bordeaux) !important;
  margin-top: 1.8rem !important;
  padding-left: 1.4rem;
  border-left: 2px solid var(--lilas);
}

/* ===================== JOURNAL ===================== */
.section-journal { background: var(--creme); }
.journal-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--blanc);
  padding: 2.4rem;
  border-radius: 3px;
  border: 1px solid rgba(110,44,58,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  cursor: pointer;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -28px rgba(110,44,58,0.4); }
.post-card-feature {
  grid-row: span 2;
  background: var(--bordeaux);
  color: var(--creme);
  justify-content: center;
}
.post-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prune);
  margin-bottom: 1.1rem;
}
.post-card-feature .post-tag { color: var(--lilas); }
.post-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--bordeaux);
  margin-bottom: 0.9rem;
}
.post-card-feature h3 { color: var(--creme); font-size: 2rem; }
.post-card p { color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.post-card-feature p { color: var(--lilas); font-size: 1.05rem; }
.post-link {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux);
  display: inline-flex;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.post-card-feature .post-link { color: var(--lilas); }
.post-card:hover .post-link { gap: 0.9rem; }
.journal-note { max-width: var(--maxw); margin: 2.5rem auto 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

/* ===================== CONTACT ===================== */
.section-contact { background: var(--anthracite); color: var(--creme); }
.contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.section-contact .section-title { color: var(--creme); }
.contact-lead { color: var(--lilas); margin-top: 1.5rem; max-width: 420px; }
.contact-details { list-style: none; margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--prune); }
.contact-details a, .contact-details span { font-family: var(--font-serif); font-size: 1.3rem; color: var(--creme); }
.contact-details a:hover { color: var(--lilas); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilas); }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(247,244,239,0.06);
  border: 1px solid rgba(201,190,221,0.25);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--creme);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--lilas);
  background: rgba(247,244,239,0.1);
}
.form-row select option { color: var(--anthracite); }
.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--lilas); line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; accent-color: var(--prune); }
.contact-form .btn-primary { background: var(--bordeaux); border-color: var(--bordeaux); margin-top: 0.5rem; }
.contact-form .btn-primary:hover { background: var(--prune); border-color: var(--prune); }
.form-note { font-size: 0.85rem; margin-top: 0.4rem; line-height: 1.5; min-height: 1.2em; color: var(--lilas); }
.form-note-ok { color: #b9e6c9; }
.form-note-error { color: #f0b8c0; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--bordeaux); color: var(--creme); padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,4rem) 2rem; }
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,190,221,0.2);
}
.footer-mono { font-family: var(--font-serif); font-size: 2.4rem; color: var(--creme); font-weight: 600; letter-spacing: 0.05em; }
.footer-name { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 0.4rem; }
.footer-tag { color: var(--lilas); font-size: 0.88rem; margin-top: 0.3rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-nav a { font-size: 0.9rem; color: var(--lilas); transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--creme); }

.legal { max-width: var(--maxw); margin: 3rem auto 0; }
.legal h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 1.8rem; color: var(--creme); }
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.legal-grid h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilas); margin-bottom: 0.6rem; }
.legal-grid p { font-size: 0.84rem; color: rgba(247,244,239,0.7); line-height: 1.65; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(201,190,221,0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--lilas);
}

/* ===================== REVEAL AU SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .expertise-grid, .journal-grid { grid-template-columns: 1fr; }
  .post-card-feature { grid-row: auto; }
  .approche-inner, .apropos-inner, .contact-inner { grid-template-columns: 1fr; }
  .apropos-portrait { max-width: 320px; margin: 0 auto; }
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .hero-branch { opacity: 0.3; }
}
@media (max-width: 540px) {
  .legal-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-top { flex-direction: column; }
}

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