
/* AnimyJob — activité créative premium
   Pochoirs à imprimer
   Compatible CakePHP 2.x + PHP 5.6, sans framework front. */

.ajc-page,
.ajc-page * { box-sizing: border-box; }

.ajc-page {
    --ajc-ink: #24283b;
    --ajc-muted: #69728a;
    --ajc-line: #e8ebf3;
    --ajc-bg: #f8f9fd;
    --ajc-card: #ffffff;
    --ajc-purple: #7657e8;
    --ajc-blue: #4597f7;
    --ajc-pink: #f068b5;
    --ajc-yellow: #ffca47;
    --ajc-green: #55bf8f;
    color: var(--ajc-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 18px 80px;
}

.ajc-page a { color: inherit; text-decoration: none; }
.ajc-page img { max-width: 100%; height: auto; display: block; }

.ajc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 18px;
    color: var(--ajc-muted);
    font-size: 13px;
}
.ajc-breadcrumbs a:hover { text-decoration: underline; }

.ajc-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 36px;
    align-items: center;
    border-radius: 34px;
    padding: 46px;
    margin-bottom: 34px;
    background:
        radial-gradient(circle at 8% 12%, rgba(255,255,255,.75) 0 7%, transparent 8%),
        radial-gradient(circle at 92% 28%, rgba(255,255,255,.45) 0 8%, transparent 9%),
        linear-gradient(135deg, #f2efff 0%, #eef8ff 46%, #fff6da 100%);
    border: 1px solid rgba(118,87,232,.12);
    box-shadow: 0 24px 70px rgba(58,64,93,.08);
}
.ajc-hero::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -48px;
    bottom: -52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240,104,181,.25), rgba(118,87,232,.25));
}
.ajc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(118,87,232,.10);
    color: #6246cd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ajc-hero h1,
.ajc-section h2,
.ajc-detail h1,
.ajc-faq h2,
.ajc-crosslinks h2 {
    margin: 12px 0 12px;
    line-height: 1.08;
    letter-spacing: -.03em;
}
.ajc-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.ajc-hero p { font-size: 18px; color: var(--ajc-muted); max-width: 680px; }

.ajc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.ajc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 0;
    background: var(--ajc-purple);
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(118,87,232,.18);
}
.ajc-btn:hover { transform: translateY(-1px); }
.ajc-btn--soft {
    color: var(--ajc-ink) !important;
    background: #fff;
    border: 1px solid var(--ajc-line);
    box-shadow: none;
}
.ajc-btn--green { background: var(--ajc-green); box-shadow: 0 10px 24px rgba(85,191,143,.18); }
.ajc-btn--pink { background: var(--ajc-pink); box-shadow: 0 10px 24px rgba(240,104,181,.18); }

.ajc-hero-visual {
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
}
.ajc-hero-paper {
    width: min(270px, 86%);
    aspect-ratio: 210 / 297;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(36,40,59,.08);
    box-shadow: 0 28px 55px rgba(45,52,84,.18);
    transform: rotate(3deg);
    padding: 18px;
}
.ajc-hero-paper img,
.ajc-hero-paper > svg { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display:block; }

.ajc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: -8px 0 36px;
}
.ajc-stat {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ajc-line);
}
.ajc-stat strong { display: block; font-size: 24px; line-height: 1.1; }
.ajc-stat span { color: var(--ajc-muted); font-size: 13px; }

.ajc-section { margin: 42px 0; }
.ajc-section-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ajc-section h2 { font-size: clamp(28px, 3vw, 40px); }
.ajc-section p { color: var(--ajc-muted); }

.ajc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}
.ajc-category {
    min-height: 132px;
    border-radius: 22px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ajc-line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ajc-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(57,64,96,.09);
    border-color: rgba(118,87,232,.26);
}
.ajc-category strong { display: block; font-size: 18px; margin-bottom: 5px; }
.ajc-category span { color: var(--ajc-muted); font-size: 13px; }

