/* Durand & Associés Avocats — feuille unique
   Contrat : ../SYSTEME.md (hors dossier déployé) */

:root {
  --nuit: #0B111A;
  --nuit-2: #0F1722;
  --ardoise: #16202D;
  --ardoise-clair: #1C2836;
  --trait: #243141;
  --trait-fort: #344356;
  --blanc: #F2F5F7;
  --gris: #9AA7B4;
  --gris-fonce: #67757F;
  --or: #C6A662;

  --t-hero: clamp(2.5rem, 5.8vw, 5rem);
  --t-h1: clamp(2rem, 4vw, 3.25rem);
  --t-h2: clamp(1.45rem, 2.4vw, 2rem);
  --t-h3: clamp(1.08rem, 1.4vw, 1.3rem);
  --t-corps: clamp(1rem, 0.95vw, 1.09rem);
  --t-petit: 0.87rem;
  --t-label: 0.7rem;

  --e1: 0.5rem;
  --e2: 1rem;
  --e3: 2rem;
  --e4: 3.5rem;
  --e5: 6rem;
  --e6: 9rem;

  --bandeau: 56px;
  --display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --texte: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: var(--bandeau);
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--texte);
  font-size: var(--t-corps);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.16;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--or); color: var(--nuit); }

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

/* ---------- ossature ---------- */

.enveloppe {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.grille {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--e3);
}

.section { padding-block: var(--e5); }

.section--alt { background: var(--nuit-2); }

.section--sombre {
  background: var(--ardoise);
  border-block: 1px solid var(--trait);
}

.titre-section {
  grid-column: 1 / 6;
  font-size: var(--t-h1);
  margin-bottom: var(--e3);
}

.para {
  color: var(--gris);
  margin-bottom: var(--e2);
  max-width: 62ch;
}

.para:last-child { margin-bottom: 0; }

/* ---------- en-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 17, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}

.entete__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e2) var(--e3);
  padding-block: var(--e2);
}

.marque { text-decoration: none; display: block; }

.marque__nom {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.marque__suite {
  display: block;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-top: 3px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
}

.nav__lien {
  text-decoration: none;
  font-size: var(--t-petit);
  color: var(--gris);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav__lien:hover { color: var(--blanc); border-bottom-color: var(--trait-fort); }

.nav__lien.est-courante { color: var(--blanc); border-bottom-color: var(--trait-fort); }

/* ---------- liens ---------- */

.lien {
  display: inline-block;
  text-decoration: none;
  font-size: var(--t-petit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanc);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--trait-fort);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lien:hover { border-bottom-color: var(--blanc); }

.lien--or { color: var(--or); border-bottom-color: var(--or); }

.lien--or:hover { border-bottom-color: var(--or); color: var(--blanc); }

.lien-liste {
  text-decoration: none;
  border-bottom: 1px solid var(--trait-fort);
  transition: border-color 0.25s ease;
}

.lien-liste:hover { border-bottom-color: var(--blanc); }

/* ---------- hero ---------- */

.hero {
  padding-top: var(--e5);
  padding-bottom: var(--e4);
  row-gap: var(--e4);
}

.hero__texte { grid-column: 1 / 9; }

.hero__label {
  display: block;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e3);
}

.hero__titre {
  font-size: var(--t-hero);
  line-height: 1.04;
  max-width: 15ch;
}

.hero__titre::after {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  background: var(--or);
  margin-top: var(--e3);
}

.hero__chapo {
  margin-top: var(--e3);
  max-width: 54ch;
  color: var(--gris);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

.hero__actions {
  margin-top: var(--e4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
}

.hero__meta {
  grid-column: 10 / 13;
  align-self: end;
  border-top: 1px solid var(--trait);
  padding-top: var(--e2);
}

.hero__meta-titre {
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e1);
}

.hero__meta-texte {
  font-size: var(--t-petit);
  color: var(--gris);
  line-height: 1.6;
}

.hero__media { grid-column: 3 / 13; }

/* ---------- média ---------- */

.media { margin: 0; }

.media__vue {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.media__legende {
  margin-top: var(--e2);
  font-size: var(--t-petit);
  color: var(--gris-fonce);
  max-width: 46ch;
}

/* ---------- position ---------- */

.position { row-gap: var(--e3); }

.position__titre {
  grid-column: 1 / 6;
  font-size: var(--t-h1);
}

.position__corps { grid-column: 6 / 12; }

/* ---------- domaines ---------- */

.domaines { row-gap: var(--e5); }

.domaine { border-top: 1px solid var(--trait); padding-top: var(--e2); }

.domaine--a { grid-column: 1 / 6; }
.domaine--b { grid-column: 7 / 13; }
.domaine--c { grid-column: 2 / 7; }
.domaine--d { grid-column: 8 / 12; }

.domaine__num {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e2);
}

.domaine__titre {
  font-size: var(--t-h2);
  margin-bottom: var(--e2);
}

.domaine__texte { color: var(--gris); }

/* ---------- les trois temps ---------- */

.temps { row-gap: var(--e4); }

.temps--1 { grid-column: 1 / 6; grid-row: 1; }
.temps--2 { grid-column: 7 / 12; grid-row: 1; margin-top: var(--e5); }
.temps--3 { grid-column: 3 / 9; grid-row: 2; margin-top: var(--e4); }

.temps__num {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--trait-fort);
  line-height: 1;
  margin-bottom: var(--e2);
}

