/* =============================================================
   HOME.CSS — Homepage Solent Avocats V3
   Hero split, manifeste, compteurs, expertises, carte, equipe,
   publications, formations, CTA final
   ============================================================= */

/* ----- SPLIT SECTION (layout 1fr 1fr reutilisable) ----- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
  width: 100%;
}
.split-left--pad,
.split-right--pad {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-left--pad > *,
.split-right--pad > * {
  max-width: 480px;
}
.split-left--pad { align-items: flex-end; }
.split-right--pad { align-items: flex-start; }

/* ----- HERO SPLIT ----- */
.hero { min-height: 85vh; }
.hero .tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-dark);
  margin-bottom: 28px;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 28px;
}
.accent-word { color: var(--color-accent-light); }
.hero .accroche {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-secondary);
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image { overflow: hidden; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ----- COMPTEURS ----- */
.compteurs {
  background: var(--card-bg);
  border-top: 1px solid var(--color-border);
  padding: 40px 5%;
}
.compteurs-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.compteur {
  font-family: var(--font-heading);
  text-align: center;
  padding: 0 24px;
}
.compteur + .compteur { border-left: 1px solid var(--color-border); }
.compteur-num {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-accent-dark);
  line-height: 1;
}
.compteur-label {
  font-size: 0.72rem;
  color: var(--color-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ----- MANIFESTE ----- */
.manifeste { border-top: 1px solid var(--color-border); }
.manifeste .split-left--pad,
.manifeste .split-right--pad { background: var(--color-bg); }
.manifeste h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 32px;
}
.manifeste blockquote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--color-text);
  font-style: italic;
  border-left: 3px solid var(--color-accent-dark);
  padding-left: 24px;
  margin: 0;
}
.manifeste blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 12px;
}
.manifeste .about-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: justify;
}
.manifeste .about-text p:last-of-type { margin-bottom: 0; }
.manifeste .link-arrow { margin-top: 32px; }

/* ----- EXPERTISES ----- */
.expertises {
  position: relative;
  z-index: 3;
}
.expertises-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 64px 5% 32px;
}
.expertises-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.expertises-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.expertises-header .accent-word { color: var(--color-accent-light); }
.expertises-band {
  background: var(--color-primary);
}
.expertises-band-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 10%;
  display: grid;
  grid-template-columns: repeat(6, 1fr) auto;
}
.expertise-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 12px;
  text-decoration: none;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}
.expertise-cell:last-child { border-right: none; }
.expertise-cell:hover { background: rgba(255, 255, 255, 0.06); }
.expertise-cell .exp-num {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.expertise-cell h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}
.expertise-cell:hover h3 { color: var(--color-surface); }
.expertise-cell .exp-sub {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.expertise-cell--cta {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 24px;
  gap: 8px;
}
.exp-cta-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.exp-cta-arrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease, transform 0.2s ease;
}
.expertise-cell--cta:hover .exp-cta-label,
.expertise-cell--cta:hover .exp-cta-arrow { color: var(--color-surface); }
.expertise-cell--cta:hover .exp-cta-arrow { transform: translateX(4px); }

/* ----- CARTE MONDIALE ----- */
.world-map-section {
  position: relative;
  z-index: 2;
  padding: 0;
  border: none;
  margin-top: -160px;
  margin-bottom: -160px;
  pointer-events: none;
}
.world-map-section a,
.world-map-section .world-map-overlay { pointer-events: auto; }
.world-map-container { position: relative; max-width: none; margin: 0; padding: 0; }
.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  position: relative;
  z-index: 1;
}
.world-map-svg .continent { fill: rgba(0, 0, 0, 0.09); stroke: rgba(0, 0, 0, 0.15); stroke-width: 0.6; }
.world-map-svg .intervention { fill: rgba(255, 255, 255, 0.9); stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.8; }
.world-map-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.world-map-overlay .map-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.world-map-overlay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.world-map-overlay .map-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 400px;
  margin: 0 auto 16px;
}
.world-map-overlay .map-update {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
}

