/* avocatdroittravail.fr — famille V14-campus recomposée, signature frise-des-delais.
   Prefixes : grf- (coque) / prd- (composants). Roboto Slab (titres) + Radio Canada (corps). */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&family=Radio+Canada:wght@400;500;600&display=swap');

:root {
  --grf-paper: oklch(0.978 0.006 85);
  --grf-ink: oklch(0.245 0.028 240);
  --grf-surface: oklch(0.950 0.010 85);
  --grf-accent: oklch(0.520 0.135 12);
  --grf-accent-deep: oklch(0.395 0.115 12);
  --grf-accent-tint: oklch(0.935 0.032 12);
  --grf-field-line: oklch(0.540 0.022 240);

  --grf-font-title: "Roboto Slab", serif;
  --grf-font-body: "Radio Canada", sans-serif;

  --grf-maxw: 76rem;
  --grf-radius: 10px;
  --grf-space-1: 0.5rem;
  --grf-space-2: 1rem;
  --grf-space-3: 1.75rem;
  --grf-space-4: 2.75rem;
  --grf-space-5: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grf-paper);
  color: var(--grf-ink);
  font-family: var(--grf-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--grf-accent-deep); }
a:hover { color: var(--grf-accent); }

h1, h2, h3, h4 {
  font-family: var(--grf-font-title);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 var(--grf-space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 var(--grf-space-2); }
.grf-lede { font-size: 1.15rem; color: oklch(0.34 0.02 240); }

.grf-wrap {
  max-width: var(--grf-maxw);
  margin: 0 auto;
  padding: 0 var(--grf-space-3);
}
.grf-section { padding: var(--grf-space-5) 0; }
.grf-section--tint { background: var(--grf-surface); }
.grf-section--tight { padding: var(--grf-space-4) 0; }
.grf-hero-page { padding: var(--grf-space-2) 0 var(--grf-space-4); }

.grf-tabular { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Header ---------- */
.grf-topbar {
  background: var(--grf-ink);
  color: oklch(0.94 0.01 240);
  font-size: 0.85rem;
}
.grf-topbar .grf-wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--grf-space-2); padding-top: 0.45rem; padding-bottom: 0.45rem;
  flex-wrap: wrap;
}
.grf-topbar a { color: oklch(0.94 0.01 240); text-decoration: underline; }

