/* ==========================================================================
   ACTAH & Associés — Styles
   Palette : bleu nuit encre / sable pierre / accent terracotta
   ========================================================================== */

:root {
  --encre: #1A2332;          /* bleu nuit encre — dominante */
  --encre-profond: #121A26;  /* variante plus sombre */
  --encre-surface: #232F42;  /* surfaces sur fond sombre */
  --sable: #EDE6DA;          /* sable / pierre chaude */
  --sable-doux: #F6F1E8;     /* fond clair des sections */
  --terracotta: #C4622D;     /* accent */
  --terracotta-clair: #D97B45;

  --texte-sombre: #232B38;   /* corps de texte sur fond clair */
  --texte-clair: rgba(237, 230, 218, 0.82); /* corps de texte sur fond sombre */

  --font-titre: "Cormorant Garamond", Georgia, serif;
  --font-corps: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 72rem;
  --radius: 0.75rem;
  --transition: all 0.3s ease;
}

/* Reset minimal
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Défilement natif, sans lissage : ni Lenis, ni scroll-behavior smooth */

body {
  font-family: var(--font-corps);
  background-color: var(--sable-doux);
  color: var(--texte-sombre);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

em {
  font-style: italic;
}

.amp {
  font-style: italic;
  color: var(--terracotta-clair);
}

/* Conteneur & sections
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.section-dark {
  background-color: var(--encre);
  color: var(--texte-clair);
}

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.section-dark .section-eyebrow {
  color: var(--terracotta-clair);
}

.section-title {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  color: var(--encre);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-dark .section-title {
  color: var(--sable);
}

.section-title em {
  color: var(--terracotta);
}

.section-dark .section-title em {
  color: var(--terracotta-clair);
}

/* Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 2.5rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--terracotta-clair);
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(196, 98, 45, 0.35);
}

.btn-ghost {
  color: var(--sable);
  border: 1px solid rgba(237, 230, 218, 0.35);
}

.btn-ghost:hover {
  border-color: var(--terracotta-clair);
  color: var(--terracotta-clair);
  transform: scale(1.02);
}

.btn-outline {
  color: var(--encre);
  border: 1px solid rgba(26, 35, 50, 0.3);
}

.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: scale(1.02);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  /* Fade dégradé plutôt qu'un fond plein — safe area mobile incluse */
  background: linear-gradient(to bottom, rgba(18, 26, 38, 0.92) 0%, rgba(18, 26, 38, 0.55) 60%, transparent 100%);
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s ease;
}

/* Une fois scrollé : fond quasi opaque + ombre, pour rester lisible
   sur les sections claires (le contenu ne transparaît plus sous le logo) */
.nav.scrolled {
  background: rgba(18, 26, 38, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(10, 15, 23, 0.35);
}

/* IMPORTANT : backdrop-filter fait de .nav le bloc conteneur de ses enfants
   position:fixed. Le menu plein écran serait alors confiné à la hauteur de la
   barre. On le neutralise dès que le menu est ouvert (le fond opaque à 97 %
   rend le flou superflu). */
body.menu-open .nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-titre);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sable);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.8vw, 1.75rem);
}

.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sable);
  text-decoration: none;
  white-space: nowrap;
}

/* Underline animé de gauche à droite */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background-color: var(--terracotta-clair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--terracotta-clair);
}

.nav-cta {
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(237, 230, 218, 0.35);
  border-radius: 2rem;
  transition: var(--transition);
}

.nav-cta:hover {
  border-color: var(--terracotta-clair);
  color: var(--terracotta-clair);
}

/* Burger mobile — cible tactile ≥ 44 px (Apple HIG).
   position/z-index : le maintient au-dessus du menu plein écran ouvert,
   sans quoi la croix de fermeture serait recouverte et inopérante. */
.nav-burger {
  display: none;
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 48px;
  min-height: 48px;
  margin-right: -0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  width: 26px;
  height: 2px;
  background-color: var(--sable);
  transition: var(--transition);
}

