/* Domaines d’action : contenu dans le flux, tracés purement décoratifs. */
#actions.section {
  padding: clamp(54px, 6vw, 86px) 32px;
  margin: 0;
  background: #FAF3E9;
  color: #363039;
}
#actions .actions-shell { max-width: 1200px; margin-inline: auto; }
#actions .actions-kicker {
  margin: 0 0 14px;
  color: #326748;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
}
#actions .actions-heading {
  margin: 0 0 12px;
  color: #4A2F5E;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.1;
}
#actions .actions-subtitle { margin: 0; color: #514558; font-size: 1.05rem; line-height: 1.6; }
#actions .action-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 13%) minmax(0, 1fr);
  row-gap: 64px;
  padding: 48px 30px 0;
  isolation: isolate;
}
#actions .action-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
#actions .action-connection { fill: none; stroke: #79617f; stroke-width: 1.75; opacity: .9; transition: stroke 250ms ease, opacity 250ms ease; vector-effect: non-scaling-stroke; }
#actions .action-connection.is-connected { stroke: #4A2F5E; opacity: .95; }
#actions .action-domain { position: relative; z-index: 1; min-width: 0; cursor: auto; }
#actions .action-domain-1 { grid-column: 1; grid-row: 1; }
#actions .action-domain-2 { grid-column: 3; grid-row: 1; margin-block-start: 32px; }
#actions .action-domain-3 { grid-column: 1; grid-row: 2; }
#actions .action-domain-4 { grid-column: 3; grid-row: 2; margin-block-start: 24px; }
#actions .action-domain-5 { grid-column: 1 / -1; grid-row: 3; width: min(100%, 430px); justify-self: center; }
#actions .action-domain h3 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  color: #4A2F5E;
  font-family: var(--serif, Fraunces, Georgia, serif);
  font-size: clamp(1.625rem, 2.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  transition: color 250ms ease;
}
#actions .action-domain-label { flex: 1; min-width: 0; }
#actions .action-anchor {
  position: relative;
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-block-start: .12em;
}
#actions .action-anchor::before,
#actions .action-anchor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#actions .action-anchor::before {
  inset: 0;
  border: 1px solid #795c83;
  transition: transform 250ms ease, border-color 250ms ease;
}
#actions .action-anchor::after { inset: 7.5px; background: #4A2F5E; }
#actions .action-domain:nth-of-type(even) .action-anchor::before { border-color: #658773; }
#actions .action-domain:nth-of-type(even) .action-anchor::after { background: #4E775D; }
@media (min-width: 701px) {
  #actions .action-domain-1 .action-anchor,
  #actions .action-domain-3 .action-anchor { order: 2; }
  #actions .action-domain-2 p,
  #actions .action-domain-4 p,
  #actions .action-domain-5 p { margin-inline-start: 40px; }
}
@media (min-width: 1001px) {
  #actions .action-domain-3 { margin-inline-end: 36px; }
  #actions .action-domain-4 { margin-inline-start: 36px; }
}
#actions .action-domain p { max-width: 45ch; margin: 0; color: #363039; font-size: 1rem; line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  #actions .action-domain:hover h3 { color: #326748; }
  #actions .action-domain:hover .action-anchor::before { transform: scale(1.1); border-color: #4A2F5E; }
}
#actions .actions-field-link { display: inline-flex; align-items: center; gap: 9px; margin-block-start: 48px; color: #4A2F5E; font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
#actions .actions-link-arrow { display: inline-block; direction: ltr; unicode-bidi: isolate; transition: transform 250ms ease; }
#actions .actions-field-link:hover .actions-link-arrow,
#actions .actions-field-link:focus-visible .actions-link-arrow { transform: translateX(4px); }
html[dir="rtl"] #actions .actions-link-arrow { transform: scaleX(-1); }
html[dir="rtl"] #actions .actions-field-link:hover .actions-link-arrow,
html[dir="rtl"] #actions .actions-field-link:focus-visible .actions-link-arrow { transform: translateX(-4px) scaleX(-1); }
html[lang="ar"] #actions .actions-heading,
html[lang="ar"] #actions .action-domain h3 { font-family: var(--arabic, Tajawal, sans-serif); letter-spacing: 0; }
html[lang="ar"] #actions .actions-kicker { letter-spacing: 0; }
/* La classe d’attente est ajoutée seulement si JavaScript et IntersectionObserver fonctionnent. */
@media (prefers-reduced-motion: no-preference) {
  #actions.actions-motion .action-domain { transition: opacity 550ms ease, transform 550ms ease; }
  #actions.actions-pending .action-domain { opacity: 0; transform: translateY(10px); }
  #actions.actions-motion .action-connection { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms ease, stroke 250ms ease, opacity 250ms ease; }
  #actions.actions-pending .action-connection { stroke-dashoffset: 1; }
}
@media (max-width: 1000px) {
  #actions .action-map { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); row-gap: 54px; }
}
@media (max-width: 700px) {
  #actions.section { padding: 48px 22px; }
  #actions .action-map { display: flex; flex-direction: column; gap: 26px; padding: 38px 0 0; }
  #actions .action-domain { width: 100%; margin: 0; }
  #actions .action-domain h3 { font-size: 1.35rem; }
  #actions .action-domain p { margin-inline-start: 40px; }
  #actions .action-domain-5 { width: 100%; }
  #actions .actions-field-link { margin-block-start: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #actions .action-domain, #actions .action-connection, #actions .action-anchor::before,
  #actions .action-domain h3, #actions .actions-link-arrow { animation: none; transition: none; }
  #actions .action-domain:hover .action-anchor::before { transform: none; }
  #actions .actions-field-link:hover .actions-link-arrow,
  #actions .actions-field-link:focus-visible .actions-link-arrow { transform: none; }
  html[dir="rtl"] #actions .actions-field-link:hover .actions-link-arrow,
  html[dir="rtl"] #actions .actions-field-link:focus-visible .actions-link-arrow { transform: scaleX(-1); }
}
