/* =====================================================================
   Publicité en ligne — sous-pages « canaux »
   (réseaux sociaux, Google Ads, moteurs d'IA)
   Complète engagement.css, base commune des sous-pages Publicité en ligne.
   ===================================================================== */

@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-marquee { to { transform: translateX(-50%); } }
@keyframes pc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 117, 31, 0.45); }
    100% { box-shadow: 0 0 0 18px rgba(255, 117, 31, 0); }
}

/* ---------- Barre de progression de lecture ---------- */
.pc-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 10000;
    pointer-events: none;
}

/* ---------- Hero : halo qui suit le curseur ---------- */
.pc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(650px circle at var(--mx, 75%) var(--my, 35%), rgba(255, 117, 31, 0.16), transparent 60%);
}

/* Mot qui défile dans le titre */
.text-rotator {
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
    padding-bottom: 0.08em;
}
.hero-title .text-rotator::after { display: none; }
.text-rotator > span {
    grid-area: 1 / 1;
    justify-self: start;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(105%) rotateX(-60deg);
    transform-origin: 50% 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.text-rotator > span.is-active { opacity: 1; transform: translateY(0) rotateX(0); }
.text-rotator > span.is-leaving { opacity: 0; transform: translateY(-105%) rotateX(60deg); }

/* Visuel du hero : inclinaison 3D + orbite d'icônes */
.pc-hero .hero-visual { perspective: 1200px; }
.pc-hero .hero-image-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.pc-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    --r: 280px;
    pointer-events: none;
    z-index: 6;
}
.pc-orbit__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    animation: pc-spin 40s linear infinite;
}
.pc-orbit__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.pc-orbit__icon {
    position: absolute;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
    animation: pc-spin 40s linear infinite reverse;
}
.pc-orbit__icon--primary { background: var(--gradient-primary); color: #fff; }

/* Boutons magnétiques */
[data-magnetic] { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease; }

/* ---------- Bandeau défilant ---------- */
.pc-marquee {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 0;
    background: var(--secondary);
}
/* Fondu des bords vers la couleur du bandeau (pas de transparence sur le fond de page) */
.pc-marquee::before,
.pc-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 8%;
    pointer-events: none;
}
.pc-marquee::before { left: 0; background: linear-gradient(90deg, var(--secondary), transparent); }
.pc-marquee::after { right: 0; background: linear-gradient(-90deg, var(--secondary), transparent); }
.pc-marquee__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: pc-marquee 40s linear infinite;
}
.pc-marquee:hover .pc-marquee__track { animation-play-state: paused; }
.pc-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}
.pc-marquee__item i { color: var(--primary); font-size: 1.15rem; }

/* ---------- Sections feature : révélations au scroll ---------- */
.animate-on-scroll .feature-image-wrapper {
    clip-path: inset(0 0 100% 0 round 24px);
    transition: clip-path 1.3s cubic-bezier(0.77, 0, 0.18, 1) 0.15s;
}
.animate-on-scroll.visible .feature-image-wrapper { clip-path: inset(0 0 0 0 round 24px); }
.animate-on-scroll .feature-image-wrapper img { transform: scale(1.15); transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.animate-on-scroll.visible .feature-image-wrapper img { transform: scale(1); }
.animate-on-scroll.visible .feature-image-wrapper:hover img { transform: scale(1.04); }

/* Le numéro se remplit de dégradé */
.animate-on-scroll .feature-number {
    background: var(--gradient-primary) no-repeat;
    background-size: 0% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-size 1.2s cubic-bezier(0.77, 0, 0.18, 1) 0.4s;
}
.animate-on-scroll.visible .feature-number { background-size: 100% 100%; }

/* Liste en cascade */
.animate-on-scroll .feature-list li {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(0.45s + var(--i, 0) * 90ms);
}
.animate-on-scroll.visible .feature-list li { opacity: 1; transform: none; }

/* ---------- Méthode : timeline qui se remplit au scroll ---------- */
.pc-process {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: var(--gradient-dark);
}
.pc-process::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
.pc-process .section-container { position: relative; z-index: 2; }
.pc-process .section-title { color: #fff; }
.pc-process .section-desc { color: rgba(255, 255, 255, 0.6); }
.pc-process__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    --progress: 0;
}
.pc-process__line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.pc-process__line-fill {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    transform: scaleX(var(--progress));
    transform-origin: 0 50%;
    box-shadow: 0 0 18px rgba(255, 117, 31, 0.6);
}
.pc-process__step { position: relative; text-align: center; padding: 0 0.5rem; }
.pc-process__dot {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-process__step h3 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.6rem;
    transition: color 0.5s ease;
}
.pc-process__step p { font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.45); transition: color 0.5s ease; }
.pc-process__step.is-active .pc-process__dot {
    color: #fff;
    border-color: transparent;
    background: var(--gradient-primary);
    transform: scale(1.1);
    animation: pc-pulse 1.6s ease-out 1;
}
.pc-process__step.is-active h3 { color: #fff; }
.pc-process__step.is-active p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Formats : vitrine à onglets ---------- */
.pc-formats { background: var(--gray-100); overflow: hidden; }
.pc-showcase {
    --dur: 5.5s;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: stretch;
}
.pc-showcase__tabs { display: flex; flex-direction: column; gap: 0.75rem; }
.pc-showcase__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1.3rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    color: var(--secondary);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
    transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s;
}
.pc-showcase.visible .pc-showcase__tab { opacity: 1; transform: none; }
.pc-showcase__tab:hover { border-color: rgba(255, 117, 31, 0.45); }
.pc-showcase__tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pc-showcase__num {
    min-width: 1.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-400);
    transition: color 0.4s ease;
}
.pc-showcase__label { flex: 1; font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600; }
.pc-showcase__arrow {
    color: var(--primary);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-showcase__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.pc-showcase__bar span {
    display: block;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: 0 50%;
}
.pc-showcase__tab.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}
.pc-showcase__tab.is-active .pc-showcase__num { color: var(--primary); }
.pc-showcase__tab.is-active .pc-showcase__arrow,
.pc-showcase__tab:hover .pc-showcase__arrow { opacity: 1; transform: none; }
.pc-showcase__tab.is-active .pc-showcase__bar span {
    animation: pc-fill var(--dur) linear forwards;
    animation-play-state: paused;
}
.pc-showcase.is-running .pc-showcase__tab.is-active .pc-showcase__bar span { animation-play-state: running; }
.pc-showcase.is-running.is-paused .pc-showcase__tab.is-active .pc-showcase__bar span { animation-play-state: paused; }
.pc-showcase.is-manual .pc-showcase__bar { display: none; }
@keyframes pc-fill { to { transform: scaleX(1); } }