.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);
}

/* ==========================================================================
   Hero vidéo
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--encre-profond);
}

.hero-media {
  position: absolute;
  inset: 0;
}

/* Visible d'emblée : le poster (première image du film) s'affiche
   instantanément, la lecture prend le relais sans transition visible.
   Si le fichier échoue, le JS retire l'élément et le fond animé apparaît.
   z-index impératif : la vidéo DOIT passer au-dessus du fond de secours
   (.hero-fallback la suit dans le DOM et la recouvrirait sinon). */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Fond de secours : dégradé animé + grain, si la vidéo est absente */
.hero-fallback {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(196, 98, 45, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 65%, rgba(60, 84, 120, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(35, 47, 66, 0.9) 0%, transparent 70%),
    linear-gradient(160deg, #1E2A3D 0%, var(--encre-profond) 60%, #0D141E 100%);
  animation: fallbackDrift 24s ease-in-out infinite alternate;
}

@keyframes fallbackDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3%, -3%) scale(1.08); }
}

/* Grain subtil par-dessus le fond sombre */
.hero-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Voile sombre pour la lisibilité du texte sur la vidéo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(18, 26, 38, 0.55) 0%, rgba(18, 26, 38, 0.35) 45%, rgba(18, 26, 38, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  padding-inline: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.02;
  color: var(--sable);
}

.hero-line {
  display: block;
}

.hero-line.accent {
  font-style: italic;
  color: var(--terracotta-clair);
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(237, 230, 218, 0.8);
  max-width: 36rem;
  margin: 1.75rem auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Flèche scroll animée — dégagée de la barre home iOS (safe area) */
.hero-scroll {
  position: absolute;
  bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 1rem;
}

.hero-scroll-arrow {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(237, 230, 218, 0.7);
  border-bottom: 2px solid rgba(237, 230, 218, 0.7);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.7; }
  50%      { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ==========================================================================
   Le cabinet
   ========================================================================== */
.cabinet-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.cabinet-text .lead {
  font-family: var(--font-titre);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--encre);
  margin-bottom: 1.5rem;
}

.cabinet-text p:not(.lead) {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  color: rgba(35, 43, 56, 0.85);
}

/* Panneau unique sombre, façon éditoriale : chiffres en vis-à-vis
   séparés par des filets fins, écho du hero sur fond clair */
.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: linear-gradient(150deg, var(--encre-surface) 0%, var(--encre) 70%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(26, 35, 50, 0.22);
}

.stat {
  padding: 2rem 1.5rem;
}

/* Filets de séparation internes (2 colonnes × 2 lignes) */
.stat:nth-child(even) {
  border-left: 1px solid rgba(237, 230, 218, 0.12);
}

.stat:nth-child(n + 3) {
  border-top: 1px solid rgba(237, 230, 218, 0.12);
}

.stat-number {
  display: block;
  font-family: var(--font-titre);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--terracotta-clair);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  color: rgba(237, 230, 218, 0.65);
}