.ajc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}
.ajc-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--ajc-line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ajc-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(57,64,96,.10); }
.ajc-card-media {
    display: grid;
    place-items: center;
    min-height: 255px;
    padding: 18px;
    background: linear-gradient(180deg,#fbfcff,#f4f6fb);
}
.ajc-card-media img,
.ajc-card-media > svg {
    width: 185px;
    height: 262px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 24px rgba(58,64,93,.09);
    display:block;
}
.ajc-inline-svg > svg { max-width:100%; }

.ajc-card-body { padding: 18px 20px 21px; }
.ajc-card-body h3 { margin: 9px 0 8px; font-size: 19px; line-height: 1.25; }
.ajc-card-body p { margin: 0 0 12px; color: var(--ajc-muted); font-size: 14px; }
.ajc-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ajc-card-badges span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f2f8;
    color: #596079;
    font-size: 11px;
    font-weight: 700;
}
.ajc-link { color: #684bd0 !important; font-weight: 800; font-size: 14px; }

.ajc-detail {
    display: grid;
    grid-template-columns: minmax(360px,.92fr) minmax(0,1.08fr);
    gap: 34px;
    align-items: start;
}
.ajc-preview {
    position: sticky;
    top: 18px;
    padding: 18px;
    border-radius: 26px;
    background: #f5f6fb;
    border: 1px solid var(--ajc-line);
}
.ajc-preview-sheet {
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
    background: #fff;
    aspect-ratio: 210/297;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(58,64,93,.12);
}
.ajc-preview-sheet svg { width: 100%; height: 100%; display: block; }
.ajc-detail-copy { padding-top: 6px; }
.ajc-detail h1 { font-size: clamp(34px,4vw,50px); }
.ajc-detail-copy > p { color: var(--ajc-muted); font-size: 17px; }

.ajc-info-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 22px 0;
}
.ajc-info {
    border-radius: 16px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--ajc-line);
}
.ajc-info small { color: var(--ajc-muted); display: block; }
.ajc-info strong { display: block; margin-top: 2px; }

.ajc-editorial {
    margin-top: 28px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ajc-line);
}
.ajc-editorial h2 { margin: 0 0 10px; font-size: 24px; }
.ajc-editorial p { color: var(--ajc-muted); }

.ajc-tool {
    border: 1px solid var(--ajc-line);
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(58,64,93,.08);
}
.ajc-tool-grid {
    display: grid;
    grid-template-columns: 340px minmax(0,1fr);
    gap: 26px;
}
.ajc-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ajc-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.ajc-field input,
.ajc-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dfe3ee;
    border-radius: 12px;
    background: #fff;
    color: var(--ajc-ink);
    font: inherit;
}
.ajc-field-help { margin-top: 6px; color: var(--ajc-muted); font-size: 12px; }

.ajc-tool-preview {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: 22px;
    background: #f5f6fb;
}
.ajc-tool-preview > svg,
.ajc-tool-preview > .ajc-generated-sheet {
    width: min(100%, 520px);
    height: auto;
    max-height: 720px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(58,64,93,.12);
}

.ajc-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}
.ajc-color {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    outline: 1px solid #d9deea;
    cursor: pointer;
}
.ajc-color.is-active { outline: 3px solid #30374e; }

.ajc-practice {
    position: relative;
    touch-action: none;
}
.ajc-practice canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    touch-action: none;
}

.ajc-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0 0;
}
.ajc-pager a,
.ajc-pager span {
    min-width: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 7px 10px;
    border: 1px solid var(--ajc-line);
    border-radius: 10px;
    background: #fff;
}
.ajc-pager .current { background: var(--ajc-purple); color:#fff; border-color:var(--ajc-purple); }

.ajc-crosslinks {
    margin-top: 54px;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg,#f5f1ff,#eff9ff);
}
.ajc-crosslinks-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}
.ajc-crosslinks-grid a {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(118,87,232,.12);
}
.ajc-crosslinks-grid strong { display:block; margin-bottom:4px; }
.ajc-crosslinks-grid span { color:var(--ajc-muted); font-size:13px; }