.temps__titre {
  font-size: var(--t-h2);
  margin-bottom: var(--e2);
}

.temps__texte { color: var(--gris); }

/* ---------- section pleine ---------- */

.plein {
  position: relative;
  min-height: clamp(380px, 56vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--trait);
}

.plein__fond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04) brightness(0.72);
}

.plein__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 26, 0.42) 0%, rgba(11, 17, 26, 0.88) 78%);
}

.plein__contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--e4);
}

.plein__titre {
  grid-column: 1 / 8;
  font-size: var(--t-h1);
}

.plein__texte {
  grid-column: 8 / 13;
  align-self: end;
  color: var(--gris);
  font-size: var(--t-petit);
}

/* ---------- honoraires ---------- */

.honoraires { row-gap: var(--e3); }

.honoraires__titre { grid-column: 1 / 6; font-size: var(--t-h1); }

.honoraires__grille {
  grid-column: 6 / 13;
  display: grid;
  gap: var(--e3);
}

.mode { border-left: 1px solid var(--trait); padding-left: var(--e2); }

.mode__titre { font-size: var(--t-h3); margin-bottom: var(--e1); }

.mode__texte { color: var(--gris); font-size: var(--t-petit); }

.mode__note {
  grid-column: 6 / 12;
  color: var(--gris-fonce);
  font-size: var(--t-petit);
  border-top: 1px solid var(--trait);
  padding-top: var(--e2);
  margin-top: var(--e2);
}

/* ---------- fiches (compétences, méthode) ---------- */

.fiche {
  border-top: 1px solid var(--trait);
  padding-top: var(--e2);
  margin-bottom: var(--e4);
}

.fiche:nth-of-type(odd) { grid-column: 1 / 8; }
.fiche:nth-of-type(even) { grid-column: 6 / 13; }

.fiche__num {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e2);
}

.fiche__titre { font-size: var(--t-h2); margin-bottom: var(--e2); }

.fiche__texte { color: var(--gris); margin-bottom: var(--e2); }

.fiche__liste { margin-bottom: var(--e2); }

.fiche__liste li {
  color: var(--gris);
  font-size: var(--t-petit);
  padding-left: var(--e2);
  border-left: 1px solid var(--trait);
  margin-bottom: var(--e1);
}

.fiche__note {
  font-size: var(--t-petit);
  color: var(--gris-fonce);
  background: var(--ardoise);
  border-left: 1px solid var(--trait-fort);
  padding: var(--e2);
}

/* ---------- deux colonnes dissymétriques ---------- */

.colonnes { row-gap: var(--e3); }

.colonne:first-of-type { grid-column: 1 / 6; }
.colonne:last-of-type { grid-column: 7 / 12; }

.colonne__titre {
  font-size: var(--t-h3);
  margin-bottom: var(--e2);
  padding-bottom: var(--e1);
  border-bottom: 1px solid var(--trait);
}

.colonne__liste li {
  color: var(--gris);
  font-size: var(--t-petit);
  padding-block: var(--e1);
  border-bottom: 1px solid var(--trait);
}

/* ---------- coordonnées ---------- */

.coord { grid-column: 1 / 5; }

.coord__bloc { margin-bottom: var(--e3); }

.coord__label {
  display: block;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e1);
}

.coord__valeur {
  font-family: var(--display);
  font-size: var(--t-h3);
  line-height: 1.5;
  color: var(--blanc);
}

/* ---------- formulaire ---------- */

.formulaire {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e3);
}

.champ { display: block; }

.champ:nth-of-type(3),
.champ:nth-of-type(4) { grid-column: 1 / -1; }

.champ__label {
  display: block;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e1);
}

.champ__saisie,
.champ__zone {
  width: 100%;
  background: var(--ardoise);
  border: 1px solid var(--trait);
  border-radius: 2px;
  color: var(--blanc);
  font-family: var(--texte);
  font-size: var(--t-petit);
  padding: 0.7rem 0.8rem;
}

.champ__zone { min-height: 140px; resize: vertical; }

.champ__saisie:focus,
.champ__zone:focus { border-color: var(--trait-fort); outline: none; }

