/* ============================================================
   AMSA AVOCATS - Pages article (dossier actualites/)
   Complète style.css ; chargée après lui.
   ============================================================ */

:root { --gold: #C9A96E; --radius: 10px; }
.btn { border-radius: 24px; }

/* Hero article */
.ar-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; max-width: 820px; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; margin-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.ar-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.ar-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: .8rem; }
.ar-meta b { color: var(--white); font-weight: 600; }

/* Mise en page : article + colonne */
.ar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.ar-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }

/* Avertissement date */
.ar-note {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.35rem; margin-bottom: 2.25rem;
  background: rgba(201,169,110,.1); border: 1px solid rgba(201,169,110,.4);
  border-left: 4px solid var(--gold); border-radius: 10px;
}
.ar-note-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--font-serif); }
.ar-note p { font-size: .88rem; color: var(--grey-700); line-height: 1.6; }
.ar-note a { color: var(--red); font-weight: 600; }

.ar-cover { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(22,38,64,.12); margin-bottom: 2.5rem; }

/* Corps de texte */
.ar-body { max-width: 740px; }
.ar-body > p, .ar-body li { font-size: 1rem; line-height: 1.8; color: var(--grey-700); }
.ar-body > p + p { margin-top: 1.1rem; }
.ar-body strong { color: var(--anthracite); font-weight: 600; }
.ar-lead { font-size: 1.12rem !important; color: var(--anthracite) !important; line-height: 1.75 !important; }
.ar-body h2 {
  display: flex; align-items: baseline; gap: .9rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 3.25rem 0 1.25rem; padding-top: 2rem;
  border-top: 1px solid var(--grey-300);
  scroll-margin-top: 96px;
}
.ar-num { flex-shrink: 0; font-family: var(--font-serif); font-weight: 900; font-size: .9em; color: var(--red); }
.ar-body h3 {
  font-size: 1.12rem; margin: 2.25rem 0 .8rem; color: var(--anthracite);
  padding-left: .9rem; border-left: 3px solid var(--gold);
  scroll-margin-top: 96px;
}
.ar-body h3 .ar-num { font-size: 1em; margin-right: .35rem; }
.ar-body ul, .ar-body ol { margin: 1rem 0 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
.ar-body ul > li { position: relative; padding-left: 1.4rem; }
.ar-body ul > li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.ar-body ol { list-style: none; counter-reset: ol; }
.ar-body ol > li { counter-increment: ol; position: relative; padding-left: 2.1rem; }
.ar-body ol > li::before { content: counter(ol); position: absolute; left: 0; top: .2rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.ar-body li ol { margin: .6rem 0 .2rem; }

/* Encadrés */
.ar-callout {
  margin: 1.75rem 0; padding: 1.4rem 1.6rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--marine) 0%, #1f3560 70%, #5a1020 100%);
}
.ar-callout p { color: #D9D9D9; font-size: .95rem; line-height: 1.7; }
.ar-callout strong { color: var(--gold); }
.ar-checklist { background: var(--grey-100); border: 1px solid var(--grey-300); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.25rem 0 1.5rem; }
.ar-checklist-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .25rem; }
.ar-checklist ul { margin-bottom: 0; }
.ar-checklist li { font-size: .93rem !important; }

.ar-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0; }
.ar-key { background: rgba(201,169,110,.1); border: 1px solid rgba(201,169,110,.35); border-radius: 10px; padding: 1rem 1.2rem; }
.ar-key b { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900; color: var(--red); line-height: 1.1; }
.ar-key span { display: block; font-size: .82rem; color: var(--grey-700); margin-top: .3rem; line-height: 1.45; }

/* Auteur */
.ar-author {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: center;
  margin-top: 3.5rem; padding: 1.75rem; background: var(--white);
  border: 1px solid var(--grey-300); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.ar-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gold); }
.ar-author-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.ar-author strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--anthracite); margin: .15rem 0 .2rem; }
.ar-author p { font-size: .88rem; }
.ar-author a { color: var(--red); font-weight: 600; }

