/*
 * VV Avocat - Custom pages styling (expertises)
 * "Articles pour approfondir" block on expertise pages.
 */

.vv-page-related {
  padding: 60px 20px;
  background: #f8f8f8;
  border-top: 1px solid #e4e4e4;
}

.vv-page-related-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.vv-page-related h2 {
  font-size: 24px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 24px;
}

.vv-page-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.vv-page-related li a {
  display: block;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  color: #222222;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s, color 0.2s;
}

.vv-page-related li a:hover {
  border-color: #a14a4a;
  color: #a14a4a;
}

@media (max-width: 699px) {
  .vv-page-related { padding: 40px 16px; }
}

/* ===================================================================
   Section « Nos expertises en … » des pages d'expertise : cartes sémantiques
   =================================================================== */
.vv-services {
  position: relative;
  isolation: isolate;
  background: url('/images/legal-bg.jpg') center center / cover no-repeat fixed;
  padding: 100px 20px 110px;
}
.vv-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #262626;
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
.vv-services .eyebrow { color: #FFFFFF; }
.vv-services .eyebrow::before { background: #A14A4A; }
.vv-services .vv-services-title { color: #FFFFFF; }
.vv-services .vv-services-intro { color: #E4E4E4; }
.vv-services .vv-service { border-color: transparent; }
.vv-chapter .vv-services-grid--chapter .vv-service { border-color: #ECECEC; }
.vv-chapter--dark .vv-services-grid--chapter .vv-service { border-color: transparent; }
.vv-services-inner { max-width: 1200px; margin: 0 auto; }
.vv-services-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.15;
  color: #262626;
}
.vv-services-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: #646464;
}
.vv-services-title + .vv-services-grid { margin-top: 50px; }
.vv-services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.vv-service {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 56px) / 3);
  min-width: 300px;
  padding: 36px 34px 30px;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.vv-service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: #A14A4A;
  transition: width 0.45s ease;
}
.vv-service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.vv-service:hover::before { width: 100%; }
.vv-service-num {
  display: block;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #A14A4A;
}
.vv-service-title {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif; font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5;
  color: #A14A4A;
}
.vv-service-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #646464;
}
.vv-service-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.vv-service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #262626;
}
.vv-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F6EDED url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l2.8 2.8 6.2-6.6' fill='none' stroke='%23A14A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.vv-service-outro {
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #646464;
}
.vv-service-goal {
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #ECECEC;
  font-size: 14px;
  line-height: 1.6;
  color: #262626;
}
.vv-service-goal-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A14A4A;
}
@media (max-width: 1024px) {
  .vv-service { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 767px) {
  .vv-services { padding: 60px 16px; }
  .vv-services-title { font-size: 31px; }
  .vv-service { flex-basis: 100%; min-width: 0; padding: 28px 24px 24px; }
  .vv-services-grid { gap: 18px; }
}

/* ===================================================================
   Section « Exemples de dossiers traités » : fond gris à motif (comme les témoignages
   de l'accueil), dossiers numérotés avec situation, montant en jeu et résultat
   =================================================================== */
.vv-cases {
  position: relative;
  isolation: isolate;
  background-color: #E4E4E4;
  padding: 100px 20px 110px;
}
.vv-cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/pattern-asset-1.png') center top / 1440px auto repeat;
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
}
.vv-cases-inner { max-width: 1200px; margin: 0 auto; }
.vv-cases .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A14A4A;
}
.vv-cases .eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B8B8B8;
  margin-right: 10px;
}
.vv-cases-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.15;
  color: #262626;
}
.vv-cases-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  font-style: normal;
  font-size: 14px;
  line-height: 1.75;
  color: #646464;
}
.vv-cases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vv-case {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 44px 48px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vv-case:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12); }
.vv-case-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 40px;
  border-right: 1px solid #ECECEC;
}
.vv-case-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: #A14A4A;
}
.vv-case-amount { margin: 0; }
.vv-case-amount strong {
  display: block;
  margin-top: 4px;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #262626;
  white-space: nowrap;
}
.vv-case-label {
  display: block;
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A14A4A;
}
.vv-case-main { min-width: 0; }
.vv-case-title {
  margin: 0 0 22px;
  font-family: 'Montserrat', sans-serif; font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5;
  color: #A14A4A;
}
.vv-case-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #646464;
}
.vv-case-result {
  margin-top: 22px;
  padding: 18px 22px;
  background: #F8F8F8;
  border-left: 3px solid #A14A4A;
  border-radius: 0 10px 10px 0;
}
.vv-case-result p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #262626;
}
@media (max-width: 1024px) {
  .vv-case { grid-template-columns: 200px 1fr; gap: 28px; padding: 34px 32px; }
  .vv-case-num { font-size: 52px; }
  .vv-case-amount strong { font-size: 24px; }
}
@media (max-width: 767px) {
  .vv-cases { padding: 60px 16px 70px; }
  .vv-cases-title { font-size: 31px; }
  .vv-cases-intro { margin-bottom: 36px; }
  .vv-case { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .vv-case-side { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid #ECECEC; }
  .vv-case-num { font-size: 44px; }
  .vv-case-amount strong { font-size: 22px; }
  .vv-case-title { font-size: 22px; }
}

/* ===================================================================
   Chapitres des pages d'expertise : sections pleine largeur, numérotées,
   fonds alternés, sujets en grille
   =================================================================== */
.vv-chapters { position: relative; }
.vv-chapter { background: #FFFFFF; padding: 100px 20px; }
.vv-chapter--grey { background: #F8F8F8; }
.vv-chapter--dark { background: #262626; color: #E4E4E4; }
.vv-chapter--dark .vv-chapter-title, .vv-chapter--dark .vv-topic strong { color: #FFFFFF; }
.vv-chapter--dark .vv-chapter-sub, .vv-chapter--dark .vv-topic-title { color: #E8B4B4 !important; }
.vv-chapter--dark .vv-chapter-lead, .vv-chapter--dark .vv-topic { color: #D9D9D9; }
.vv-chapter--dark .vv-topic { border-top-color: rgba(255, 255, 255, 0.18); }
.vv-chapter--dark .vv-topic--note { background: rgba(255, 255, 255, 0.07); }
.vv-chapter--dark .vv-topic--note h4 { color: #FFFFFF; }
.vv-chapter--dark a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.vv-chapter + .vv-services, .vv-chapter + .vv-cases { margin-top: 0; }
.vv-chapter-inner { max-width: 1200px; margin: 0 auto; }
.vv-chapter-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.vv-chapter-num {
  display: block;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #A14A4A;
}
.vv-chapter-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #262626;
}
.vv-chapter-lead {
  padding-top: 32px;
  font-size: 15px;
  line-height: 1.75;
  color: #646464;
}
.vv-chapter-lead p { margin: 0 0 12px; }
.vv-chapter-lead p:last-child { margin-bottom: 0; }
.vv-chapter-lead ul { margin: 10px 0 0; padding-left: 20px; }
.legacy .vv-chapter h3.vv-chapter-sub, .vv-chapter h3.vv-chapter-sub {
  margin: 0 0 28px;
  font-family: 'Playfair Display', serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 28px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #262626 !important;
  display: block !important;
}
.legacy .vv-chapter h3.vv-chapter-sub::before, .vv-chapter h3.vv-chapter-sub::before { content: none !important; display: none !important; }
.legacy .vv-chapter--dark h3.vv-chapter-sub { color: #FFFFFF !important; }
.vv-chapter-body > * + * { margin-top: 44px; }

.vv-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}
.vv-topic {
  padding-top: 22px;
  border-top: 1px solid #E4E4E4;
  font-size: 14px;
  line-height: 1.7;
  color: #646464;
}
.vv-topic p { margin: 0 0 12px; }
.vv-topic strong { color: #262626; }
.vv-topic-title {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif; font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5;
  color: #A14A4A;
}
.vv-topic ul, .vv-topic ol { margin: 0 0 12px; padding: 0; list-style: none; }
.vv-topic li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.vv-topic li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 2px;
  background: #A14A4A;
}
.vv-topic--full { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.vv-topic--note {
  padding: 26px 30px;
  border-top: 0;
  border-left: 3px solid #A14A4A;
  border-radius: 0 12px 12px 0;
  background: #F8F8F8;
}
.vv-chapter--alt .vv-topic--note { background: #FFFFFF; }
.vv-topic--note h4 {
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #A14A4A;
}
.vv-topic--note ul { margin: 0; padding-left: 0; }
.vv-chapter-cta { margin-top: 10px; }
.vv-services-grid--chapter .vv-service { flex-basis: calc((100% - 56px) / 3); }
.vv-chapter--alt .vv-service { border-color: #FFFFFF; }

@media (max-width: 1024px) {
  .vv-chapter-head { grid-template-columns: 1fr; gap: 16px; }
  .vv-chapter-lead { padding-top: 0; }
  .vv-services-grid--chapter .vv-service { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 767px) {
  .vv-chapter { padding: 64px 16px; }
  .vv-chapter-title { font-size: 28px; }
  .vv-chapter-head { margin-bottom: 30px; }
  .vv-topics { grid-template-columns: 1fr; gap: 22px; }
  .vv-services-grid--chapter .vv-service { flex-basis: 100%; }
}


/* ===================================================================
   Introduction des pages d'expertise : visuel aligné sur le bas du menu latéral
   =================================================================== */
.legacy .vv-intro-main { display: flex !important; flex-direction: column !important; --padding-bottom: 0px; padding-bottom: 0 !important; }
.legacy .vv-intro-main > :last-child { margin-bottom: 0 !important; }
.legacy .vv-intro-main > .vv-intro-visual {
  flex: 1 1 auto !important;
  min-height: 340px !important;
  --margin-bottom: 0px;
  margin-bottom: 0 !important;
  margin-top: 8px;
  border-radius: 18px !important;
  overflow: hidden;
}
.legacy .vv-intro-side { align-self: flex-start; }
.legacy .vv-intro-side > .e-child { border-radius: 18px !important; }

/* Bloc « Pourquoi choisir » : image arrondie, moins d'espace */
.legacy .vv-why { --padding-top: 100px; --padding-bottom: 100px; }
.legacy .vv-why img { border-radius: 18px; }
.legacy .vv-why + .vv-cases, .legacy .vv-chapters + .vv-why { margin-top: 0; }

/* Bande sombre « Nos expertises » : titres de cartes lisibles */
.vv-services .vv-service-title { color: #A14A4A; }

/* Section ajoutée sur la page Mandataire (conteneur sans réglages Elementor propres) */
.legacy .elementor-element-vvm1c { padding: 100px 20px; background: #F8F8F8; }
.legacy .elementor-element-vvm1c > .e-con-inner { max-width: 1200px; margin: 0 auto; display: block; }
.legacy .elementor-element-vvm1c .elementor-heading-title { margin-bottom: 24px; }
.legacy .elementor-element-vvm1c p, .legacy .elementor-element-vvm1c li { font-size: 15px; line-height: 1.75; color: #646464; }
.legacy .elementor-element-vvm1c ol, .legacy .elementor-element-vvm1c ul { margin: 0 0 24px; padding-left: 22px; }
.legacy .elementor-element-vvm1c h3 { margin: 32px 0 14px; }
@media (max-width: 767px) { .legacy .elementor-element-vvm1c { padding: 50px 16px; } }

/* Phrase d'annonce des cartes, placée sous le sous-titre du chapitre */
.legacy .vv-chapter-body > .vv-chapter-intro { margin-top: 0; max-width: 820px; }
.legacy .vv-chapter-intro p { margin: 0; font-size: 17px; line-height: 1.7; }
.legacy .vv-chapter-body > .vv-chapter-intro + * { margin-top: 32px; }

/* ===================================================================
   FAQ : modèle unique = accordéon de la page Fiscalité immobilière
   (940 px centrés, questions encadrées, icône + / − à gauche)
   =================================================================== */
.legacy .e-con:has(> .elementor-widget-n-accordion):not(:where(.vv-article-content *)) {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

/* ===================================================================
   Fonds gris : même rendu que l'accueil (gris #E4E4E4 + motif à 14 %)
   =================================================================== */
.vv-chapter--grey, .vv-page-related, .legacy .elementor-element-vvm1c { background-color: #E4E4E4 !important; }
.vv-chapter--grey, .vv-page-related, .legacy .elementor-element-vvm1c,
.legacy .elementor-element-9365451, .legacy .elementor-element-5b71e22d, .legacy .elementor-element-1bbdeeaa,
.legacy .elementor-element-4ab780ab, .legacy .elementor-element-648b7a73, .legacy .elementor-element-1e620d9e,
.legacy .elementor-element-5c4db596, .legacy .elementor-element-816a3b0, .legacy .elementor-element-7bca51a9,
.legacy .elementor-element-4fd8bb88, .legacy .elementor-element-6e407913 {
  position: relative;
  isolation: isolate;
}
.vv-chapter--grey::after, .vv-page-related::after, .legacy .elementor-element-vvm1c::after,
.legacy .elementor-element-9365451::after, .legacy .elementor-element-5b71e22d::after, .legacy .elementor-element-1bbdeeaa::after,
.legacy .elementor-element-4ab780ab::after, .legacy .elementor-element-648b7a73::after, .legacy .elementor-element-1e620d9e::after,
.legacy .elementor-element-5c4db596::after, .legacy .elementor-element-816a3b0::after, .legacy .elementor-element-7bca51a9::after,
.legacy .elementor-element-4fd8bb88::after, .legacy .elementor-element-6e407913::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/pattern-asset-1.png') center top / 1440px auto repeat;
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
}

/* Un sujet qui contient un tableau occupe toute la largeur : pas de colonne vide à côté */
.vv-topics > .vv-topic:has(table) { grid-column: 1 / -1; }
/* Nombre impair de sujets : le dernier s'étend sur les deux colonnes */
.vv-topics > .vv-topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Tableaux sur fond gris à motif : fond blanc pour la lisibilité */
.vv-chapter--grey table, .legacy [class*="elementor-element-"] table { background-color: #FFFFFF; }
