/* =====================================================
   PAGES INTÉRIEURES : services, associations… (en plus de css/site.css)
===================================================== */
.pg-hero, .sv, .cta-sec, .prose-sec { position: relative; overflow: clip; }

/* ---- En-tête de page ---- */
.pg-hero { padding: 150px 0 60px; }
/* Fil d'Ariane */
.fil { margin-bottom: 22px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.fil li { color: var(--y); }
.fil li + li::before { content: "/"; margin-right: 10px; color: #4A5D70; }
.fil a { display: inline-block; padding: 8px 0; color: #B8C6D4; transition: color .2s; }
.fil a:hover { color: #fff; }
.pg-hero .eyebrow { margin-bottom: 0; }
.pg-hero h1 { font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; max-width: 900px; margin: 24px 0 24px; text-wrap: balance; }
.pg-hero h1 em { font-style: normal; color: var(--y); text-shadow: 0 0 30px rgba(245,197,24,.4); }
.pg-hero .lead { max-width: 620px; }
.sv-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.sv-nav a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 980px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-family: var(--f-title); font-weight: 600; font-size: .95rem; color: #D5DEE7;
  transition: border-color .3s, background .3s, color .3s, transform .12s ease-out;
}
.sv-nav a:active { transform: scale(.96); }
.sv-nav a:hover { color: #fff; background: rgba(255,255,255,.06); border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.sv-nav svg { width: 18px; height: 18px; flex: none; stroke: var(--ac); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Pages de texte (mentions légales, confidentialité) ---- */
.pg-hero.court { padding-bottom: 20px; }
.prose-sec { padding: 30px 0 110px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.02em; margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #B8C6D4; line-height: 1.7; }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--y); }
.prose h3 { font-size: 1.2rem; letter-spacing: -.015em; margin: 32px 0 10px; }
.prose ol { margin-top: 12px; display: grid; gap: 8px; list-style: none; counter-reset: etape; }
.prose ol li { counter-increment: etape; padding-left: 34px; }
.prose ol li::before { content: counter(etape); width: auto; height: auto; top: 0; border-radius: 0; background: none; font-family: var(--f-mono); font-size: .9rem; color: var(--y); }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--y); }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); font-family: var(--f-mono); font-size: .88em; color: #fff; }
.prose pre { margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: #08111B; border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose img { margin: 22px 0; border-radius: 10px; border: 1px solid var(--line); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: #fff; border-bottom: 1px solid rgba(245,197,24,.6); transition: color .2s, border-color .2s; }
.prose a:hover { color: var(--y); border-color: var(--y); }
mark.todo { padding: 1px 7px; border-radius: 6px; background: rgba(255,77,46,.16); color: #FFB4A6; font-family: var(--f-mono); font-size: .84em; }

/* ---- Un service ---- */
.sv { padding: 90px 0; scroll-margin-top: 40px; }
.sv + .sv { border-top: 1px solid var(--line); }
.sv-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sv.rev .sv-top > :first-child { order: 2; }
.sv .eyebrow { margin-bottom: 18px; }
.sv .eyebrow svg { stroke: var(--ac); }
.sv h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); text-wrap: balance; }
.sv h2 em { color: var(--ac); }
.sv .lead { margin-top: 18px; font-size: 1.05rem; color: var(--muted); max-width: 520px; }
.sv .tags { margin-top: 26px; }
.sv .vis { min-height: 330px; }

/* Les 6 points détaillés */
.sv-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 32px; margin-top: 68px; }
.sv .as { padding-top: 24px; }
.sv .as-i { background: color-mix(in srgb, var(--ac) 12%, transparent); }
.sv .as-i svg { stroke: var(--ac); }
.sv .as p a { color: #fff; border-bottom: 1px solid color-mix(in srgb, var(--ac) 60%, transparent); transition: color .2s, border-color .2s; }
.sv .as p a:hover { color: var(--ac); border-color: var(--ac); }

/* ---- Bandeau associations ---- */
.cta-sec { padding: 40px 0 20px; }
main > .cta-sec:last-child { padding-bottom: 90px; } /* bandeau qui termine la page : plus d'air avant le pied de page */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; padding: 34px 40px;
  border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(600px 240px at 100% 0%, rgba(245,197,24,.12), transparent 70%), linear-gradient(180deg, #0E1B2A, #0A1420);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 560px; }

@media (max-width: 1000px) {
  .pg-hero { padding: 120px 0 40px; }
  .sv { padding: 64px 0; }
  .sv-top { grid-template-columns: 1fr; gap: 36px; }
  .sv.rev .sv-top > :first-child { order: 0; }
  .sv-items { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; gap: 28px; }
  .cta-band { padding: 28px; }
}
@media (max-width: 560px) {
  .sv-items { grid-template-columns: 1fr; }
  .sv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sv-nav a { padding: 12px 14px; font-size: .92rem; }
}

/* ---- Créer : liste numérotée (grille A), 2 colonnes, sans icônes ---- */
.sv-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; margin: 68px 0 0; padding: 0; }
.sv-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.sv-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.sv-n { font-family: var(--f-title); font-weight: 600; font-size: 1.9rem; line-height: 1; letter-spacing: -.03em; color: var(--ac); }
.sv-list h3 { margin-bottom: 8px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.sv-list p { color: var(--muted); font-size: .95rem; }
.sv-list p a { color: #fff; border-bottom: 1px solid color-mix(in srgb, var(--ac) 60%, transparent); transition: color .2s, border-color .2s; }
.sv-list p a:hover { color: var(--ac); border-color: var(--ac); }
@media (max-width: 1000px) { .sv-list { margin-top: 48px; column-gap: 48px; } }
@media (max-width: 700px) {
  .sv-list { grid-template-columns: 1fr; }
  .sv-list li:nth-last-child(2) { border-bottom: 0; }
}

/* ---- Créer : le même site affiché à trois largeurs (ordinateur, tablette, téléphone) ----
   la page du faux site est un « conteneur » : sa mise en page change vraiment selon sa largeur (@container) */
.sv .sv-rs { min-height: 0; }
.rs { display: grid; justify-items: center; gap: 16px; padding: 20px 18px 16px; }
.rs-fr { width: 100%; height: 280px; border: 1px solid var(--edge); border-radius: 10px; background: var(--paper2); overflow: hidden; box-shadow: 0 10px 30px -12px rgba(60,40,10,.25); }
.rs-pg { container-type: inline-size; height: 100%; display: grid; align-content: start; gap: 14px; padding: 14px; }
.rs-nav { display: flex; align-items: center; gap: 14px; font-size: .7rem; color: var(--ink2); }
.rs-nav b { display: flex; align-items: center; gap: 7px; margin-right: auto; font-family: var(--f-title); font-size: .9rem; color: var(--ink); white-space: nowrap; }
.rs-nav u { width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }
.rs-bg { display: none; width: 16px; gap: 3px; }
.rs-bg span { height: 2px; border-radius: 2px; background: var(--ink); }
.rs-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding: 16px; border-radius: 8px; background: var(--sand); }
.rs-hero small { font-family: var(--f-mono); font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rs-hero p { margin: 6px 0 12px; font-family: var(--f-title); font-weight: 600; font-size: 1.25rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.rs-go { display: inline-block; padding: 6px 12px; border-radius: 980px; background: var(--terra); color: #fff; font-size: .62rem; font-weight: 600; }
.rs-pic { min-height: 84px; border-radius: 6px; background: linear-gradient(135deg, var(--rose), var(--terra)); }
.rs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-cards div { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--edge); border-radius: 6px; background: var(--paper); font-size: .62rem; color: var(--ink2); }
.rs-cards i { height: 34px; border-radius: 4px; background: var(--sage); }
.rs-cards div:nth-child(2) i { background: var(--sand); }
.rs-cards div:nth-child(3) i { background: var(--rose); }
@container (max-width: 350px) {
  .rs-lk { display: none; }
  .rs-bg { display: grid; }
  .rs-hero { padding: 12px; }
  .rs-hero p { font-size: 1.05rem; }
  .rs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cards div:nth-child(3) { display: none; }
}
@container (max-width: 200px) {
  .rs-hero { grid-template-columns: 1fr; }
  .rs-pic { order: -1; min-height: 40px; }
  .rs-hero p { font-size: .95rem; }
  .rs-cards { grid-template-columns: 1fr; }
  .rs-cards div:nth-child(2) { display: none; }
}
.rs-dv { display: flex; gap: 14px; color: var(--mute); }
.rs-dv span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; opacity: .5; }
.rs-dv svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rs-d1 { opacity: 1; color: var(--terra); background: rgba(200,100,43,.14); }
@keyframes rsW { 0%, 16% { width: 100%; } 28%, 50% { width: 64%; } 62%, 84% { width: 36%; } 96%, 100% { width: 100%; } }
@keyframes rsD1 { 0%, 18% { opacity: 1; color: var(--terra); background: rgba(200,100,43,.14); } 24%, 88% { opacity: .5; color: var(--mute); background: transparent; } 96%, 100% { opacity: 1; color: var(--terra); background: rgba(200,100,43,.14); } }
@keyframes rsD2 { 0%, 20% { opacity: .5; color: var(--mute); background: transparent; } 26%, 52% { opacity: 1; color: var(--terra); background: rgba(200,100,43,.14); } 58%, 100% { opacity: .5; color: var(--mute); background: transparent; } }
@keyframes rsD3 { 0%, 56% { opacity: .5; color: var(--mute); background: transparent; } 62%, 88% { opacity: 1; color: var(--terra); background: rgba(200,100,43,.14); } 94%, 100% { opacity: .5; color: var(--mute); background: transparent; } }
/* ---- Protéger : une copie par semaine, puis « Restaurer » en un clic ---- */
.sv .sv-bk, .sv .sv-op, .sv .sv-fw { min-height: 0; }
.bk { display: grid; gap: 14px; padding: 18px; }
.bk-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.bk-t { display: grid; justify-items: center; gap: 5px; }
.bk-t i { display: grid; place-items: center; width: 100%; height: 38px; border-radius: 6px; background: var(--sage); }
.bk-t svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-t small { font-family: var(--f-mono); font-size: .5rem; letter-spacing: .02em; color: var(--mute); white-space: nowrap; }
.bk-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--edge); border-radius: 8px; background: var(--paper2); }
.bk-card small { display: block; margin-bottom: 3px; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bk-card b { font-size: .78rem; font-weight: 600; color: var(--ink); }
.bk-go { display: inline-grid; flex: none; padding: 8px 14px; border-radius: 980px; background: var(--terra); color: #fff; font-size: .68rem; font-weight: 600; }
.bk-go > span { grid-area: 1 / 1; text-align: center; }
.bk-b { opacity: 0; }

/* ---- Optimiser : la vitesse monte, les visites aussi ---- */
.op { display: grid; gap: 16px; padding: 18px; }
.op-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.op-g { position: relative; width: 120px; height: 120px; }
.op-g svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.op-bgc { fill: none; stroke: var(--edge); stroke-width: 9; }
.op-fg { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 2; }
.op-n { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.op-n b { grid-area: 1 / 1; font-family: var(--f-title); font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.op-n small { grid-area: 2 / 1; margin-top: 4px; font-family: var(--f-mono); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.op-a { opacity: 0; }
.op-c .dl { margin-bottom: 6px; }
.op-c svg { display: block; width: 100%; height: auto; }
.op-ar { fill: var(--sand); opacity: .8; }
.op-ln { fill: none; stroke: var(--terra); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.op-ck { display: flex; flex-wrap: wrap; gap: 8px; }
.op-ck span { padding: 6px 11px; border: 1px solid var(--edge); border-radius: 980px; background: var(--paper2); font-size: .66rem; color: var(--ink2); }
.op-ck span::before { content: "✓ "; font-weight: 700; color: var(--ok); }

/* ---- Développer : du formulaire à l'e-mail de confirmation ---- */
.fw { display: grid; gap: 20px; padding: 28px 18px 22px; }
.fw-flow { display: flex; align-items: flex-start; }
.fw-n { display: grid; justify-items: center; gap: 8px; width: 84px; text-align: center; font-size: .66rem; line-height: 1.25; color: var(--ink2); }
.fw-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--sand); color: var(--ink); }
.fw-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fw-ar { position: relative; flex: 1; height: 2px; margin: 25px 4px 0; background: var(--edge); }
.fw-ar::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 6px solid var(--edge); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.fw-pk { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--terra); opacity: 0; }
.fw-st { display: grid; justify-items: center; }
.fw-st span { grid-area: 1 / 1; padding: 7px 14px; border: 1px solid rgba(47,125,79,.3); border-radius: 980px; background: rgba(47,125,79,.12); color: var(--ok); font-size: .7rem; font-weight: 600; }
.fw-s1, .fw-s2 { opacity: 0; }
@keyframes bkIn { 0%, 3% { opacity: 0; transform: translateY(8px); } 11%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes bkSel { 0%, 44% { background: var(--sage); box-shadow: none; } 50%, 88% { background: var(--sand); box-shadow: 0 0 0 2px var(--terra); } 96%, 100% { background: var(--sage); box-shadow: none; } }
@keyframes bkCard { 0%, 46% { opacity: 0; transform: translateY(10px); } 54%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes bkPress { 0%, 64% { transform: scale(1); } 67% { transform: scale(.92); } 71%, 100% { transform: scale(1); } }
@keyframes bkBtn { 0%, 67% { background: var(--terra); } 69%, 90% { background: var(--ok); } 96%, 100% { background: var(--terra); } }
@keyframes bkLabA { 0%, 67% { opacity: 1; } 69%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bkLabB { 0%, 67% { opacity: 0; } 69%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes opRing { 0%, 6% { stroke-dashoffset: 38; stroke: var(--terra); } 40%, 90% { stroke-dashoffset: 2; stroke: var(--ok); } 98%, 100% { stroke-dashoffset: 38; stroke: var(--terra); } }
@keyframes opA { 0%, 38% { opacity: 1; } 42%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes opB { 0%, 38% { opacity: 0; } 42%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes opLn { 0%, 10% { stroke-dashoffset: 100; } 46%, 90% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 100; } }
@keyframes opAr { 0%, 30% { opacity: 0; } 50%, 90% { opacity: .8; } 98%, 100% { opacity: 0; } }
@keyframes opCk { 0%, 44% { opacity: 0; transform: translateY(8px); } 54%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes fwP1 { 0%, 8% { left: 0; opacity: 0; } 12% { left: 0; opacity: 1; } 28% { left: calc(100% - 9px); opacity: 1; } 31%, 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes fwP2 { 0%, 40% { left: 0; opacity: 0; } 44% { left: 0; opacity: 1; } 58% { left: calc(100% - 9px); opacity: 1; } 61%, 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes fwN1 { 0%, 14% { background: var(--terra); color: #fff; } 22%, 100% { background: var(--sand); color: var(--ink); } }
@keyframes fwN2 { 0%, 28% { background: var(--sand); color: var(--ink); } 34%, 56% { background: var(--terra); color: #fff; } 64%, 100% { background: var(--sand); color: var(--ink); } }
@keyframes fwN3 { 0%, 58% { background: var(--sand); color: var(--ink); } 64%, 90% { background: var(--terra); color: #fff; } 97%, 100% { background: var(--sand); color: var(--ink); } }
@keyframes fwS1 { 0%, 26% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes fwS2 { 0%, 30% { opacity: 0; } 34%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes fwS3 { 0%, 58% { opacity: 0; } 62%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .sv-rs.in .rs-fr { animation: rsW 9s var(--ease) infinite; }
  .sv-rs.in .rs-d1 { animation: rsD1 9s ease infinite; }
  .sv-rs.in .rs-d2 { animation: rsD2 9s ease infinite; }
  .sv-rs.in .rs-d3 { animation: rsD3 9s ease infinite; }
  .sv-bk.in .bk-t { animation: bkIn 10s var(--ease) infinite backwards; animation-delay: calc(var(--d, 0) * .3s); }
  .sv-bk.in .bk-sel i { animation: bkSel 10s ease infinite; }
  .sv-bk.in .bk-card { animation: bkCard 10s var(--ease) infinite; }
  .sv-bk.in .bk-go { animation: bkPress 10s var(--ease) infinite, bkBtn 10s ease infinite; }
  .sv-bk.in .bk-a { animation: bkLabA 10s ease infinite; }
  .sv-bk.in .bk-b { animation: bkLabB 10s ease infinite; }
  .sv-op.in .op-fg { animation: opRing 9s var(--ease) infinite; }
  .sv-op.in .op-a { animation: opA 9s ease infinite; }
  .sv-op.in .op-b { animation: opB 9s ease infinite; }
  .sv-op.in .op-ln { animation: opLn 9s var(--ease) infinite; }
  .sv-op.in .op-ar { animation: opAr 9s ease infinite; }
  .sv-op.in .op-ck span { animation: opCk 9s var(--ease) infinite backwards; animation-delay: calc(var(--d, 0) * .35s); }
  .sv-fw.in .fw-pk1 { animation: fwP1 9s ease-in-out infinite; }
  .sv-fw.in .fw-pk2 { animation: fwP2 9s ease-in-out infinite; }
  .sv-fw.in .fw-n1 .fw-ic { animation: fwN1 9s ease infinite; }
  .sv-fw.in .fw-n2 .fw-ic { animation: fwN2 9s ease infinite; }
  .sv-fw.in .fw-n3 .fw-ic { animation: fwN3 9s ease infinite; }
  .sv-fw.in .fw-s1 { animation: fwS1 9s ease infinite; }
  .sv-fw.in .fw-s2 { animation: fwS2 9s ease infinite; }
  .sv-fw.in .fw-s3 { animation: fwS3 9s ease infinite; }
}
@media (max-width: 1000px) { .sv .sv-rs, .sv .sv-bk, .sv .sv-op, .sv .sv-fw { width: 100%; max-width: 600px; justify-self: center; } }
@media (max-width: 560px) {
  .sv-rs.in .rs-fr { animation: none; width: 100%; }
  .rs-dv { display: none; }
  .bk-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  .op-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .op-g { width: 96px; height: 96px; }
  .op-n b { font-size: 1.6rem; }
  .fw-n { width: 70px; }
  .bk-card { flex-wrap: wrap; }
}
