/* ===================================================
 * ABCISSE HERO WIDGET - STYLES
 * =================================================== */

/* ===== WRAPPER ===== */
.phero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    isolation: isolate;
}

/* ===== BACKGROUND ===== */
.phero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.phero-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}
.phero-bg-image.phero-parallax {
    transition: transform 0.1s linear;
    height: 120%;
    top: -10%;
}
.phero-bg-video {
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}
.phero-video-el,
.phero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    border: 0;
}

/* ===== OVERLAY ===== */
.phero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.phero-overlay-color { background-color: rgba(0,0,0,0.45); }

.phero-overlay-grad-dark-bottom .phero-overlay-gradient { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%); }
.phero-overlay-grad-dark-top    .phero-overlay-gradient { background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); }
.phero-overlay-grad-dark-left   .phero-overlay-gradient { background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); }
.phero-overlay-grad-dark-right  .phero-overlay-gradient { background: linear-gradient(270deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); }
.phero-overlay-grad-dark-radial .phero-overlay-gradient { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%); }
.phero-overlay-grad-colored-blue   .phero-overlay-gradient { background: linear-gradient(135deg, rgba(2,6,23,0.85) 0%, rgba(7,89,133,0.7) 100%); }
.phero-overlay-grad-colored-purple .phero-overlay-gradient { background: linear-gradient(135deg, rgba(15,3,30,0.85) 0%, rgba(123,44,191,0.7) 100%); }

/* ===== PATTERN OVERLAY ===== */
.phero-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.1;
    background-repeat: repeat;
}
.phero-pattern-none .phero-pattern { display: none; }
.phero-pattern-dots .phero-pattern {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    color: #fff;
}
.phero-pattern-grid .phero-pattern {
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
}
.phero-pattern-lines .phero-pattern {
    background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 0, transparent 50%);
    background-size: 20px 20px;
    color: #fff;
}
.phero-pattern-noise .phero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== CONTENT ===== */
.phero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: inherit;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.phero-inner {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: inherit;
}

/* ===== SUR-TITRE ===== */
.phero-supratitle-wrap { display: block; }
.phero-supratitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
}
.phero-supratitle-icon { display: inline-flex; }
.phero-supratitle-icon svg, .phero-supratitle-icon i { width: 14px; height: 14px; font-size: 14px; }

/* Style badge */
.phero-supra-badge .phero-supratitle {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Style ligne */
.phero-supra-line .phero-supratitle::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: currentColor;
    margin-right: 12px;
    vertical-align: middle;
}