.cabinet-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Pictogrammes filaires : cohérents, légers, couleur accent */
.picto {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.picto-inline {
  width: 21px;
  height: 21px;
  stroke: var(--terracotta-clair);
}

.value-card {
  border-top: 2px solid var(--terracotta);
  padding-top: 1.25rem;
}

.value-card .picto {
  margin-bottom: 0.85rem;
}

.value-card h3 {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9875rem;
  color: rgba(35, 43, 56, 0.75);
}

/* ==========================================================================
   L'équipe
   ========================================================================== */
/* Photo de groupe : bannière large au-dessus des fiches associés */
.equipe-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.equipe-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.avocat-card {
  background-color: var(--encre-surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.avocat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Portrait en tête de fiche. Les deux photos sont fournies carrées et
   cadrées à l'identique : affichées telles quelles, sans rognage. */
.avocat-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.avocat-infos {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.avocat-nom {
  font-family: var(--font-titre);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--sable);
}

.avocat-role {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  margin: 0.4rem 0 1.25rem;
}

.avocat-bio {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.avocat-domaines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.avocat-domaines li {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(237, 230, 218, 0.25);
  border-radius: 2rem;
  color: rgba(237, 230, 218, 0.85);
}

/* Juriste : fiche démarquée, à mi-chemin entre associés et assistantes */
.juriste-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 2rem;
  background-color: var(--encre-surface);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.juriste-card .collab-avatar {
  margin: 0;
  flex-shrink: 0;
}

.juriste-infos .collab-bio {
  max-width: 34rem;
  margin-top: 0.6rem;
}

.juriste-diplome {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  margin-top: 0.5rem;
}

.juriste-detail {
  font-style: italic;
  color: rgba(237, 230, 218, 0.45);
}

/* Panneau dépliable : photo de groupe + collaborateurs, masqués par défaut */
.equipe-toggle-wrap {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.equipe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Neutralise les styles natifs de <button> (fond gris/blanc, police système) */
  background: transparent;
  font-family: var(--font-corps);
  cursor: pointer;
}

.equipe-toggle .chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease;
}

.equipe-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Déploiement fluide via grid-template-rows (0fr -> 1fr) */
.equipe-plus {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s ease;
}

.equipe-plus.open {
  grid-template-rows: 1fr;
}

.equipe-plus-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.equipe-plus.open .equipe-plus-inner {
  opacity: 1;
  transform: translateY(0);
}

.equipe-plus .equipe-photo {
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

/* Collaborateurs : fiches discrètes, en retrait des deux associés */
.equipe-sous-titre {
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(237, 230, 218, 0.75);
  text-align: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.collab-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(237, 230, 218, 0.12);
  border-radius: var(--radius);
}

.collab-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: rgba(237, 230, 218, 0.5);
  background-color: rgba(237, 230, 218, 0.08);
  border: 2px solid rgba(217, 123, 69, 0.45);
}

.collab-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.collab-nom {
  font-weight: 600;
  font-size: 0.9875rem;
  color: rgba(237, 230, 218, 0.9);
}

.collab-role {
  font-size: 0.875rem;
  color: rgba(237, 230, 218, 0.55);
  margin-top: 0.2rem;
}

.collab-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  margin-top: 0.6rem;
}

.collab-bio {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(237, 230, 218, 0.65);
  margin-top: 0.75rem;
}

/* ==========================================================================
   Domaines de compétence
   ========================================================================== */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.competence-card {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
  transition: var(--transition);
  overflow: hidden;
}

.competence-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(26, 35, 50, 0.14);
}

/* Visuel plein cadre en tête de carte, numéro en médaillon par-dessus */
.competence-visuel {
  position: relative;
}

.competence-visuel img {
  width: 100%;
  height: auto; /* neutralise l'attribut height, sinon prioritaire */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.competence-card:hover .competence-visuel img {
  transform: scale(1.04);
}

.competence-num {
  position: absolute;
  bottom: -1rem;
  right: 1.25rem;
  font-family: var(--font-titre);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sable);
  background-color: var(--terracotta);
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(196, 98, 45, 0.35);
}

.competence-body {
  padding: 1.75rem 1.85rem 2rem;
}

.competence-card h3 {
  font-family: var(--font-titre);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 0.6rem;
}

.competence-body > p {
  font-size: 0.9875rem;
  color: rgba(35, 43, 56, 0.75);
  margin-bottom: 1.35rem;
}

.competence-card ul li {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.45rem 0 0.45rem 1.35rem;
  border-bottom: 1px solid rgba(26, 35, 50, 0.07);
}

.competence-card ul li:last-child {
  border-bottom: none;
}

.competence-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 1px;
  background-color: var(--terracotta);
}

