/* Juriste d'à côté — pages publiques : accueil, prise de rendez-vous, espace client. */

:root {
  color-scheme: light;
  --nuit: #16294a;
  --nuit-2: #213d69;
  --or: #d9a441;
  --or-fonce: #9a6b12;
  --fond: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --bord: #dfe5ee;
  --bord-fort: #c7d1de;
  --texte: #17202e;
  --texte-2: #465366;
  --texte-3: #66727f;
  --accent: #1f5fb4;
  --succes: #1b6e34;
  --succes-fond: #e4f3e8;
  --attention: #8a5a00;
  --attention-fond: #fdf0d5;
  --danger: #b3261e;
  --danger-fond: #fbe9e7;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(22, 41, 74, .06), 0 4px 16px rgba(22, 41, 74, .07);
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */

.site-entete { background: var(--nuit); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-entete .conteneur { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.site-marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 17px; margin-right: auto; }
.site-marque img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: #dfe7f3; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav .masque-mobile { display: none; }
@media (min-width: 720px) { .site-nav .masque-mobile { display: inline-block; } }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bouton svg { width: 19px; height: 19px; flex: none; }
.bouton:disabled { opacity: .6; cursor: default; }
.bouton.or { background: var(--or); color: #1c1405; }
.bouton.or:hover:not(:disabled) { background: #e4b456; }
.bouton.nuit { background: var(--nuit); color: #fff; }
.bouton.nuit:hover:not(:disabled) { background: var(--nuit-2); }
.bouton.contour { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.bouton.contour:hover { background: rgba(255, 255, 255, .08); }
.bouton.clair { background: var(--surface); color: var(--texte); border-color: var(--bord-fort); }
.bouton.clair:hover:not(:disabled) { background: var(--surface-2); }
.bouton.whatsapp { background: #128c4a; color: #fff; }
.bouton.plein { width: 100%; }
.bouton.petit { min-height: 38px; padding: 7px 14px; font-size: 14px; }

/* ---------- Accueil ---------- */

.heros { background: linear-gradient(165deg, var(--nuit) 0%, var(--nuit-2) 100%); color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden; }
.heros::after {
  content: ""; position: absolute; right: -120px; top: -60px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(217, 164, 65, .25); box-shadow: 0 0 0 40px rgba(217, 164, 65, .04), 0 0 0 90px rgba(217, 164, 65, .03);
  pointer-events: none;
}
.heros .surtitre { color: var(--or); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.heros h1 { font-size: clamp(30px, 7vw, 48px); margin-top: 10px; letter-spacing: -.01em; }
.heros .activite { font-size: clamp(17px, 3.6vw, 20px); color: #dfe7f3; margin-top: 10px; max-width: 640px; }
.heros .presentation { color: #c9d5e8; margin-top: 16px; max-width: 640px; }
.heros .appels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; z-index: 1; }

.bande { padding: 44px 0; }
.bande h2 { font-size: clamp(22px, 5vw, 28px); }
.bande .intro { color: var(--texte-2); margin-top: 8px; max-width: 640px; }

.services { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.service { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; border-top: 3px solid var(--or); }
.service h3 { font-size: 17px; color: var(--nuit); }
.service p { color: var(--texte-2); font-size: 14.5px; margin-top: 6px; }

.etapes-site { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: etape; }
.etape-site { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; position: relative; padding-left: 64px; }
.etape-site::before {
  counter-increment: etape; content: counter(etape); position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--nuit); color: var(--or); font-weight: 800;
  display: grid; place-items: center;
}
.etape-site h3 { font-size: 16.5px; }
.etape-site p { color: var(--texte-2); font-size: 14.5px; margin-top: 4px; }

.contact { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 800px) { .contact { grid-template-columns: 1.2fr 1fr; } }
.bloc { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; }
.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coordonnees li { display: flex; gap: 12px; align-items: flex-start; }
.coordonnees svg { width: 22px; height: 22px; color: var(--or-fonce); flex: none; margin-top: 1px; }
.coordonnees strong { display: block; font-size: 13px; color: var(--texte-3); font-weight: 600; }
.horaires-site { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
.horaires-site dt { color: var(--texte-2); text-transform: capitalize; }
.horaires-site dd { margin: 0; font-weight: 600; }

.pied { background: var(--nuit); color: #aebbd0; padding: 22px 0; font-size: 14px; margin-top: 20px; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.pied a { color: #dfe7f3; }

/* ---------- Pages de service (rendez-vous, espace client) ---------- */

.page { padding: 24px 0 40px; }
.carte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; }
.carte + .carte { margin-top: 16px; }
.carte h1 { font-size: 24px; color: var(--nuit); }
.carte h2 { font-size: 18px; }
.sous-titre { color: var(--texte-2); margin-top: 6px; }
.etiquette-etape { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--or-fonce); }
.etroite { max-width: 560px; margin: 0 auto; }

.formulaire { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ > span { font-size: 14px; font-weight: 650; color: var(--texte-2); }
.champ small { color: var(--texte-3); font-size: 13px; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 11px 13px; font-size: 16px;
  border: 1px solid var(--bord-fort); border-radius: 12px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(31, 95, 180, .35); outline-offset: 1px; border-color: var(--accent);
}
.code { letter-spacing: .12em; font-size: 20px; font-variant-numeric: tabular-nums; text-align: center; }
.message-erreur { color: var(--danger); background: var(--danger-fond); border-radius: 10px; padding: 10px 13px; }
.message-info { background: var(--surface-2); border-radius: 10px; padding: 11px 13px; color: var(--texte-2); font-size: 14.5px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.jours { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.jour-choix {
  flex: none; display: grid; justify-items: center; gap: 1px; min-width: 76px; padding: 10px 8px;
  border: 1px solid var(--bord-fort); border-radius: 12px; background: #fff; cursor: pointer;
}
.jour-choix .nom { font-size: 12.5px; color: var(--texte-3); text-transform: capitalize; font-weight: 650; }
.jour-choix .num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.jour-choix .mois { font-size: 12.5px; color: var(--texte-2); }
.jour-choix[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.jour-choix[aria-pressed="true"] .nom, .jour-choix[aria-pressed="true"] .mois { color: #cdd8ea; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.heure-choix { min-height: 46px; border: 1px solid var(--bord-fort); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.heure-choix[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: #1c1405; }
.recap { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.recap strong { font-size: 17px; }

.succes-boite { text-align: center; display: grid; gap: 10px; justify-items: center; }
.succes-boite .rond { width: 64px; height: 64px; border-radius: 50%; background: var(--succes-fond); color: var(--succes); display: grid; place-items: center; }
.succes-boite .rond svg { width: 34px; height: 34px; }

/* ---------- Espace client ---------- */

.bonjour { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bonjour h1 { font-size: 22px; color: var(--nuit); }
.dossier-client { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; }
.dossier-client + .dossier-client { margin-top: 16px; }
.dossier-client .entete-dossier { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; justify-content: space-between; }
.dossier-client h2 { font-size: 19px; }
.dossier-client .numero { color: var(--texte-3); font-size: 13.5px; margin-top: 2px; }
.etat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: var(--surface-2); color: var(--texte-2); }
.etat.en_cours { background: #e7effa; color: #184d93; }
.etat.en_attente { background: var(--attention-fond); color: var(--attention); }
.etat.pret { background: var(--succes-fond); color: var(--succes); }
.etat.remis { background: #e3e7ee; color: #3a4556; }
.barre-avancement { margin-top: 14px; }
.barre-avancement .piste { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.barre-avancement .piste div { height: 100%; background: var(--succes); border-radius: 999px; }
.barre-avancement small { color: var(--texte-3); display: block; margin-top: 5px; font-size: 13.5px; }

.frise { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.frise li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; padding-bottom: 14px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--bord); }
.frise li:last-child::before { display: none; }
.frise .rond { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--bord-fort); color: var(--texte-3); font-weight: 800; font-size: 13px; z-index: 1; }
.frise .rond svg { width: 16px; height: 16px; }
.frise .fait .rond { background: var(--succes); border-color: var(--succes); color: #fff; }
.frise .en_cours .rond { background: #fff4dc; border-color: #d69a1c; color: #7a4f00; }
.frise .sans_objet .rond { border-style: dashed; }
.frise .corps { padding-top: 3px; }
.frise .nom { font-weight: 700; }
.frise .sans_objet .nom { color: var(--texte-3); text-decoration: line-through; }
.frise .detail { color: var(--texte-2); font-size: 14px; }
.frise .reference { display: inline-block; margin-top: 3px; background: var(--succes-fond); color: var(--succes); font-weight: 700; padding: 2px 9px; border-radius: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }

.message-cabinet { margin-top: 16px; border-left: 3px solid var(--or); background: #fbf4e6; padding: 11px 14px; border-radius: 0 10px 10px 0; white-space: pre-line; }
.message-cabinet strong { display: block; font-size: 13px; color: var(--or-fonce); margin-bottom: 2px; }
.argent { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.argent div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.argent span { display: block; font-size: 12.5px; color: var(--texte-3); }
.argent strong { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .argent { grid-template-columns: 1fr; gap: 6px; }
  .argent div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .argent span { font-size: 13.5px; }
}
.paiements { margin-top: 8px; font-size: 14px; color: var(--texte-2); }
.paiements summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.paiements ul { margin: 6px 0 0; padding-left: 18px; }
.mise-a-jour { margin-top: 12px; font-size: 13px; color: var(--texte-3); }
.vide { color: var(--texte-3); text-align: center; padding: 20px 8px; }