.grf-header {
  background: var(--grf-paper);
  border-bottom: 1px solid oklch(0.86 0.01 240);
  position: sticky; top: 0; z-index: 40;
}
.grf-header .grf-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--grf-space-2); padding-bottom: var(--grf-space-2);
  gap: var(--grf-space-3);
}
.grf-brand {
  font-family: var(--grf-font-title); font-weight: 700; font-size: 1.05rem;
  color: var(--grf-ink); text-decoration: none; line-height: 1.25;
}
.grf-brand small {
  display: block; font-family: var(--grf-font-body); font-weight: 500;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--grf-accent-deep);
}
.grf-nav { display: flex; align-items: center; gap: var(--grf-space-3); }
.grf-nav-list { display: flex; gap: var(--grf-space-2); list-style: none; margin: 0; padding: 0; position: relative; }
.grf-nav-item { position: relative; }
.grf-nav-item > a, .grf-nav-item > button {
  font-family: var(--grf-font-body); font-weight: 500; font-size: 0.92rem;
  background: none; border: none; cursor: pointer; color: var(--grf-ink);
  padding: 0.5rem 0.15rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3em;
}
.grf-nav-item > a:hover, .grf-nav-item > button:hover { color: var(--grf-accent-deep); }
.grf-dropdown {
  position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid oklch(0.86 0.01 240); border-radius: 8px;
  box-shadow: 0 12px 28px oklch(0.2 0.02 240 / 0.14);
  min-width: 15rem; padding: 0.5rem; display: none; flex-direction: column; gap: 2px;
}
.grf-nav-item:hover .grf-dropdown,
.grf-nav-item:focus-within .grf-dropdown { display: flex; }
.grf-dropdown a {
  display: block; padding: 0.5rem 0.65rem; border-radius: 6px; font-size: 0.9rem;
  color: var(--grf-ink); text-decoration: none;
}
.grf-dropdown a:hover { background: var(--grf-accent-tint); color: var(--grf-accent-deep); }
.grf-cta {
  background: var(--grf-accent); color: #fff; border-radius: 8px;
  padding: 0.62rem 1.1rem; font-weight: 600; text-decoration: none; font-size: 0.92rem;
  white-space: nowrap;
}
.grf-cta:hover { background: var(--grf-accent-deep); color: #fff; }
.grf-burger { display: none; }

@media (max-width: 860px) {
  .grf-nav-list { display: none; }
  .grf-burger { display: inline-flex; background: none; border: 1px solid oklch(0.8 0.01 240); border-radius: 8px; padding: 0.5rem 0.7rem; }
}

/* ---------- Hero (frise-hero, mode A) ---------- */
.grf-hero { padding: var(--grf-space-2) 0 var(--grf-space-4); }
.grf-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--grf-space-4); align-items: start; }
@media (max-width: 860px) {
  /* Mobile : le formulaire passe EN PREMIER dans le rendu visuel (règle form-first), le
     texte d'accroche et la carte de délai suivent en dessous — sinon les deux colonnes se
     compressent côte à côte et rien ne tient au-dessus de la ligne de flottaison (G32). */
  .grf-hero-grid { display: flex; flex-direction: column; }
  .grf-hero-grid > div:first-child { order: 2; }
  .grf-hero-grid > div:last-child { order: 1; }
}
.grf-hero-copy p.grf-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--grf-accent-deep); background: var(--grf-accent-tint); border-radius: 999px;
  padding: 0.3rem 0.75rem; margin-bottom: var(--grf-space-2); text-transform: uppercase;
}
.grf-answer-40w { font-size: 1.02rem; color: oklch(0.32 0.02 240); }

.grf-delay-isolated {
  border: 1px solid var(--grf-field-line);
  border-left: 6px solid var(--grf-accent);
  background: #fff; border-radius: var(--grf-radius);
  padding: var(--grf-space-3); margin-top: var(--grf-space-3);
}
.grf-delay-isolated .grf-delay-num {
  font-family: var(--grf-font-title); font-size: 2.6rem; color: var(--grf-accent-deep);
  line-height: 1; margin-bottom: 0.25rem;
}
.grf-delay-isolated .grf-delay-label { font-weight: 600; margin-bottom: 0.35rem; }
.grf-delay-isolated .grf-delay-src { font-size: 0.82rem; color: oklch(0.45 0.02 240); }
.grf-delay-isolated--compact { padding: var(--grf-space-2) var(--grf-space-3); margin-top: var(--grf-space-2); }
.grf-delay-isolated--compact .grf-delay-num { font-size: 1.7rem; margin-bottom: 0; }
.grf-delay-isolated--compact .grf-delay-label { font-size: 0.92rem; margin-bottom: 0; font-weight: 500; }