/* ----- EQUIPE ----- */
.equipe-section {
  border-top: none;
  padding: 80px 5%;
  position: relative;
  z-index: 3;
}
.equipe-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}
.equipe-tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-secondary);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.equipe-photos {
  display: flex;
  justify-content: center;
  gap: 160px;
  margin-bottom: 32px;
}
.equipe-photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.equipe-photo-item:hover .ep-name { color: var(--color-accent-dark); }
.ep-bubble {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.3s ease;
}
.equipe-photo-item:hover .ep-bubble { filter: grayscale(0.5) contrast(1.05); }
.ep-bubble img,
.ep-bubble svg { width: 100%; height: 100%; object-fit: cover; }
.ep-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.ep-role {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--color-secondary);
}

/* ----- PUBLICATIONS ----- */
.publications {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 80px 5%;
}
.publications-inner { max-width: var(--wide-width); margin: 0 auto; }
.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}
.pub-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pub-header a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.pub-header a:hover { text-decoration: underline; }
.pub-header a .arrow { display: inline-block; transition: transform 0.2s ease; }
.pub-header a:hover .arrow { transform: translateX(4px); }

/* Featured article */
.pub-featured {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin-bottom: 48px;
  text-decoration: none;
  color: inherit;
}
.pub-featured-img { background: var(--color-border); aspect-ratio: 16 / 9; overflow: hidden; }
.pub-featured-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.3s ease;
}
.pub-featured:hover .pub-featured-img img { filter: grayscale(0.5) contrast(1.05); }
.pub-featured-body { display: flex; flex-direction: column; justify-content: center; }
.pub-featured-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}
.pub-featured-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.pub-featured:hover .pub-featured-title { color: var(--color-accent-dark); }
.pub-featured-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
.pub-featured-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--color-secondary);
}
.pub-featured-meta .pub-date,
.pub-grid-item-meta .pub-date {
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* Articles compacts */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.pub-grid-item {
  text-decoration: none;
  color: inherit;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}
.pub-grid-item:hover { border-color: var(--color-accent-dark); }
.pub-grid-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.pub-grid-item:hover .pub-grid-item-title { color: var(--color-accent-dark); }
.pub-grid-item-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--color-secondary);
}

.publications .pillars-section-label { padding-top: 48px; }

/* ----- FORMATIONS (bande dark) ----- */
.formations { background: var(--color-primary); }
.formations .split-left--pad,
.formations .split-right--pad {
  background: var(--color-primary);
  padding: 64px 48px;
}
.formations-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.formations-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.formations-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.formations-stat { font-family: var(--font-heading); }
.formations-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}
.formations-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.formations-right-inner {
  width: 100%;
}
.formations-next-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  max-width: none;
}
.formations-links { display: flex; flex-direction: column; gap: 0; max-width: none; }
.formations-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.formations-link-item:visited { color: rgba(255, 255, 255, 0.65); }
.formations-link-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.formations-link-item:hover { color: var(--color-surface); border-top-color: var(--color-surface); }
.formations-link-item:hover + .formations-link-item { border-top-color: var(--color-surface); }
.formations-link-item:last-child:hover { border-bottom-color: var(--color-surface); }
.formations-link-item .arrow { transition: transform 0.2s ease; }
.formations-link-item:hover .arrow { transform: translateX(4px); }
.fli-title { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 4px; }
.fli-meta { font-size: 0.72rem; }
.fli-meta .fli-date { color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.formations-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.formations-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.formations-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.formations-nav a:visited { color: rgba(255, 255, 255, 0.7); }
.formations-nav a:hover { color: var(--color-surface); }
.formations-nav .arrow { display: inline-block; transition: transform 0.2s ease; }
.formations-nav a:hover .arrow { transform: translateX(4px); }
.formations-qualiopi-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}