.bouton {
  grid-column: 1 / -1;
  justify-self: start;
  background: transparent;
  border: 1px solid var(--trait-fort);
  border-radius: 0;
  color: var(--blanc);
  font-family: var(--texte);
  font-size: var(--t-petit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.bouton:hover { background: var(--ardoise-clair); border-color: var(--blanc); }

.mention {
  grid-column: 1 / -1;
  font-size: var(--t-petit);
  color: var(--gris-fonce);
}

/* ---------- pied ---------- */

.pied {
  background: var(--nuit-2);
  border-top: 1px solid var(--trait);
  padding-block: var(--e4) var(--e3);
  row-gap: var(--e3);
}

.pied__bloc:nth-of-type(1) { grid-column: 1 / 5; }
.pied__bloc:nth-of-type(2) { grid-column: 6 / 9; }
.pied__bloc:nth-of-type(3) { grid-column: 10 / 13; }

.pied__titre {
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gris-fonce);
  margin-bottom: var(--e2);
}

.pied__liste li { margin-bottom: var(--e1); font-size: var(--t-petit); color: var(--gris); }

.pied__lien { text-decoration: none; border-bottom: 1px solid transparent; }

.pied__lien:hover { border-bottom-color: var(--trait-fort); }

.pied__mentions {
  grid-column: 1 / 10;
  margin-top: var(--e3);
  padding-top: var(--e2);
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
  color: var(--gris-fonce);
}

/* ---------- DISPOSITIF SIGNATURE : LA BALANCE ---------- */

.balance {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--bandeau);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(11, 17, 26, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--trait);
}

.balance__etat {
  position: relative;
  flex: 0 0 auto;
  min-width: 8.5rem;
  height: 1.4rem;
}

.balance__mot {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-petit);
  color: var(--gris-fonce);
  opacity: 0;
  transition: opacity 0.45s ease, color 0.45s ease;
}

.balance__mot.est-actif { opacity: 1; color: var(--gris); }

.balance__fleau {
  flex: 1 1 auto;
  max-width: 380px;
  height: 40px;
  overflow: visible;
}

.balance__mat {
  stroke: var(--trait);
  stroke-width: 1;
}

.balance__trait,
.balance__crochet {
  stroke: var(--gris-fonce);
  stroke-width: 1;
  transition: stroke 0.6s ease;
}

.balance__crochet { stroke: var(--trait-fort); }

.balance__noeud {
  fill: var(--gris-fonce);
  transition: fill 0.6s ease;
}

.balance__fleau.est-stable .balance__trait { stroke: var(--or); }

.balance__fleau.est-stable .balance__noeud { fill: var(--or); }

/* ---------- révélations ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .js [data-reveal].est-ouvert {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal-delai="1"] { transition-delay: 0.12s; }
  .js [data-reveal-delai="2"] { transition-delay: 0.24s; }
  .js [data-reveal-delai="3"] { transition-delay: 0.36s; }

  .js .media__vue {
    clip-path: inset(0 0 16% 0);
    transition: clip-path 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .js [data-reveal].est-ouvert .media__vue { clip-path: inset(0 0 0 0); }
}

/* ---------- adaptations ---------- */

@media (max-width: 1000px) {
  :root { --e5: 4rem; --e6: 5.5rem; }

  .titre-section,
  .hero__texte,
  .hero__meta,
  .hero__media,
  .position__titre,
  .position__corps,
  .domaine,
  .plein__titre,
  .plein__texte,
  .honoraires__titre,
  .honoraires__grille,
  .mode__note,
  .fiche,
  .colonne,
  .coord,
  .formulaire,
  .pied__bloc,
  .pied__mentions { grid-column: 1 / -1; }

  .temps--1,
  .temps--2,
  .temps--3 {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
  }

  /* Ces sélecteurs doivent égaler la spécificité des placements de bureau,
     sinon les fiches et les colonnes gardent leur gabarit à 12 colonnes. */
  .fiche:nth-of-type(odd),
  .fiche:nth-of-type(even),
  .colonne:first-of-type,
  .colonne:last-of-type { grid-column: 1 / -1; }

  .fiche { margin-bottom: var(--e3); }

  .pied__bloc:nth-of-type(1),
  .pied__bloc:nth-of-type(2),
  .pied__bloc:nth-of-type(3) { grid-column: 1 / -1; }

  .hero__meta { margin-top: var(--e2); }
}

@media (max-width: 640px) {
  :root { --bandeau: 50px; }

  .entete__inner { flex-direction: column; align-items: flex-start; }

  .nav { gap: var(--e2); }

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

  .champ:nth-of-type(3),
  .champ:nth-of-type(4) { grid-column: 1 / -1; }

  .balance__etat { min-width: 7rem; }

  .balance__fleau { max-width: 190px; height: 34px; }

  .hero__titre { max-width: none; }
}