/* ---------- Form card ---------- */
.prd-form-card {
  background: #fff; border: 1px solid oklch(0.86 0.01 240); border-radius: var(--grf-radius);
  padding: var(--grf-space-3); box-shadow: 0 18px 40px oklch(0.2 0.02 240 / 0.08);
}
.prd-form-card h2, .prd-form-card p.grf-form-title { font-size: 1.15rem; margin-bottom: 0.35rem; }
.prd-field { margin-bottom: var(--grf-space-2); }
@media (max-width: 860px) {
  /* Above-the-fold mobile (G32) : la carte de formulaire du hero est la première chose
     rendue — resserrer l'espacement vertical pour que le bouton d'envoi reste au-dessus
     de la ligne de flottaison sans retirer de champ. */
  .grf-topbar .grf-wrap { padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.72rem; }
  .grf-header .grf-wrap { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .prd-form-card { padding: 0.7rem var(--grf-space-2); }
  .prd-field { margin-bottom: 0.4rem; }
  .prd-consent { margin-bottom: 0.5rem; }
  .prd-field label { margin-bottom: 0.15rem; }
  .prd-form-card p.grf-form-title { margin-bottom: 0.1rem; }
  .prd-form-card + .prd-reassure, .prd-reassure { margin-top: 0.35rem; }
  .grf-hero-page { padding-top: 0.3rem; padding-bottom: var(--grf-space-2); }
}
.prd-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.prd-field input, .prd-field select, .prd-field textarea {
  width: 100%; border: 1.5px solid var(--grf-field-line); border-radius: 7px;
  padding: 0.65rem 0.75rem; font-family: var(--grf-font-body); font-size: 0.98rem;
  background: #fff; color: var(--grf-ink);
}
.prd-field input:focus, .prd-field select:focus, .prd-field textarea:focus {
  outline: 2px solid var(--grf-accent); outline-offset: 1px;
}
.prd-field.prd-optional label::after { content: " (facultatif)"; font-weight: 400; color: oklch(0.5 0.02 240); }
.prd-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; margin-bottom: var(--grf-space-2); }
.prd-consent input { margin-top: 0.2rem; width: auto; }
.prd-submit {
  width: 100%; background: var(--grf-accent); color: #fff; border: none; border-radius: 8px;
  padding: 0.85rem 1.2rem; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: var(--grf-font-body);
}
.prd-submit:hover { background: var(--grf-accent-deep); }
.prd-reassure { font-size: 0.82rem; color: oklch(0.45 0.02 240); margin-top: 0.6rem; text-align: center; }
.prd-honeypot { position: absolute; left: -9999px; }

/* ---------- Frise des délais (module signature) ---------- */
.prd-frise-wrap { margin: var(--grf-space-3) 0; }
.prd-frise {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; align-items: end;
}
.prd-frise-seg {
  background: #fff; border: 1px solid var(--grf-field-line); border-radius: 8px;
  padding: var(--grf-space-2); display: flex; flex-direction: column; gap: 0.35rem;
}
.prd-frise-seg .prd-duree { font-family: var(--grf-font-title); font-weight: 700; font-size: 1.5rem; color: var(--grf-ink); }
.prd-frise-seg .prd-label { font-weight: 600; font-size: 0.92rem; }
.prd-frise-seg .prd-depart { font-size: 0.8rem; color: oklch(0.45 0.02 240); }
.prd-frise-seg .prd-src { font-size: 0.72rem; color: oklch(0.5 0.02 240); }
.prd-frise-seg--pivot {
  border-color: var(--grf-accent); border-width: 2px; background: var(--grf-accent-tint);
  transform: translateY(-0.9rem); box-shadow: 0 14px 26px oklch(0.52 0.13 12 / 0.18);
}
.prd-frise-seg--pivot .prd-duree { color: var(--grf-accent-deep); font-size: 1.9rem; }
@media (max-width: 780px) {
  .prd-frise { grid-template-columns: 1fr 1fr; }
  .prd-frise-seg--pivot { transform: none; grid-column: 1 / -1; }
}

/* ---------- Deux-up (sections soeurs) ---------- */
.grf-grid-2up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grf-space-3); }
@media (max-width: 780px) { .grf-grid-2up { grid-template-columns: 1fr; } }
.grf-card {
  background: #fff; border: 1px solid oklch(0.88 0.01 240); border-radius: var(--grf-radius);
  padding: var(--grf-space-3);
}
.grf-card a.grf-card-link { text-decoration: none; color: inherit; display: block; }
.grf-card h3 { margin-bottom: 0.4rem; }
.grf-card .grf-card-kw { font-size: 0.85rem; color: oklch(0.48 0.02 240); }