.ajc-faq { margin-top: 50px; }
.ajc-faq-list { display:grid; gap:10px; }
.ajc-faq details {
    border:1px solid var(--ajc-line);
    border-radius:16px;
    background:#fff;
    padding:0 16px;
}
.ajc-faq summary {
    cursor:pointer;
    padding:16px 4px;
    font-weight:800;
}
.ajc-faq details p { color:var(--ajc-muted); margin:0 4px 17px; }

.ajc-note {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff8e8;
    border: 1px solid #f7e2ac;
    color: #5c4f2e;
    font-size: 14px;
}

.ajc-inline-list {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:18px 0;
}
.ajc-inline-list a {
    padding:8px 11px;
    border-radius:999px;
    background:#f3f4f9;
    color:#4c5570;
    font-size:13px;
    font-weight:700;
}

.ajc-empty {
    padding:36px;
    border-radius:20px;
    background:#f6f7fb;
    text-align:center;
    color:var(--ajc-muted);
}

@media (max-width: 980px) {
    .ajc-hero { grid-template-columns: 1fr; padding: 34px; }
    .ajc-hero-visual { min-height: 230px; }
    .ajc-stats { grid-template-columns: repeat(2,1fr); }
    .ajc-category-grid { grid-template-columns: repeat(2,1fr); }
    .ajc-card-grid { grid-template-columns: repeat(2,1fr); }
    .ajc-detail { grid-template-columns: 1fr; }
    .ajc-preview { position: static; }
    .ajc-tool-grid { grid-template-columns: 1fr; }
    .ajc-crosslinks-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
    .ajc-page { padding: 12px 12px 54px; }
    .ajc-hero { padding: 26px 20px; border-radius: 24px; gap:20px; }
    .ajc-hero h1 { font-size: 38px; }
    .ajc-hero p { font-size: 16px; }
    .ajc-stats { grid-template-columns: 1fr 1fr; gap:8px; }
    .ajc-category-grid,
    .ajc-card-grid,
    .ajc-crosslinks-grid { grid-template-columns: 1fr; }
    .ajc-card-grid { gap: 14px; }
    .ajc-info-grid { grid-template-columns: 1fr; }
    .ajc-section-head { align-items:flex-start; flex-direction:column; }
    .ajc-actions .ajc-btn { flex:1 1 100%; }
    .ajc-tool { padding:16px; border-radius:20px; }
    .ajc-tool-preview { min-height:390px; padding:10px; }
}
@media print {
    body * { visibility: hidden !important; }
    .ajc-print-target,
    .ajc-print-target * { visibility: visible !important; }
    .ajc-print-target {
        position: absolute !important;
        inset: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .ajc-print-target svg {
        width:210mm !important;
        height:297mm !important;
    }
    @page { size:A4 portrait; margin:0; }
}


/* V7 — protection anti-cache / SVG inline / vieux layout AnimyJob */
.ajc-page { overflow-x: hidden; }
.ajc-page .ajc-hero,
.ajc-page .ajc-section,
.ajc-page .ajc-card-grid,
.ajc-page .ajc-category-grid { min-width: 0; }
.ajc-page .ajc-inline-svg { overflow: hidden; min-width: 0; }
.ajc-page .ajc-inline-svg > svg { display:block; max-width:100%; }
.ajc-page .ajc-hero-paper.ajc-inline-svg > svg {
    width:100%; height:100%; max-height:100%;
}
.ajc-page .ajc-card-media.ajc-inline-svg > svg {
    width:185px; height:262px; max-width:100%; max-height:262px;
}
.ajc-page .ajc-card { min-width:0; }
.ajc-page .ajc-card-body { min-width:0; overflow:hidden; }
.ajc-page .ajc-card-body h3,
.ajc-page .ajc-card-body p { overflow-wrap:anywhere; word-break:normal; }
@media (max-width:620px) {
    .ajc-page .ajc-card-media.ajc-inline-svg > svg { width:170px; height:240px; }
    .ajc-page .ajc-hero-paper { width:min(230px,88%); }
}
