/* Extension du style animé au wiki, aux tarifs, au téléchargement et aux pages légales. */

/* Bandeau de chiffres plus fin (accueil du wiki) */
.eg-figs--thin { padding-block: clamp(36px, 5vw, 64px); }
.eg-figs--thin .eg-fig strong { font-size: clamp(48px, 6.5vw, 100px); }

/* Grandes tuiles des sections du wiki */
.eg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 1000px) { .eg-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .eg-tiles { grid-template-columns: 1fr; } }
.eg-tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: 28px; border-radius: 28px; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform 450ms var(--eg-ease), box-shadow 450ms var(--eg-ease); }
.eg-tile--0 { background: #fff; color: #2C2C2C; }
.eg-tile--1 { background: #2C2C2C; color: #fff; }
.eg-tile--2 { background: #232ED1; color: #fff; }
.eg-tile--3 { background: #ED7B84; color: #000; }
.eg-tile__n { position: absolute; right: 18px; top: 4px; font-family: var(--font-display); font-weight: 400; font-size: clamp(90px, 9vw, 150px); letter-spacing: -0.06em; line-height: 1; opacity: .14; z-index: -1; transition: transform 600ms var(--eg-ease), opacity 400ms; }
.eg-tile h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.04em; line-height: 1.04; margin: auto 0 0; color: inherit; max-width: 14ch; }
.eg-tile p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .85; color: inherit; max-width: 36ch; }
.eg-tile .eg-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .75; color: inherit; }
.eg-tile__go { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: currentColor; transition: transform 400ms var(--eg-ease); }
.eg-tile__go { color: inherit; }
.eg-tile__go::before { content: "→"; color: #fff; font-size: 20px; }
.eg-tile--0 .eg-tile__go::before, .eg-tile--3 .eg-tile__go::before { color: #fff; }
.eg-tile--3 .eg-tile__go::before { color: #ED7B84; }
.eg-tile--1 .eg-tile__go::before, .eg-tile--2 .eg-tile__go::before { color: #2C2C2C; }
.eg-tile--2 .eg-tile__go::before { color: #232ED1; }
.eg-tile:hover { transform: translateY(-8px) scale(1.012); box-shadow: 0 30px 60px rgba(0,0,0,.22); }
.eg-tile:hover .eg-tile__n { transform: translate(-10px, 8px) scale(1.08); opacity: .22; }
.eg-tile:hover .eg-tile__go { transform: translateX(6px) rotate(-8deg); }
.eg-tile p { padding-right: 56px; }

/* Listes de questions numérotées */
.eg-qlist { counter-reset: q; }
.eg-qlist li a { display: grid; grid-template-columns: 54px 1fr; column-gap: 8px; }
.eg-qlist li a::before { counter-increment: q; content: counter(q, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--cy-blue); padding-top: 7px; opacity: .8; }
.eg-qlist li a:hover { padding-left: 4px; }
.eg-qlist li a strong, .eg-qlist li a span { grid-column: 2; }
.eg-qlist li a:hover strong { transform: translateX(8px); }
.eg-qlist li a strong { transition: transform 350ms var(--eg-ease), color 200ms; }

/* Pages de réponse */
.eg-short { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; border-left-width: 6px; border-radius: 0 22px 22px 0; padding: 26px 30px; }
.eg-prose h2 { position: relative; padding-top: 18px; }
.eg-prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ED7B84, #5B67FF); }
.eg-prose pre { box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.eg-pn a { transition: transform 350ms var(--eg-ease), box-shadow 250ms; }
.eg-pn a:hover { transform: translateY(-4px); }
.eg-help { position: relative; overflow: hidden; isolation: isolate; }
.eg-help::after { content: ""; position: absolute; right: -40px; top: -50%; width: 200px; aspect-ratio: 450 / 512; background: #ED7B84; opacity: .9; z-index: -1; -webkit-mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; animation: eg-bob 7s ease-in-out infinite; }

/* Glossaire */
.eg-glossgrid { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: start; }
@media (max-width: 760px) { .eg-glossgrid { grid-template-columns: 1fr; } }
.eg-letters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 130px); overflow: auto; }
@media (max-width: 760px) { .eg-letters { position: static; flex-direction: row; flex-wrap: wrap; } }
.eg-letters a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-mono); font-weight: 700; transition: background 200ms, color 200ms, transform 200ms; }
.eg-letters a:hover { background: #2C2C2C; color: #fff; transform: translateX(4px); }
.eg-narrow2 { max-width: 860px; }
.eg-letter { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 9vw, 130px); letter-spacing: -0.06em; line-height: .9; margin: 52px 0 6px; color: transparent; -webkit-text-stroke: 1.3px #232ED1; scroll-margin-top: 90px; }
.eg-letter:first-child { margin-top: 0; }
.eg-gloss { margin: 0; }

/* Tarifs */
.eg-price span[data-count] { font-variant-numeric: tabular-nums; }
.eg-plan { position: relative; overflow: hidden; }
.eg-plan.is-hl::after { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; aspect-ratio: 450 / 512; background: #ED7B84; opacity: .35; -webkit-mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; animation: eg-bob 8s ease-in-out infinite; pointer-events: none; }
.eg-table tbody tr { transition: background 200ms; }
.eg-table tbody tr:hover { background: var(--bone); }

/* Téléchargement */
.eg-ver b { position: relative; }
.eg-ver b::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 2px; height: 10px; border-radius: 6px; background: #ED7B84; opacity: .45; z-index: -1; transform-origin: 0 50%; animation: eg-underline 2.4s var(--eg-ease) .6s both; }
@keyframes eg-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.eg-steps li { position: relative; }
.eg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 37px; top: 58px; bottom: -18px; width: 2px; background: linear-gradient(#232ED1, rgba(35,46,209,.12)); }
.eg-steps li::before { transition: transform 400ms var(--eg-ease); }
.eg-steps li:hover::before { transform: scale(1.15) rotate(-6deg); }
.eg-form:focus-within { box-shadow: 0 0 0 3px rgba(35,46,209,.28), 0 24px 60px rgba(35,46,209,.12); }
.eg-form { transition: box-shadow 300ms; }

/* Pages légales */
.eg-legal h2 { position: relative; padding-top: 18px; }
.eg-legal h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ED7B84, #5B67FF); }
.eg-kv dd { transition: transform 250ms var(--eg-ease); }

/* Passage en revue : même logique que l'accueil (pas de numéros, logo en fond, étiquettes lisibles) */
.eg-qlist li a { display: block; }
.eg-qlist li a::before { content: none; }
.eg-qlist li a strong, .eg-qlist li a span { grid-column: auto; }

.eg-tile__sym { position: absolute; right: -6%; top: 50%; width: 62%; aspect-ratio: 450 / 512; translate: 0 -50%; background: currentColor; opacity: .12; z-index: -1; pointer-events: none; -webkit-mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; transition: transform 600ms var(--eg-ease), opacity 400ms; }
.eg-tile:hover .eg-tile__sym { transform: rotate(-7deg) scale(1.06); opacity: .2; }
.eg-tile .eg-tag, .eg-card .eg-tag { font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .1em; }

.eg-mod { position: relative; overflow: hidden; isolation: isolate; }
.eg-mod__sym { position: absolute; right: -28px; top: -22px; width: 150px; aspect-ratio: 450 / 512; background: #232ED1; opacity: .07; z-index: -1; pointer-events: none; -webkit-mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; transition: transform 600ms var(--eg-ease), opacity 400ms; }
.eg-mod:hover .eg-mod__sym { transform: rotate(-8deg) scale(1.1); opacity: .13; }

.eg-plan.is-hl::after { z-index: 0; }
.eg-plan > * { position: relative; z-index: 1; }

/* Fonctionnalités : cartes plus simples, accroche mise en avant */
.eg-mod h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; margin: 8px 0 10px; }
.eg-mod .tl { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; margin: 0 0 18px; }
.eg-mod ul { font-size: 16px; line-height: 1.5; padding-left: 20px; }
.eg-mod li { margin-bottom: 8px; }
.eg-mod li b { font-weight: 600; }
