/* MesActes — accueil (couleurs Brand Book v2 via cap-theme.css) : héros photo + titre centré, 4 cartes qui chevauchent la courbe,
   étapes numérotées autour d'une illustration isométrique, options (carte prioritaire + liste à tuiles),
   rôles, FAQ en deux colonnes, encart d'aide qui chevauche le pied de page. Dépend de cap-theme.css. */

/* ---------- héros ---------- */
.cap-hero { position: relative; overflow: hidden; color: #fff; text-align: center; background:
    linear-gradient(180deg, rgba(21, 32, 79, .38) 0%, rgba(21, 32, 79, .72) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 640' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23315F8C'/%3E%3Cstop offset='.6' stop-color='%237FA3C2'/%3E%3Cstop offset='1' stop-color='%23C9D8E2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1440' height='640' fill='url(%23c)'/%3E%3Cg fill='%23FFFFFF' opacity='.55'%3E%3Cellipse cx='980' cy='110' rx='260' ry='38'/%3E%3Cellipse cx='1120' cy='88' rx='150' ry='30'/%3E%3Cellipse cx='240' cy='190' rx='200' ry='26'/%3E%3Cellipse cx='640' cy='70' rx='170' ry='22'/%3E%3C/g%3E%3Cg fill='%2353708C'%3E%3Cpath d='M0 470h50v-50h30v-60h40v110h30v-90h50v90h40v-150h60v150h40v-80h50v80h50v-120h30v-40h30v160h50v-100h60v100h40v-70h60v70h40v-170h50v170h50v-90h40v90h50v-110h50v110h40v-80h50v80h50v-130h50v130h40v-70h50v70h40v170H0z'/%3E%3C/g%3E%3Cg fill='%2338506A'%3E%3Cpath d='M0 530h80v-50h50v50h70v-60h50v60h90v-40h60v40h80v-70h50v70h100v-50h60v50h80v-60h60v60h90v-40h50v40h80v-70h50v70h100v-50h50v50h80v-30h60v30h90v110H0z'/%3E%3C/g%3E%3Cg fill='%23243A50'%3E%3Cpath d='M0 590h1440v50H0z'/%3E%3C/g%3E%3C/svg%3E") center bottom / cover no-repeat; }
.cap-hero-in { position: relative; z-index: 1; padding-top: 4.4rem; padding-bottom: 11rem; }
@media (min-width: 992px) { .cap-hero-in { padding-top: 8rem; padding-bottom: 14rem; } }
.cap-hero .cap-kicker { color: #fff; letter-spacing: .04em; }
.cap-hero h1 { margin: 0 auto; max-width: 760px; color: #fff; font-size: clamp(2.1rem, 1.2rem + 3.8vw, 3.6rem); line-height: 1.18; font-weight: 600; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
/* courbe blanche en bas du héros */
.cap-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; background: var(--ma-papier); clip-path: ellipse(80% 100% at 50% 100%); }

/* ---------- 4 cartes ---------- */
.cap-steps-wrap { position: relative; z-index: 2; margin-top: -9rem; padding-bottom: 3.6rem; }
.cap-steps { list-style: none; display: grid; gap: 1.2rem; margin-top: 0; margin-bottom: 0; }
.cap-step { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 2rem 1.6rem 1.8rem; }
.cap-step h2 { margin: .3rem 0 0; font-size: var(--sx-fs-20); line-height: 1.4; font-weight: 600; }
.cap-step p { margin: 0; line-height: 1.75; }
.cap-step .cap-btn, .cap-step .cap-btn-pale { margin-top: auto; padding-left: 1.4rem; padding-right: 1.4rem; font-size: var(--sx-fs-14); }
.cap-step p + a { margin-top: auto; }
@media (min-width: 640px) { .cap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cap-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; } .cap-step { padding: 2.4rem 2.2rem 2.2rem; } }

/* ---------- étapes autour de l'illustration ---------- */
.cap-iso { display: grid; gap: 2rem; align-items: center; }
.cap-iso-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; text-align: center; }
.cap-iso-col li { display: flex; flex-direction: column; align-items: center; }
.cap-big { display: block; font-size: 3.6rem; line-height: 1; font-family: var(--ma-font-titre); font-weight: 500; color: var(--ma-bleu); font-variant-numeric: lining-nums; }
.cap-iso h3 { margin: 1rem 0 .7rem; font-size: var(--sx-fs-20); font-weight: 600; }
.cap-iso p { margin: 0; max-width: 300px; line-height: 1.75; }
.cap-btn-xs { min-height: 44px; margin-top: .9rem; padding: .5rem 1.3rem; font-size: var(--sx-fs-14); }
.cap-iso-img { display: block; width: min(380px, 90%); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(21, 23, 43, .10)); }
@media (min-width: 992px) {
    .cap-iso { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.6rem; }
    .cap-iso-col-d { padding-top: 2.6rem; position: relative; }
    /* flèche boucle violette au-dessus de l'étape 03 */
    .cap-iso-col-d::before { content: ""; position: absolute; top: -1.6rem; left: -1rem; width: 90px; height: 84px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 84'%3E%3Cpath d='M80 4c10 30-12 50-32 40-12-6-4-22 8-14 14 10-6 34-44 34' fill='none' stroke='%231D2B6B' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 56l-8 8 10 6' fill='none' stroke='%231D2B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
}
.cap-center { margin-top: 2.6rem; text-align: center; }
.cap-univs { margin-top: 2.4rem; text-align: center; }
.cap-univs p { margin: 0 0 .8rem; font-size: var(--sx-fs-14); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cap-gris); }
.cap-univs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.cap-univs li { padding: .45rem 1rem; border-radius: 1000px; background: #fff; border: 1px solid var(--cap-ligne); color: var(--cap-titre); font-size: var(--sx-fs-14); font-weight: 600; box-shadow: 0 2px 8px rgba(21, 23, 43, .04); }

/* ---------- options ---------- */
.cap-opts { display: grid; gap: 2.4rem; align-items: start; max-width: 1020px; margin: 0 auto; }
.cap-premium { padding: 2.4rem 2.4rem 2.6rem; }
.cap-premium-tag { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .9rem; font-size: var(--sx-fs-14); font-weight: 600; text-transform: uppercase; color: var(--cap-vert-texte); }
.cap-premium-tag::before { content: ""; width: 24px; height: 3px; background: var(--ma-vermillon); }
.cap-premium h3 { margin: 0 0 1rem; font-size: var(--sx-fs-24); line-height: 1.35; font-weight: 600; }
.cap-premium p { margin: 0 0 1.6rem; line-height: 1.8; }
.cap-premium-prix { display: flex; align-items: center; gap: 1.2rem; }
.cap-premium-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 60px; height: 60px; border-radius: 50%; background: var(--ma-bleu-pale); color: var(--ma-bleu); font-size: 1.4rem; }
.cap-premium-prix b { display: block; font-family: var(--ma-font-titre); font-size: var(--sx-fs-24); font-weight: 600; color: var(--cap-titre); font-variant-numeric: lining-nums tabular-nums; }
.cap-premium-prix small { display: block; margin-top: .2rem; font-size: var(--sx-fs-14); line-height: 1.5; }
.cap-optlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; }
.cap-optlist li { display: flex; gap: 1.6rem; align-items: flex-start; }
.cap-optlist h3 { margin: 0 0 .6rem; font-size: var(--sx-fs-20); line-height: 1.4; font-weight: 600; }
.cap-optlist p { margin: 0 0 .5rem; line-height: 1.75; }
.cap-prix { font-size: var(--sx-fs-14); font-weight: 600; color: var(--cap-vert-texte); text-transform: uppercase; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
@media (max-width: 479.98px) { .cap-optlist li { gap: 1rem; } .cap-optlist .cap-tile { flex-basis: 60px; width: 60px; height: 60px; font-size: 1.5rem; } }
@media (min-width: 992px) { .cap-opts { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 5rem; } .cap-premium { position: sticky; top: 100px; } }

/* ---------- rôles ---------- */
.cap-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.cap-roles li { display: flex; flex-direction: column; align-items: center; padding: 2.2rem 1.8rem; text-align: center; }
.cap-roles .cap-tile { margin-bottom: 1.2rem; }
.cap-role-tag { margin-bottom: .5rem; font-size: var(--sx-fs-12); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cap-vert-texte); }
.cap-roles h3 { margin: 0 0 .7rem; font-size: var(--sx-fs-24); font-weight: 600; }
.cap-roles p { margin: 0; line-height: 1.75; }
@media (min-width: 768px) { .cap-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; } }

/* l'encart d'aide est le dernier bloc : le pied de page commence derrière lui */
.cap-home .cap-footer { padding-top: 8rem; }

/* filet vermillon signature (Brand Book §6.4), une seule fois sous le titre du héros */
.cap-hero .ma-filet { display: block; width: var(--ma-filet-sig-w); height: var(--ma-filet-sig-h); margin: 1.4rem auto 0; background: var(--ma-vermillon); }