.competences-plus {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  color: rgba(35, 43, 56, 0.75);
  text-align: center;
}

/* ==========================================================================
   Cas pratiques
   ========================================================================== */
.cas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cas-card {
  background-color: var(--encre-surface);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 1.85rem;
  transition: var(--transition);
}

.cas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.cas-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  margin-bottom: 0.85rem;
}

.cas-card h3 {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sable);
  margin-bottom: 0.85rem;
}

.cas-contexte {
  font-size: 0.9875rem;
  margin-bottom: 0.85rem;
}

.cas-resultat {
  font-size: 0.9875rem;
  color: rgba(237, 230, 218, 0.7);
}

.cas-resultat strong {
  color: var(--terracotta-clair);
}

.cas-disclaimer {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: rgba(237, 230, 218, 0.5);
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

/* ==========================================================================
   Actualités
   ========================================================================== */
.actus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.actu-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
  transition: var(--transition);
}

.actu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(26, 35, 50, 0.14);
}

.actu-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
}

.actu-card h3 {
  font-family: var(--font-titre);
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--encre);
  margin-bottom: 0.75rem;
}

.actu-extrait {
  font-size: 0.9375rem;
  color: rgba(35, 43, 56, 0.7);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.actu-lien {
  position: relative;
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--terracotta);
}

.actu-lien::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background-color: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.actu-card:hover .actu-lien::after {
  transform: scaleX(1);
}

.actus-more {
  margin-top: 2.75rem;
  text-align: center;
}

/* ==========================================================================
   Questions fréquentes (accordéon natif <details>)
   ========================================================================== */
.faq-list {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-titre);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--encre);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Chevron « + » qui pivote à l'ouverture */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-reponse {
  padding: 0 0 1.5rem;
}

.faq-reponse p {
  font-size: 1.0625rem;
  color: rgba(35, 43, 56, 0.85);
  max-width: 44rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-cta {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sable);
  text-decoration: none;
  transition: var(--transition);
}

.contact-phone:hover {
  color: var(--terracotta-clair);
}

/* E-mail commun du cabinet, sous le numéro */
.contact-mail-ligne {
  margin-top: 0.85rem;
}

.mail-protege {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  color: rgba(237, 230, 218, 0.8);
  text-decoration: none;
  word-break: break-word;
  transition: var(--transition);
}

.mail-protege .picto {
  width: 20px;
  height: 20px;
  stroke: var(--terracotta-clair);
}

.mail-protege:hover {
  color: var(--terracotta-clair);
}

/* Modalités de consultation : rangée de pictos + libellés courts */
.contact-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.25rem;
  margin-top: 1.5rem;
}

.contact-badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: rgba(237, 230, 218, 0.75);
}

.contact-badges .picto {
  width: 24px;
  height: 24px;
  stroke: var(--terracotta-clair);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bureau-card {
  background-color: var(--encre-surface);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
}

.bureau-card h3 {
  font-family: var(--font-titre);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--sable);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bureau-badge {
  font-family: var(--font-corps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  border: 1px solid rgba(217, 123, 69, 0.5);
  border-radius: 2rem;
  padding: 0.2rem 0.7rem;
}

.bureau-adresse {
  font-size: 1rem;
  margin: 0.75rem 0 1.35rem;
}

.bureau-map {
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
  /* Ton sépia léger pour intégrer la carte à la palette */
  filter: saturate(0.75);
}

.bureau-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

.bureau-itineraire {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--terracotta-clair);
  text-decoration: none;
  /* Cible tactile confortable */
  padding: 0.5rem 0;
}

.bureau-itineraire:hover {
  color: var(--sable);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--encre-profond);
  color: rgba(237, 230, 218, 0.6);
  padding-block: 3.5rem 2.5rem;
}

/* Trois colonnes équilibrées : marque / coordonnées (centrées) / légal (à droite) */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.footer-infos {
  text-align: center;
}