/* ----- TÉMOIGNAGES ----- */
.temoignages {
  padding: 80px 5%;
  background: var(--color-bg);
}
.temoignages-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.temoignages-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.temoignages-google-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.temoignages-google-badge:hover {
  opacity: 0.7;
}
.temoignages-google-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.temoignages-rating {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}
.temoignages-stars {
  color: var(--color-stars);
  font-size: 0.88rem;
  letter-spacing: 2px;
}
.temoignages-count {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-secondary);
}
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.temoignage-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.temoignage-card + .temoignage-card {
  border-left: 1px solid var(--color-border);
}
.temoignage-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  flex: 1;
  margin-bottom: 24px;
}
.temoignage-text::before {
  content: "\00AB\00A0";
  color: var(--color-secondary);
}
.temoignage-text::after {
  content: "\00A0\00BB";
  color: var(--color-secondary);
}
.temoignage-author {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cta-reassurance {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-top: 24px;
}
.cta-final-actions { gap: 16px; }

/* ----- RESPONSIVE ----- */

/* Tablette large */
@media (max-width: 1200px) {
  .expertise-cell .exp-sub { display: none; }
}

/* Tablette */
@media (max-width: 1024px) {
  .split-left--pad,
  .split-right--pad { padding: 48px; }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .expertises-band-inner { grid-template-columns: repeat(3, 1fr); padding: 0; }
  .expertise-cell--cta { display: none; }
  .expertise-cell:nth-child(3) { border-right: none; }
  .expertise-cell:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .world-map-section { margin-top: 0; margin-bottom: 0; border-top: 1px solid var(--color-border); }
  .equipe-photos { gap: 60px; }
  .ep-bubble { width: 140px; height: 140px; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .content-pillar { padding: 24px; }
  .formations .split-left--pad,
  .formations .split-right--pad { padding: 40px; }
  .temoignage-card { padding: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
  .split-section { grid-template-columns: 1fr; }
  .split-left--pad,
  .split-right--pad { padding: 48px 5%; align-items: flex-start; }
  .split-left--pad > *,
  .split-right--pad > * { max-width: none; }

  .hero { min-height: auto; }
  .hero .split-left--pad { order: 1; padding: 64px 5% 48px; }
  .hero .hero-image { order: 2; height: 50vw; min-height: 240px; max-height: 360px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .manifeste .split-left--pad { padding-bottom: 0; }

  .world-map-section { padding-top: 32px; }
  .world-map-overlay .map-desc { display: none; }

  .compteurs-inner { flex-wrap: nowrap; gap: 0; justify-content: space-around; }
  .compteur + .compteur { border-left: 1px solid var(--color-border); }
  .compteur--hide-mobile { display: none; }

  .equipe-photos { gap: 40px; }
  .ep-bubble { width: 100px; height: 100px; }

  .pub-featured { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .content-pillars { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .content-pillar { padding: 24px 16px; }
  .pillar-desc { display: none; }

  .formations .split-left--pad,
  .formations .split-right--pad { padding: 48px 5%; }
  .formations-stats { justify-content: center; width: 100%; }

  .temoignages-grid { grid-template-columns: 1fr; }
  .temoignage-card + .temoignage-card { border-left: none; border-top: 1px solid var(--color-border); }
}

/* Phone */
@media (max-width: 480px) {
  .equipe-photos { gap: 16px; }
  .ep-bubble { width: 80px; height: 80px; }
  .expertises-band-inner { grid-template-columns: repeat(2, 1fr); }
  .expertise-cell:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .expertise-cell:nth-child(even) { border-right: none; }
  .expertise-cell:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .expertise-cell .exp-sub { display: none; }
  .content-pillars { grid-template-columns: 1fr; }
  .content-pillar + .content-pillar { border-left: none; border-top: 1px solid var(--color-border); }
  .pillar-desc { display: block; }
  .hero .hero-image { max-height: 240px; }
}

/* ----- Homepage EN : pas de temoignages entre formations et cta-final ----- */
/* La bordure superieure du cta-final-inner colle au bandeau noir des
   formations. On la retire sur ce template specifique. */
.page_en-template-front-page-en .cta-final-inner {
  border-top: none;
}
