/* Hero accueil — violet #847BF1 + accent orange texte « en Ligne » */

.page-home main > section.hero-app-card:first-of-type,
.page-home main > section.hero-section:first-of-type,
.visitor-app main > section.hero-app-card:first-of-type,
.visitor-app main > section.hero-section:first-of-type {
    margin-top: 0 !important;
}

@media (min-width: 769px) {
    .hero-app-card { display: none !important; }
    .home-video-present--mobile { display: none !important; }
    .hero-section { display: block !important; }
}
@media (max-width: 768px) {
    .hero-app-card { display: block !important; }
    .home-video-present--mobile { display: block !important; }
    .hero-section { display: none !important; }
}

@media (max-width: 768px) {
    .page-home main > section.hero-app-card:first-of-type,
    .visitor-app main > section.hero-app-card:first-of-type {
        padding-top: 92px !important;
        margin-top: 0 !important;
    }
}

.hero-app-card {
    background: linear-gradient(135deg, #847bf1 0%, #6366f1 45%, #8b5cf6 100%);
    padding: 2rem 1.25rem 2.25rem;
    position: relative;
    overflow: hidden;
}
.hero-app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-app-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.hero-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-app-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0.35rem 0 1rem;
    letter-spacing: -0.02em;
}
.hero-app-highlight {
    color: #ffb81c;
    background: none;
    -webkit-text-fill-color: #ffb81c;
    display: block;
    margin-top: 0.25rem;
}
.hero-app-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
    max-width: 28rem;
}
.hero-app-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.hero-app-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
    min-width: 100px;
}
.hero-app-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffb81c;
    margin-bottom: 0.25rem;
}
.hero-app-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
    padding: 1rem 1.5rem;
    background: #fff;
    color: #4f46e5 !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 1rem;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    color: #4338ca !important;
}

/* Hero desktop */
@media (min-width: 769px) {
    .hero-section {
        background: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 22%, #312e81 45%, #4338ca 72%, #4f46e5 100%);
    }
    .hero-section .hero-btn-primary {
        color: #1e1b4b !important;
        border: 1px solid rgba(255, 184, 28, 0.35);
    }
    .hero-section .hero-btn-primary:hover {
        color: #4338ca !important;
        border-color: #ffb81c;
    }
}
.hero-section {
    background: linear-gradient(135deg, #847bf1 0%, #6366f1 45%, #8b5cf6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 2.5rem 0 3rem;
}
.page-home .hero-section,
.visitor-app .hero-section { margin-top: 0; }
.hero-section .hero-background { position: absolute; inset: 0; pointer-events: none; }
.hero-section .hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-section .hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0.35rem 0 1.25rem;
    letter-spacing: -0.02em;
}
.hero-section .hero-highlight {
    color: #ffb81c;
    background: none;
    -webkit-text-fill-color: #ffb81c;
    display: block;
}
.hero-section .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 32rem;
    margin-bottom: 2rem;
}
.hero-section .hero-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.hero-section .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 110px;
}
.hero-section .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffb81c;
    line-height: 1.1;
}
.hero-section .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}
.hero-section .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.hero-section .hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #fff;
    color: #4f46e5 !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.85rem;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
}
.hero-section .hero-btn-primary:hover {
    transform: translateY(-2px);
    color: #4338ca !important;
}
.hero-section .hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s;
}
.hero-section .hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff !important;
}
.hero-section .hero-visual-img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-app-visual {
    position: relative;
    z-index: 2;
    max-width: 320px;
    margin-inline: auto;
}
.hero-app-visual .hero-visual-img {
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Vidéo présentation — style Cawiyee */
.home-video-present {
    background: #f3f4f6;
    padding: 2.5rem 1rem 3rem;
}
.home-video-present__inner {
    max-width: 920px;
    margin: 0 auto;
}
.home-video-present__head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.home-video-present__kicker {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4a017;
    margin: 0 0 0.65rem;
}
.home-video-present__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    color: #1e1b4b;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.home-video-present__lead {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}
.home-video-present__frame-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.home-video-present__frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(30, 27, 75, 0.18);
}
.home-video-present__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    vertical-align: top;
    background: #000;
}
.home-video-present__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.15) 45%, rgba(15, 23, 42, 0.08) 100%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}
.home-video-present__frame.is-playing .home-video-present__overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.home-video-present__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #847bf1 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-video-present__play .material-symbols-outlined {
    font-size: 2.25rem;
    margin-left: 0.15rem;
}
.home-video-present__play:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.55);
}
.home-video-present__tags {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: none;
}
.home-video-present__tag {
    display: inline-block;
    width: fit-content;
    padding: 0.35rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 0.25rem;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.25);
}
@media (min-width: 769px) {
    .home-video-present {
        padding: 3.5rem 1.5rem 4rem;
    }
    .home-video-present__head {
        margin-bottom: 2.25rem;
    }
    .home-video-present__frame {
        border-radius: 1.65rem;
    }
    .home-video-present__play {
        width: 4.75rem;
        height: 4.75rem;
    }
}

/* Legacy — conservé pour compatibilité */
.hero-app-video-section {
    display: none;
    background: #fff;
    padding: 0.5rem 1rem 2.25rem;
    position: relative;
    overflow: hidden;
}
.hero-app-video-section::before {
    display: none;
}
.hero-app-video-section__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}
.hero-app-video-section__frame {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow:
        0 24px 56px rgba(30, 27, 75, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transform: translateY(-0.35rem);
}
.hero-app-video-section__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 2;
}
.hero-app-video-section .hero-video-inline {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    vertical-align: top;
    border-radius: 0;
    background: #000;
}
@media (min-width: 400px) {
    .hero-app-video-section {
        padding-inline: 1.25rem;
    }
    .hero-app-video-section__frame {
        border-radius: 2.25rem;
    }
}

/* Vidéo desktop dans le hero */
.hero-video-inline {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}
.hero-video-inline--desktop {
    max-width: 560px;
}
.hero-video-inline video,
.hero-video-inline__player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    object-fit: cover;
}
.hero-video-inline__player:focus,
.hero-video-inline video:focus {
    outline: none;
}
.hero-video-inline--desktop video,
.hero-video-inline--desktop .hero-video-inline__player {
    border-radius: 1.15rem;
    aspect-ratio: 16 / 10;
}

@media (min-width: 769px) {
    .page-home main > section.hero-section:first-of-type,
    .visitor-app main > section.hero-section:first-of-type {
        padding-top: 96px !important;
    }
    .hero-section { padding: 3rem 0; }
}

@media (max-width: 576px) {
    .hero-app-title { font-size: 1.625rem; }
    .hero-app-stat { min-width: 80px; }
}