.footer-legal {
  text-align: right;
}

/* Barre inférieure : copyright à gauche, signature à droite, filet de séparation */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 230, 218, 0.12);
}

.footer-logo {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sable);
}

.footer-baseline {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.0625rem;
  color: rgba(237, 230, 218, 0.5);
  margin-top: 0.25rem;
}

.footer-infos p,
.footer-legal p {
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.footer-infos a {
  color: var(--sable);
  text-decoration: none;
}

.footer-infos a:hover {
  color: var(--terracotta-clair);
}

.footer-legal a {
  color: rgba(237, 230, 218, 0.6);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--terracotta-clair);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(237, 230, 218, 0.4);
  margin-bottom: 0;
}

/* Signature Paper34 : « Site créé par » + logo blanc, lien vers paper34.fr */
.footer-paper34 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(237, 230, 218, 0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.footer-paper34 img {
  height: 15px;
  width: auto;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.footer-paper34:hover {
  color: var(--sable);
}

.footer-paper34:hover img {
  opacity: 1;
}

/* ==========================================================================
   Pages Actualités (blog)
   ========================================================================== */
.page-header {
  background-color: var(--encre);
  color: var(--sable);
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.page-header .section-eyebrow {
  color: var(--terracotta-clair);
}

.page-header h1 {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.1;
}

.page-header .page-intro {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(237, 230, 218, 0.75);
  max-width: 42rem;
  margin-top: 1.25rem;
}

/* Article de blog */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(237, 230, 218, 0.65);
}

.article-body {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.article-body h2 {
  font-family: var(--font-titre);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre);
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--encre);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  color: rgba(35, 43, 56, 0.88);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
  font-size: 1.0625rem;
  color: rgba(35, 43, 56, 0.88);
}

.article-body ul {
  list-style: disc;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--encre);
}