/* ---------- Loi box ---------- */
.prd-law-box {
  border: 1px solid var(--grf-field-line); border-left: 5px solid var(--grf-accent-deep);
  border-radius: var(--grf-radius); background: var(--grf-surface);
  padding: var(--grf-space-3); margin: var(--grf-space-3) 0;
}
.prd-law-box h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.prd-law-box .prd-law-src { font-size: 0.82rem; color: oklch(0.42 0.02 240); margin-top: 0.5rem; }

/* ---------- Méthode / déroulé ---------- */
.grf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grf-space-3); }
@media (max-width: 780px) { .grf-steps { grid-template-columns: 1fr; } }
.grf-step h3 { color: var(--grf-accent-deep); }

/* ---------- FAQ ---------- */
.prd-faq details {
  border: 1px solid oklch(0.87 0.01 240); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: #fff;
}
.prd-faq summary { cursor: pointer; font-weight: 600; font-family: var(--grf-font-body); }
.prd-faq details[open] summary { color: var(--grf-accent-deep); }
.prd-faq .prd-faq-answer { margin-top: 0.6rem; }

/* ---------- Updated badge ---------- */
.grf-updated { font-size: 0.8rem; color: oklch(0.48 0.02 240); margin-bottom: var(--grf-space-2); }

/* ---------- Breadcrumb ---------- */
.grf-breadcrumb { font-size: 0.82rem; color: oklch(0.48 0.02 240); margin-bottom: var(--grf-space-2); }
.grf-breadcrumb a { color: oklch(0.48 0.02 240); }
.grf-breadcrumb span[aria-current] { color: var(--grf-ink); font-weight: 600; }

/* ---------- Sources block (footer) ---------- */
.foot-sources { font-size: 0.78rem; color: oklch(0.7 0.01 240); border-top: 1px solid oklch(0.32 0.02 240); padding-top: var(--grf-space-2); margin-top: var(--grf-space-3); }
.foot-sources a { color: oklch(0.78 0.01 240); }

/* ---------- Footer ---------- */
.grf-footer { background: var(--grf-ink); color: oklch(0.86 0.01 240); }
.grf-footer .grf-wrap { padding-top: var(--grf-space-4); padding-bottom: var(--grf-space-3); }
.grf-footer h4 { color: #fff; font-size: 0.95rem; }
.grf-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--grf-space-3); }
@media (max-width: 780px) { .grf-footer-grid { grid-template-columns: 1fr; } }
.grf-footer a { color: oklch(0.86 0.01 240); text-decoration: none; font-size: 0.9rem; }
.grf-footer a:hover { color: #fff; text-decoration: underline; }
.grf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.grf-nonaffil {
  font-size: 0.85rem; background: oklch(0.30 0.03 240); border-radius: 8px; padding: 0.85rem 1rem; margin: var(--grf-space-3) 0;
  border-left: 4px solid var(--grf-accent);
}
.grf-copyright { font-size: 0.78rem; color: oklch(0.74 0.01 240); margin-top: var(--grf-space-3); }

/* ---------- Blog ---------- */
.grf-blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grf-space-3); }
@media (max-width: 780px) { .grf-blog-list { grid-template-columns: 1fr; } }
.grf-blog-card { background: #fff; border: 1px solid oklch(0.88 0.01 240); border-radius: var(--grf-radius); padding: var(--grf-space-3); }
.grf-blog-card time { font-size: 0.8rem; color: oklch(0.5 0.02 240); }
.grf-article-body { max-width: 42rem; }
.grf-article-body p { max-width: 42rem; }

/* ---------- Utility ---------- */
.grf-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.grf-skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; overflow: visible;
  clip: auto; white-space: normal; z-index: 100; background: var(--grf-ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 6px;
}
.grf-cols-body { max-width: 44rem; }