/* Panneau : liseré lumineux tournant, grille, halo qui suit le curseur */
.pc-showcase__stage {
    position: relative;
    display: grid;
    min-height: 460px;
    border-radius: 28px;
    background: #000;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s ease 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.pc-showcase.visible .pc-showcase__stage { opacity: 1; transform: none; }
.pc-showcase__stage::before {
    content: '';
    position: absolute;
    inset: -60%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0 62%, var(--primary) 78%, transparent 92%);
    animation: pc-spin 7s linear infinite;
}
.pc-showcase__stage::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 26px;
    background:
        radial-gradient(circle at var(--sx, 75%) var(--sy, 20%), rgba(255, 117, 31, 0.28), transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
        #0a0a0a;
}
.pc-showcase__ghost {
    position: absolute;
    right: 1.5rem;
    bottom: -2.5rem;
    z-index: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    user-select: none;
}
.pc-showcase__ghost.is-changing { animation: pc-ghost 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pc-ghost { from { opacity: 0; transform: translateY(50px); } }

.pc-showcase__panel {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    color: #fff;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.45s;
}
.pc-showcase__panel.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.pc-showcase__panel > * {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 0.4s ease, transform 0.45s ease, filter 0.4s ease;
}
.pc-showcase__panel > .pc-showcase__icon { transform: translateY(24px) scale(0.6) rotate(-20deg); }
.pc-showcase__panel.is-active > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}
.pc-showcase__panel.is-active > :nth-child(1) { transition-delay: 0.15s; }
.pc-showcase__panel.is-active > :nth-child(2) { transition-delay: 0.22s; }
.pc-showcase__panel.is-active > :nth-child(3) { transition-delay: 0.3s; }
.pc-showcase__panel.is-active > :nth-child(4) { transition-delay: 0.38s; }
.pc-showcase__panel.is-active > :nth-child(5) { transition-delay: 0.46s; }
.pc-showcase__icon {
    width: 84px;
    height: 84px;
    margin-bottom: 1.75rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 18px 40px -12px rgba(255, 117, 31, 0.6);
}
.pc-showcase__panel.is-active .pc-showcase__icon i { animation: pc-float 3s ease-in-out 1s infinite; }
@keyframes pc-float { 50% { transform: translateY(-5px); } }
.pc-showcase__count {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.pc-showcase__panel h3 { margin-bottom: 1rem; font-size: 2.1rem; font-weight: 700; color: #fff; }
.pc-showcase__panel p {
    max-width: 32rem;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}
.pc-showcase__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.35rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(var(--primary), var(--primary)) 0 100% / 0 2px no-repeat;
    transition: background-size 0.4s ease;
}
.pc-showcase__link i { color: var(--primary); transition: transform 0.3s ease; }
.pc-showcase__link:hover { color: #fff; background-size: 100% 2px; }
.pc-showcase__link:hover i { transform: translateX(4px); }

/* ---------- FAQ en accordéon ---------- */
.pc-faq { background: #fff; }
.pc-faq__list { max-width: 900px; margin: 0 auto; }
.pc-faq__item {
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.3s ease;
}
.pc-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    transition: color 0.3s ease;
}
.pc-faq__question:hover { color: var(--primary); }
.pc-faq__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(255, 117, 31, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.pc-faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-faq__answer > div { overflow: hidden; }
.pc-faq__answer p { padding: 0 0.5rem 1.6rem; font-size: 1.02rem; line-height: 1.8; color: var(--gray-600); }
.pc-faq__item.is-open .pc-faq__answer { grid-template-rows: 1fr; }
.pc-faq__item.is-open .pc-faq__icon { transform: rotate(135deg); background: var(--primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .pc-orbit { width: 480px; height: 480px; margin: -240px 0 0 -240px; --r: 240px; }
}
@media (max-width: 992px) {
    .pc-orbit { display: none; }
    .pc-showcase { grid-template-columns: 1fr; gap: 1.5rem; }
    .pc-showcase__stage { order: -1; min-height: 380px; }
    .pc-showcase__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .pc-showcase__tab { padding: 1rem 1.1rem; gap: 0.75rem; }
    .pc-showcase__arrow { display: none; }
    .pc-process__track { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 90px; }
    .pc-process__line { top: 0; bottom: 0; left: 31px; right: auto; width: 2px; height: auto; }
    .pc-process__line-fill { transform: scaleY(var(--progress)); transform-origin: 50% 0; }
    .pc-process__step { text-align: left; padding: 0; }
    .pc-process__dot { position: absolute; left: -90px; top: -6px; margin: 0; }
}
@media (max-width: 640px) {
    .pc-showcase__stage { min-height: 400px; }
    .pc-showcase__panel { padding: 2rem 1.5rem; }
    .pc-showcase__panel h3 { font-size: 1.6rem; }
    .pc-showcase__ghost { font-size: 8rem; bottom: -1.5rem; }
    .pc-showcase__label { font-size: 0.92rem; }
    .pc-showcase__num { min-width: 0; }
    .pc-faq__question { font-size: 1.1rem; }
}

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
    .pc-marquee__track,
    .pc-orbit__ring,
    .pc-orbit__icon,
    .pc-showcase__stage::before,
    .pc-showcase__ghost.is-changing,
    .pc-showcase__panel.is-active .pc-showcase__icon i { animation: none; }
    .pc-showcase__bar { display: none; }
    .text-rotator > span,
    .pc-showcase__tab,
    .pc-showcase__stage,
    .pc-showcase__panel > *,
    .pc-faq__answer,
    .animate-on-scroll .feature-image-wrapper,
    .animate-on-scroll .feature-image-wrapper img,
    .animate-on-scroll .feature-list li,
    .animate-on-scroll .feature-number { transition: none; }
}

/* =====================================================================
   Charte graphique Ubikom (sous-pages publicité) :
   noir #000000, orange #FF751F, titres Poppins, paragraphes Montserrat
   ===================================================================== */
.pc-charte {
    --primary: #FF751F;
    --primary-light: #FF9A57;
    --primary-dark: #E5600D;
    --secondary: #000000;
    --dark: #000000;
    --gradient-primary: linear-gradient(135deg, #FF751F 0%, #FF9A57 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #141414 100%);
    --shadow-primary: 0 10px 40px -10px rgba(255, 117, 31, 0.45);
    --ubikom-orange: #FF751F;
    --ubikom-orange-light: #FF9A57;
    --ubikom-dark: #000000;
    /* main.css impose ces variables en !important sur h1–h6 et p, li, a */
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    font-family: 'Montserrat', sans-serif;
}
.pc-charte :is(button, input, textarea, select, label, blockquote) { font-family: 'Montserrat', sans-serif; }
.pc-charte :is(h1, h2, h3, h4, h5, h6),
.pc-charte .feature-number { font-family: 'Poppins', sans-serif; letter-spacing: -0.01em; }
.pc-charte .hero-shape-2 { background: var(--primary-dark); opacity: 0.1; }
.pc-charte .hero-badge { background: rgba(255, 117, 31, 0.15); border-color: rgba(255, 117, 31, 0.3); }
.pc-charte .hero-title span::after { background: rgba(255, 117, 31, 0.3); }
.pc-charte .btn-primary:hover { box-shadow: 0 15px 50px -10px rgba(255, 117, 31, 0.5); }
.pc-charte .section-tag { background: rgba(255, 117, 31, 0.1); }