.article-encart {
  background-color: #fff;
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

.article-encart p {
  margin-bottom: 0;
  font-size: 1rem;
}


/* Encadré « L'essentiel » : réponse directe en tête d'article, pensé pour la
   lecture rapide et la citation par les moteurs de recherche et IA */
.article-essentiel {
  background-color: #fff;
  border-left: 3px solid var(--encre);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

.essentiel-titre {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.article-essentiel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.article-essentiel li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.article-essentiel li:last-child {
  margin-bottom: 0;
}

.article-cta {
  text-align: center;
  background-color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta .btn {
  margin-top: 0.75rem;
}

.article-disclaimer {
  font-size: 0.875rem;
  color: rgba(35, 43, 56, 0.55);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
}

/* Liste d'articles (page index actualités) */
.actus-listing {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.actus-listing .actus-grid {
  grid-template-columns: repeat(3, 1fr);
}

.actu-date {
  font-size: 0.8125rem;
  color: rgba(35, 43, 56, 0.5);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Ventes immobilières aux enchères
   ========================================================================== */
.ventes-listing {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.vente-card {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  background-color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

/* Bandeau de statut provisoire, à retirer avec les vraies annonces */
.vente-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: rgba(18, 26, 38, 0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
}

.vente-visuel img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.vente-body {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.vente-statut {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.vente-body h2 {
  font-family: var(--font-titre);
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 0.85rem;
}

.vente-description {
  font-size: 1.0625rem;
  color: rgba(35, 43, 56, 0.85);
  margin-bottom: 1.35rem;
}

.vente-meta {
  border-top: 1px solid rgba(26, 35, 50, 0.1);
  padding-top: 1.25rem;
}

.vente-meta li {
  font-size: 1rem;
  padding: 0.3rem 0;
  color: rgba(35, 43, 56, 0.85);
}

.vente-docs {
  margin-top: 1.5rem;
  background-color: var(--sable-doux);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
}

.vente-docs-titre {
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 0.35rem;
}

.vente-docs-note {
  font-size: 0.9375rem;
  color: rgba(35, 43, 56, 0.7);
}

/* Liens de téléchargement des documents (cahier des ventes, diagnostics, photos) */
.vente-docs a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  margin: 0.35rem 1.25rem 0.35rem 0;
}

.vente-docs a:hover {
  text-decoration: underline;
}

.ventes-note {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  font-size: 0.9375rem;
  color: rgba(35, 43, 56, 0.65);
  text-align: center;
}

.ventes-note a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}

/* Volet acheteurs : plateformes de référence + notice officielle */
.ventes-acheteurs {
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background-color: var(--encre);
  border-radius: var(--radius);
  text-align: center;
  color: var(--texte-clair);
}

.ventes-acheteurs h2 {
  font-family: var(--font-titre);
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 600;
  color: var(--sable);
  margin-bottom: 0.85rem;
}

.ventes-acheteurs > p {
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

.ventes-plateformes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.ventes-plateformes a {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sable);
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(237, 230, 218, 0.3);
  border-radius: 2rem;
  transition: var(--transition);
}

.ventes-plateformes a:hover {
  border-color: var(--terracotta-clair);
  color: var(--terracotta-clair);
}

.ventes-notice-btn {
  font-size: 0.9375rem;
}

/* Guide pratique de l'achat aux enchères */
.ventes-guide {
  max-width: 46rem;
  margin: clamp(3.5rem, 7vw, 5rem) auto 0;
}

.ventes-guide h2 {
  font-family: var(--font-titre);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 1.75rem;
  text-align: center;
}

.guide-etapes {
  list-style: none;
  counter-reset: etape;
}

.guide-etapes > li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}

/* Filet vertical reliant les étapes */
.guide-etapes > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.6rem;
  bottom: 0.35rem;
  width: 1px;
  background-color: rgba(196, 98, 45, 0.3);
}

/* Numéro en médaillon */
.guide-etapes > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titre);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sable);
  background-color: var(--terracotta);
  border-radius: 50%;
}

.guide-etapes h3 {
  font-family: var(--font-titre);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 0.4rem;
  padding-top: 0.2rem;
}

.guide-etapes p {
  font-size: 1rem;
  color: rgba(35, 43, 56, 0.8);
}

.ventes-guide-note {
  font-size: 0.9375rem;
  color: rgba(35, 43, 56, 0.65);
  text-align: center;
  margin-top: 1rem;
}

.ventes-guide-note a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
   États initiaux d'animation — appliqués uniquement si JS actif
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .competences-grid,
  .actus-grid,
  .actus-listing .actus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cabinet-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Navigation : bascule burger dès 1100 px.
   Avec 7 entrées + logo + téléphone, la barre complète n'est lisible que sur
   les vrais écrans desktop ; tablettes et petits laptops passent au menu
   plein écran, plus confortable.
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background-color: var(--encre-profond); /* opaque : rien ne transparaît */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  /* Page verrouillée quand le menu plein écran est ouvert. Le body est figé
     (et non simplement overflow:hidden, sans effet puisque c'est <html> qui
     défile) ; le JS mémorise et restaure la position à la fermeture. */
  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.375rem;
  }
}

@media (max-width: 768px) {
  .equipe-grid,
  .cas-grid,
  .contact-grid,
  .competences-grid,
  .actus-grid,
  .actus-listing .actus-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-values {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Collaboratrices en 1 colonne sur mobile (les bios ont besoin de largeur),
     fiche juriste empilée, photo d'équipe plus haute */
  .collab-grid {
    grid-template-columns: 1fr;
  }

  .juriste-card {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--terracotta);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .equipe-photo img {
    aspect-ratio: 3 / 2;
  }

  .cabinet-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  /* Barre inférieure empilée et centrée sur mobile */
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 20rem;
  }
}

/* ==========================================================================
   Accessibilité — animations réduites
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
