:root {
  --nuit: #1B2A4A;
  --or: #B08D57;
  --encre: #1F2733;
  --gris: #6b7280;
  --bord: #dfe3e8;
  --fond: #f6f7f9;
  --carte: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: 'Times New Roman', Georgia, serif; line-height: 1.55;
}
a { color: var(--nuit); }

.entete {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; background: var(--nuit); border-bottom: 3px solid var(--or);
}
.marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.marque .logo { width: 42px; height: 42px; display: block; flex-shrink: 0; }
.marque .nom { font-weight: 700; letter-spacing: .06em; font-size: 1.25rem; line-height: 1.05; }
.marque .nom small { display: block; font-size: .72rem; letter-spacing: .18em;
  color: rgba(255,255,255,.72); font-weight: 400; margin-top: 2px; }
.entete nav { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.entete .qui { color: rgba(255,255,255,.72); }
.entete nav a { color: #fff; }

main { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.entete-page h1 { margin: 0 0 .2rem; }
.sous-titre { color: var(--gris); margin: 0 0 1.5rem; }

h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; color: var(--nuit); border-bottom: 2px solid var(--or);
  padding-bottom: .3rem; margin: 2rem 0 1rem; }

.carte { background: var(--carte); border: 1px solid var(--bord);
  border-radius: 10px; padding: 1.5rem; }
.carte.etroite { max-width: 420px; margin: 3rem auto; }
.intro { color: var(--gris); }

label { display: block; margin: 1rem 0 .3rem; font-size: .9rem; font-weight: 600; }
input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--bord);
  border-radius: 7px; font-size: 1rem; font-family: inherit; background: #fff; }
input:focus { outline: 2px solid var(--nuit); outline-offset: 1px; }
button, .bouton {
  display: inline-block; margin-top: 1.2rem; padding: .6rem 1.1rem;
  background: var(--nuit); color: #fff; border: none; border-radius: 7px;
  font-size: 1rem; font-family: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .bouton:hover { filter: brightness(1.08); }
.aide { font-size: .85rem; color: var(--gris); margin-top: 1rem; }
.mono { font-family: ui-monospace, monospace; font-size: .85em; }

.message { padding: .7rem 1rem; border-radius: 7px; margin: 1rem 0; font-size: .92rem; }
.message.erreur { background: #fdecea; color: #8a1c14; border-left: 4px solid #c0392b; }
.message.info { background: #eef3f8; color: #2c3e50; border-left: 4px solid #3a6ea5; }

.domaine .dossiers { display: grid; gap: .8rem; }
.dossier {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 9px;
  padding: 1rem 1.2rem;
}
.dossier.archive { opacity: .7; }
.dossier .titre { font-weight: 600; }
.dossier .meta { font-size: .85rem; color: var(--gris); margin-top: .2rem; }
.dossier .action { flex-shrink: 0; }
.dossier .bouton { margin: 0; font-size: .85rem; padding: .45rem .8rem; }
.pastille { background: var(--bord); color: var(--gris); border-radius: 20px;
  padding: .05rem .5rem; font-size: .78rem; }

.pied { text-align: center; color: var(--gris); font-size: .82rem;
  padding: 2rem 1rem; border-top: 1px solid var(--bord); }
.pied-cabinet { line-height: 1.75; }
.pied-nom { font-weight: 700; letter-spacing: .05em; color: var(--nuit); }
.pied a { color: var(--gris); }
.hero-coord { color: var(--gris); font-size: .95rem; margin: -0.8rem auto 1.6rem; }
.hero-coord a { color: var(--gris); }

/* En-tête « papier à en-tête » : les deux avocats de part et d'autre, le nom du
   cabinet centré dessous, puis les coordonnées. */
.entete-cabinet { text-align: center; }
/* Ordre : nom du cabinet en haut ; les deux avocats en dessous, cadrés EXACTEMENT
   sur la largeur de « CABINET AMIEL » ; puis la spécialité ; puis les coordonnées.
   `.axe-texte` est une copie invisible du titre : elle fixe l'axe (même largeur,
   centrée comme le titre). Chaque nom est positionné en absolu sur un bord de cet
   axe, donc l'alignement (L sous C, M sous L) tient quelles que soient les
   longueurs de noms. */
.ligne-avocats { position: relative; text-align: center; margin: .5rem auto 0;
  min-height: 3.5rem; }   /* réserve la hauteur : les noms sont en position absolue */
.axe-cabinet { position: relative; display: inline-block; }
.axe-texte { visibility: hidden; font-size: 2.1rem; letter-spacing: .09em;
  font-weight: 700; white-space: nowrap; line-height: 0; }
.nom-g, .nom-d { position: absolute; top: 0; white-space: nowrap; }
.nom-g { right: 100%; text-align: right; }  /* bord droit (…AMIEL) sous le C */
.nom-d { left: 100%; }                       /* bord gauche (Maître…) sous le L */
.nom-g .nom, .nom-d { font-weight: 700; color: var(--nuit); font-size: 1.32rem;
  line-height: 1.25; }
.nom-g .nom { display: block; }
.nom-g .qualite { display: block; color: var(--gris); font-size: .92rem;
  margin-top: .1rem; }
/* `.hero h1` (0-1-1) l'emporterait sur une simple classe : on qualifie. */
.hero h1.cabinet-nom { color: var(--nuit); font-size: 2.1rem; letter-spacing: .09em;
  margin: 0 0 .9rem; }
.cabinet-coord { color: var(--gris); font-size: .95rem; margin: 0 0 1.8rem; }
.cabinet-coord a { color: var(--gris); }

@media (max-width: 720px) {
  /* Trop étroit pour cadrer les noms sur le titre : on neutralise l'axe et on
     empile les deux noms (+ la spécialité), centrés. */
  .axe-texte { display: none; }
  .axe-cabinet { display: block; }
  .ligne-avocats { min-height: 0; }
  .nom-g, .nom-d { position: static; display: block; text-align: center;
    white-space: normal; }
  .nom-g { margin-bottom: .4rem; }
  .hero h1.cabinet-nom { font-size: 1.7rem; }
}

.accueil-titre { color: var(--nuit); font-size: 1.7rem; text-align: center; margin: .5rem 0 .2rem; }
.accueil-sous { color: var(--gris); text-align: center; margin: 0 0 2rem; }
.deux-espaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; max-width: 760px; margin: 0 auto; align-items: stretch; }
.espace { display: flex; flex-direction: column; }
.espace h2 { margin-top: 0; }
.espace .aide { margin-top: auto; padding-top: 1rem; }

.outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem; }
.outil { display: flex; flex-direction: column; background: var(--carte);
  border: 0.5px solid var(--bord); border-radius: 10px; padding: 1.1rem 1.25rem;
  text-decoration: none; color: inherit; transition: border-color .15s; }
.outil:hover { border-color: var(--or); }
.outil-nom { color: var(--nuit); font-weight: 500; font-size: 1.05rem; }
.outil-desc { color: var(--gris); font-size: .88rem; margin: .4rem 0 .8rem; line-height: 1.45; }
.outil-lien { color: var(--or); font-size: .85rem; font-weight: 500; margin-top: auto; }
.outil-lien.discret { color: var(--gris); font-weight: 400; }
.outil.interne { background: #fbfbfc; }

.deuxfa-choix { display: flex; flex-direction: column; gap: .7rem; margin: 1.2rem 0; }
.deuxfa-choix .bouton { text-align: center; }
.bouton.discret { background: transparent; color: var(--nuit); border: 1.5px solid var(--nuit); }
.qr { text-align: center; margin: 1.2rem 0; }
.qr svg { width: 190px; height: 190px; }

.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { color: var(--nuit); }
.legal h2 { color: var(--nuit); font-size: 1.15rem; border-bottom: 1px solid var(--bord);
  padding-bottom: .25rem; margin-top: 1.8rem; }
.legal p, .legal li { line-height: 1.6; }
.legal .maj { color: var(--gris); font-size: .9rem; }
.legal .retour { margin-top: 2rem; }
.pied-liens { margin-top: .6rem; }
.pied-liens a { color: var(--gris); }
.pied-vieprivee { margin-top: .5rem; font-size: .78rem; color: #9aa1ab; }

.hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.hero h1 { color: var(--nuit); font-size: 2rem; margin: 0 0 .6rem; }
.hero-sous { color: var(--gris); max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.section-titre { text-align: center; color: var(--nuit); border: none; margin: 2.5rem 0 1.2rem; }
.poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pole { background: var(--carte); border: 0.5px solid var(--bord); border-top: 3px solid var(--or);
  border-radius: 0 0 10px 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.pole h3 { color: var(--nuit); margin: 0 0 .5rem; font-size: 1.1rem; }
.pole p { color: #4a4a4a; font-size: .92rem; line-height: 1.5; flex: 1; margin: 0; }
.pole-liens { margin-top: 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.pole-liens .bouton { margin: 0; font-size: .85rem; padding: .5rem .9rem; }
.deja-client { text-align: center; background: var(--carte); border: 0.5px solid var(--bord);
  border-radius: 12px; padding: 2rem 1rem; margin: 2.5rem 0 1rem; }
.deja-client h2 { border: none; color: var(--nuit); margin: 0 0 .4rem; }
.deja-client p { color: var(--gris); margin: 0 0 1.2rem; }

@media (max-width: 560px) {
  .dossier { flex-direction: column; align-items: flex-start; }
  .dossier .action { align-self: stretch; }
  .dossier .bouton { display: block; text-align: center; }
}
