/* ============================================================
   Dikè Juris — Cabinet d'Avocats
   Design : « la plaque gravée » — bleu encre, laiton, Marcellus
   ============================================================ */

:root {
  --ink: #101c2e;          /* bleu nuit encre */
  --ink-soft: #1a2940;
  --paper: #fbfaf7;        /* blanc papier */
  --white: #ffffff;
  --brass: #bd873b;        /* laiton gravé */
  --brass-soft: #d8ab5c;
  --slate: #46556a;        /* texte secondaire */
  --line: #ddd7ca;
  --danger: #a03b2e;
  --ok: #2e6e4e;

  --font-display: 'Marcellus', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --maxw: 1120px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4.5vw, 24px); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.9rem;
}

.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.2rem); color: var(--slate); max-width: 62ch; }

/* ---------- Signature : la plaque gravée ---------- */
.plaque {
  border: 1px solid var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: clamp(3px, 1vw, 5px);
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 28, 46, 0.97);
  color: var(--paper);
  border-bottom: 1px solid rgba(189, 135, 59, 0.45);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand span { color: var(--brass-soft); margin-left: 0.3ch; }
.brand-logo { height: 44px; width: auto; }

/* Logo dans le héros */
.hero-logo { height: clamp(110px, 16vw, 150px); width: auto; margin: 0 auto 1.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass);
  color: var(--paper);
  font: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.site-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.site-nav .nav-cta {
  border: 1px solid var(--brass);
  padding: 0.45rem 1rem;
}
.site-nav .nav-cta:hover { background: var(--brass); color: var(--ink); border-bottom-color: var(--brass); }

@media (max-width: 820px) {
  .nav-toggle { display: block; min-height: 44px; padding: 0.5rem 1.1rem; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .site-nav.open { max-height: 480px; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; padding-top: 0.4rem; }
  .site-nav a {
    display: block;
    padding: 0.85rem 0.2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(189, 135, 59, 0.18);
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .site-nav .nav-cta {
    border: 1px solid var(--brass);
    margin-top: 0.9rem;
    text-align: center;
    padding: 0.85rem 1rem;
  }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; letter-spacing: 0.08em; }
  .brand-logo { height: 36px; }
}

/* ---------- Héros ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.hero .plaque { max-width: 760px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 { color: var(--white); }
.hero p { margin: 1.4rem auto 2.2rem; color: #c9d2e0; max-width: 56ch; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-family: var(--font-body);
  min-height: 44px;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(189, 135, 59, 0.15); }
.btn-whatsapp {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-whatsapp:hover { background: #259259; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lead { color: #c9d2e0; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }

/* ---------- Cartes domaines ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  padding: 1.8rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--slate); font-size: 0.98rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

.section-dark .card { background: var(--ink-soft); border-color: rgba(189,135,59,.3); }
.section-dark .card p { color: #b9c3d4; }

/* ---------- Équipe ---------- */
.avocat { text-align: center; }
.avocat .portrait {
  width: 150px; height: 150px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: 4px;
  background: var(--ink);
  color: var(--brass-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.avocat .role { color: var(--brass); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0.2rem 0 0.7rem; }

/* ---------- Actualités ---------- */
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.article-card time { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.article-card h3 { margin: 0.6rem 0; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--brass); }
.article-card p { color: var(--slate); font-size: 0.96rem; flex: 1; }
.article-card .tag {
  align-self: flex-start;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  color: var(--slate);
}

/* ---------- Corps d'article ---------- */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2 { margin: 2.2rem 0 1rem; }
.article-meta { color: var(--slate); font-size: 0.92rem; margin: 0.8rem 0 2rem; }
.disclaimer {
  border-left: 3px solid var(--brass);
  background: var(--white);
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--slate);
  margin-top: 2.5rem;
}

/* ---------- Formulaire ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
label .req { color: var(--danger); }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; }
textarea { resize: vertical; min-height: 130px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e8f3ec; border: 1px solid var(--ok); color: var(--ok); }
.form-status.err { display: block; background: #f9ebe8; border: 1px solid var(--danger); color: var(--danger); }

/* ---------- Coordonnées ---------- */
.contact-info dt { font-weight: 600; margin-top: 1.1rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.contact-info dd { margin-top: 0.2rem; color: var(--slate); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c3d4;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--brass);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--paper); font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(185, 195, 212, 0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
}

/* ---------- Révélation au défilement ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Divers ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.page-hero p { color: #c9d2e0; max-width: 60ch; margin-top: 0.8rem; }
.list-check { list-style: none; }
.list-check li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: var(--slate); }
.list-check li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }


/* ---------- Fluidité complémentaire ---------- */
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .form-card { padding: 1.4rem; }
}
.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 28, 46, 0.09); }
.article-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 28, 46, 0.09); }
.avocat .portrait { width: clamp(110px, 28vw, 150px); height: clamp(110px, 28vw, 150px); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .article-card:hover, .btn-primary:hover { transform: none; }
}


/* ---------- Icônes des domaines ---------- */
.card-icone { width: 44px; height: 44px; color: var(--brass); margin-bottom: 1rem; }
.card-icone svg { width: 100%; height: 100%; display: block; }

/* ---------- Vignettes des cartes d'actualités ---------- */
.article-card .vignette {
  width: calc(100% + 3.2rem);
  max-width: none;
  margin: -1.6rem -1.6rem 1.1rem;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

/* ---------- Bannière en tête d'article ---------- */
.article-banniere { margin: 1.6rem 0 2rem; border: 1px solid var(--line); }

/* ---------- Portraits photo de l'équipe ---------- */
.avocat .portrait { overflow: hidden; }
.avocat .portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avocat .bio { font-size: 0.95rem; color: var(--slate); max-width: 34ch; margin: 0 auto; }

@media (max-width: 520px) {
  .card-icone { width: 38px; height: 38px; margin-bottom: 0.8rem; }
}