/* Colonne latérale */
.ar-toc, .ar-side-cta { border-radius: 12px; padding: 1.5rem; }
.ar-toc { background: var(--white); border: 1px solid var(--grey-300); }
.ar-toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.ar-toc ol { list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.ar-toc a { display: block; padding: .35rem .6rem; border-radius: 6px; font-size: .85rem; color: var(--grey-700); line-height: 1.4; transition: background var(--transition), color var(--transition); }
.ar-toc a:hover { background: rgba(147,29,45,.06); color: var(--red); }
.ar-toc ol ol { margin: .1rem 0 .3rem .75rem; padding-left: .6rem; border-left: 1px solid var(--grey-300); }
.ar-toc ol ol a { font-size: .8rem; padding: .25rem .5rem; }
.ar-side-cta { background: linear-gradient(135deg, var(--marine) 0%, #1f3560 60%, #5a1020 100%); }
.ar-side-cta p.ar-side-kicker { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.ar-side-cta h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .6rem; }
.ar-side-cta p { color: #D9D9D9; font-size: .85rem; margin-bottom: 1.1rem; }
.ar-side-cta .btn { width: 100%; justify-content: center; font-size: .88rem; padding: .65rem 1rem; }
.ar-side-cta a.ar-side-link { display: block; margin-top: .8rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.8); }
.ar-side-cta a.ar-side-link:hover { color: var(--white); }

.ar-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; font-size: .88rem; font-weight: 600; color: var(--red); }

@media (max-width: 1000px) {
  .ar-layout { grid-template-columns: 1fr; gap: 3rem; }
  .ar-aside { position: static; }
  .ar-toc { display: none; }
}
@media (max-width: 640px) {
  .ar-keys { grid-template-columns: 1fr; }
  .ar-author { grid-template-columns: 1fr; justify-items: start; }
  .ar-body h2 { margin-top: 2.5rem; padding-top: 1.5rem; }
}


/* Citations de textes */
.ar-body blockquote {
  margin: 1.5rem 0; padding: 1.1rem 1.4rem;
  background: var(--grey-100); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
  font-size: .95rem; font-style: italic; color: var(--grey-700); line-height: 1.7;
}

/* Appels et notes de bas de page */
.ar-body sup a { color: var(--red); font-weight: 700; font-size: .75em; padding: 0 .1em; }
.ar-notes { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-300); }
.ar-notes-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.ar-body .ar-notes ol { margin: 0; gap: .7rem; }
.ar-body .ar-notes li { font-size: .82rem; line-height: 1.6; scroll-margin-top: 96px; }
.ar-body .ar-notes li::before { width: 1.25rem; height: 1.25rem; font-size: .68rem; top: .1rem; }
.ar-notes a { color: var(--red); word-break: break-word; }

/* Conclusion mise en avant */
.ar-conclusion {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-radius: 12px;
  background: rgba(201,169,110,.1); border: 1px solid rgba(201,169,110,.35);
}
.ar-conclusion p { font-size: .98rem; color: var(--anthracite); line-height: 1.75; }
.ar-conclusion p + p { margin-top: .8rem; }

/* Variante à deux chiffres clés */
.ar-keys--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .ar-keys--2 { grid-template-columns: 1fr; }
}

/* Liens dans le texte (sources officielles, pages du site) */
.ar-body > p a:not(.btn), .ar-body li a, .ar-callout a, .ar-conclusion a, .ar-faq a {
  color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.ar-body > p a:hover, .ar-body li a:hover, .ar-callout a:hover, .ar-conclusion a:hover, .ar-faq a:hover { text-decoration-thickness: 2px; }

/* En bref (en tête d'article) : puces du composant commun, pas les flèches des articles */
.ar-body .en-bref { margin: 0 0 2.5rem; }
.ar-body .en-bref ul { margin: 0; gap: .45rem; }
.ar-body .en-bref li { padding-left: 0; font-size: .95rem; line-height: 1.65; }
.ar-body .en-bref li::before { content: none; }

/* Questions fréquentes */
.ar-faq { margin-top: 1rem; }
.ar-faq details { border-bottom: 1px solid var(--grey-300); }
.ar-faq details:first-child { border-top: 1px solid var(--grey-300); }
.ar-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; color: var(--anthracite); position: relative; line-height: 1.5; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--red); transition: transform var(--transition); }
.ar-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ar-faq details p { padding-bottom: 1.2rem; font-size: .95rem; line-height: 1.75; color: var(--grey-700); }