/* ===== TITRE ===== */
.phero-title {
    color: #fff;
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.phero-title span { color: #00d9ff; }
.phero-hl-underline .phero-title span {
    color: inherit;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 4px;
    padding-bottom: 2px;
}
.phero-hl-highlight .phero-title span {
    color: inherit;
    background-color: rgba(255, 220, 0, 0.85);
    padding: 0 8px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ===== SOUS-TITRE ===== */
.phero-subtitle {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ===== DESCRIPTION ===== */
.phero-description {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 0 30px;
}
.phero-description p { margin: 0 0 1em; }
.phero-description p:last-child { margin-bottom: 0; }

/* ===== BUTTONS ===== */
.phero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.phero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
}
.phero-btn-icon { display: inline-flex; transition: transform 0.3s; }
.phero-btn-icon svg, .phero-btn-icon i { width: 1em; height: 1em; font-size: 1em; }

/* Animations boutons */
[class*="phero-btn1-anim-lift"] .phero-btn-1:hover,
[class*="phero-btn2-anim-lift"] .phero-btn-2:hover { transform: translateY(-3px); }

[class*="phero-btn1-anim-scale"] .phero-btn-1:hover,
[class*="phero-btn2-anim-scale"] .phero-btn-2:hover { transform: scale(1.05); }

[class*="phero-btn1-anim-shine"] .phero-btn-1::before,
[class*="phero-btn2-anim-shine"] .phero-btn-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
[class*="phero-btn1-anim-shine"] .phero-btn-1:hover::before,
[class*="phero-btn2-anim-shine"] .phero-btn-2:hover::before { left: 100%; }

[class*="phero-btn1-anim-arrow"] .phero-btn-1:hover .phero-btn-icon,
[class*="phero-btn2-anim-arrow"] .phero-btn-2:hover .phero-btn-icon { transform: translateX(6px); }

/* ===== SCROLL INDICATOR ===== */
.phero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: phero-bounce-soft 2.5s ease-in-out infinite;
}
@keyframes phero-bounce-soft {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}
.phero-scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 13px;
    animation: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.phero-scroll-mouse span {
    display: block;
    width: 3px;
    height: 7px;
    margin: 8px auto 0;
    background-color: #fff;
    border-radius: 2px;
    animation: phero-wheel 1.8s ease-in-out infinite;
}
@keyframes phero-wheel {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}
.phero-scroll-arrow svg { width: 28px; height: 28px; }
.phero-scroll-text { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.phero-scroll-text + svg { width: 18px; height: 18px; }

/* ===== ANIMATIONS D'ENTRÉE ===== */
.phero-anim-none .phero-anim-item { opacity: 1; transform: none; }

.phero-anim-fade .phero-anim-item,
.phero-anim-fade-up .phero-anim-item,
.phero-anim-fade-down .phero-anim-item,
.phero-anim-zoom .phero-anim-item,
.phero-anim-slide-left .phero-anim-item {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.phero-anim-fade-up .phero-anim-item     { transform: translateY(30px); }
.phero-anim-fade-down .phero-anim-item   { transform: translateY(-30px); }
.phero-anim-zoom .phero-anim-item        { transform: scale(0.92); }
.phero-anim-slide-left .phero-anim-item  { transform: translateX(-50px); }

.phero-wrapper.is-loaded .phero-anim-item {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.phero-wrapper.is-loaded .phero-anim-item:nth-child(1) { transition-delay: 0.05s; }
.phero-wrapper.is-loaded .phero-anim-item:nth-child(2) { transition-delay: 0.2s; }
.phero-wrapper.is-loaded .phero-anim-item:nth-child(3) { transition-delay: 0.35s; }
.phero-wrapper.is-loaded .phero-anim-item:nth-child(4) { transition-delay: 0.5s; }
.phero-wrapper.is-loaded .phero-anim-item:nth-child(5) { transition-delay: 0.65s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .phero-title { font-size: 48px !important; }
    .phero-subtitle { font-size: 19px; }
}
@media (max-width: 600px) {
    .phero-title { font-size: 36px !important; line-height: 1.15; }
    .phero-subtitle { font-size: 17px; }
    .phero-description { font-size: 15px; }
    .phero-buttons { flex-direction: column; width: 100%; align-items: stretch; }
    .phero-btn { width: 100%; }
    .phero-content { padding: 40px 18px !important; }
}

/* Désactiver la vidéo sur mobile si demandé */
@media (max-width: 768px) {
    .phero-wrapper[data-mobile-video="1"] .phero-video-el,
    .phero-wrapper[data-mobile-video="1"] .phero-video-iframe {
        display: none;
    }
}


/* ===================================================
 * 🎨 PRESET 1 : CORPORATE PRO
 * Clean, business, accent bleu
 * =================================================== */
.phero-preset-corporate .phero-overlay-color { background-color: rgba(15, 23, 42, 0.65); }
.phero-preset-corporate.phero-overlay-grad-dark-bottom .phero-overlay {
    background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.85) 100%);
}

.phero-preset-corporate .phero-supratitle {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 7px 18px;
    border-radius: 100px;
    letter-spacing: 0.18em;
}
.phero-preset-corporate.phero-supra-line .phero-supratitle { background: transparent; border: 0; padding: 0; }

.phero-preset-corporate .phero-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.phero-preset-corporate .phero-title span {
    color: #38bdf8;
}
.phero-preset-corporate.phero-hl-gradient .phero-title span {
    background: linear-gradient(135deg, #38bdf8 0%, #0073e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phero-preset-corporate .phero-subtitle { color: #cbd5e1; font-weight: 500; }
.phero-preset-corporate .phero-description { color: rgba(255,255,255,0.85); }

.phero-preset-corporate .phero-btn-1 {
    background-color: #0073e6;
    color: #ffffff;
    border: 2px solid #0073e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 115, 230, 0.3);
}
.phero-preset-corporate .phero-btn-1:hover {
    background-color: #005bb5;
    border-color: #005bb5;
    box-shadow: 0 12px 32px rgba(0, 115, 230, 0.5);
    transform: translateY(-3px);
}
.phero-preset-corporate .phero-btn-2 {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
}
.phero-preset-corporate .phero-btn-2:hover {
    background-color: #ffffff;
    color: #0073e6;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}


/* ===================================================
 * 🌙 PRESET 2 : MODERN TECH
 * Sombre, néon cyan, glassmorphism, SaaS
 * =================================================== */
.phero-preset-modern .phero-overlay-color { background-color: rgba(6, 6, 12, 0.7); }
.phero-preset-modern .phero-overlay {
    background: radial-gradient(ellipse at center, rgba(6,6,12,0.4) 0%, rgba(0,0,0,0.95) 100%) !important;
}

/* Effet glow décoratif */
.phero-preset-modern .phero-content::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,217,255,0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.phero-preset-modern .phero-supratitle {
    color: #00d9ff;
    background-color: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.35);
    padding: 8px 18px;
    border-radius: 100px;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.phero-preset-modern .phero-title {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}
.phero-preset-modern .phero-title span {
    background: linear-gradient(135deg, #00d9ff 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.phero-preset-modern .phero-subtitle {
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 16px !important;
}

.phero-preset-modern .phero-description { color: rgba(203, 213, 225, 0.9); }

.phero-preset-modern .phero-btn-1 {
    background: linear-gradient(135deg, #00d9ff 0%, #0073e6 100%);
    color: #0f0f12;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}
.phero-preset-modern .phero-btn-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 217, 255, 0.6);
}
.phero-preset-modern .phero-btn-2 {
    background: rgba(255, 255, 255, 0.05);
    color: #00d9ff;
    border: 2px solid #00d9ff;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.phero-preset-modern .phero-btn-2:hover {
    background-color: #00d9ff;
    color: #0f0f12;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 217, 255, 0.5);
}

.phero-preset-modern .phero-scroll-indicator { color: #00d9ff; text-shadow: 0 0 8px rgba(0, 217, 255, 0.5); }
.phero-preset-modern .phero-scroll-mouse span { background-color: #00d9ff; box-shadow: 0 0 6px rgba(0, 217, 255, 0.6); }


/* ===================================================
 * 🎬 PRESET 3 : CINEMATIC LUXURY
 * Élégance haute couture, sérif, or, raffinement
 * =================================================== */
.phero-preset-cinematic .phero-overlay-color { background-color: rgba(10, 5, 0, 0.55); }
.phero-preset-cinematic .phero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%) !important;
}

.phero-preset-cinematic .phero-supratitle {
    color: #d4af37;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.3em;
    font-size: 12px;
}
.phero-preset-cinematic .phero-supratitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #d4af37;
    margin-right: 16px;
    vertical-align: middle;
}
.phero-preset-cinematic .phero-supratitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #d4af37;
    margin-left: 16px;
    vertical-align: middle;
}

.phero-preset-cinematic .phero-title {
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.15;
    font-style: normal;
}
.phero-preset-cinematic .phero-title span {
    color: #d4af37;
    font-style: italic;
    font-weight: 400;
}

.phero-preset-cinematic .phero-subtitle {
    color: #e5d9b3;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.phero-preset-cinematic .phero-description {
    color: rgba(255, 255, 255, 0.8);
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.7;
    font-size: 17px;
}

.phero-preset-cinematic .phero-btn-1 {
    background: linear-gradient(135deg, #d4af37 0%, #b8941d 100%);
    color: #0a0a0a;
    border: 1px solid #d4af37;
    border-radius: 0;
    font-family: Georgia, serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    padding: 14px 36px !important;
    transition: all 0.5s ease;
}
.phero-preset-cinematic .phero-btn-1:hover {
    background: #ffffff;
    border-color: #ffffff;
    letter-spacing: 0.3em;
    transform: none;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}
.phero-preset-cinematic .phero-btn-2 {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0;
    font-family: Georgia, serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    padding: 14px 36px !important;
    transition: all 0.5s ease;
}
.phero-preset-cinematic .phero-btn-2:hover {
    background-color: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
    letter-spacing: 0.3em;
    transform: none;
}

.phero-preset-cinematic .phero-scroll-indicator { color: #d4af37; }
.phero-preset-cinematic .phero-scroll-text { font-family: Georgia, serif; letter-spacing: 0.3em; font-weight: 400; }
