/* ISALYS — polish commercial (portail + offre), couleurs inchangées */

/* ===== Atmosphere : garder le fond photo, renforcer la profondeur ===== */
body.page-portail .overlay {
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(63, 219, 52, 0.14) 0%, transparent 55%),
        linear-gradient(165deg, rgba(8, 14, 22, 0.58) 0%, rgba(10, 22, 14, 0.42) 45%, rgba(8, 12, 18, 0.62) 100%);
}

/* ===== Hero portail ===== */
.page-portail .nav-hero-wrap {
    max-width: 920px;
    margin-top: clamp(1.5rem, 4vh, 2.75rem);
}

.page-portail .nav-hero-wrap .isalys-panel--hero {
    background:
        linear-gradient(145deg, rgba(18, 28, 22, 0.88) 0%, rgba(12, 36, 18, 0.82) 55%, rgba(16, 24, 20, 0.9) 100%);
    border: 1px solid rgba(63, 219, 52, 0.28);
    border-bottom: 3px solid var(--secondary);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(63, 219, 52, 0.12);
    animation: isalysHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-portail .isalys-panel--hero .container-header {
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
}

.page-portail .portail-hero-logo {
    max-width: min(220px, 52vw) !important;
    margin-bottom: 0.85rem !important;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(63, 219, 52, 0.25));
}

.page-portail .isalys-panel--hero .container-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 0 28px rgba(63, 219, 52, 0.45);
    margin-bottom: 0.65rem;
}

.page-portail .isalys-panel--hero .container-header h1 .icon-gold {
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.55));
}

.page-portail .portail-hero-lead {
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    line-height: 1.55;
}

.page-portail .portail-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0 0.85rem;
}

.page-portail .portail-hero-cta .btn-primary {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.55rem;
    font-size: 1.02rem;
    box-shadow: 0 6px 22px rgba(63, 219, 52, 0.42);
    animation: isalysCtaPulse 2.8s ease-in-out infinite;
}

.page-portail .portail-hero-cta .btn-secondary {
    border-color: rgba(63, 219, 52, 0.45);
    background: rgba(0, 0, 0, 0.28);
    font-weight: 600;
}

.page-portail .portail-hero-cta .btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(63, 219, 52, 0.16);
}

/* ===== Cartes portail ===== */
.page-portail .portail-cards-wrap {
    margin-top: 1.75rem;
}

.page-portail .isalys-panel--portail-cards {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.25rem 0 0;
}

.page-portail .portail-card-inner {
    background: linear-gradient(160deg, rgba(8, 14, 18, 0.62) 0%, rgba(6, 20, 12, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.page-portail .portail-card:hover .portail-card-inner {
    border-color: rgba(63, 219, 52, 0.55);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(63, 219, 52, 0.22);
}

.page-portail .portail-icon {
    font-size: 2.35rem;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-portail .portail-card:hover .portail-icon {
    transform: scale(1.12);
}

.page-portail .portail-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1.2rem;
}

.page-portail .portail-card-highlight .portail-card-inner {
    border-color: rgba(241, 196, 15, 0.5);
    background:
        linear-gradient(160deg, rgba(28, 24, 8, 0.7) 0%, rgba(10, 28, 14, 0.62) 100%);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.32),
        0 0 26px rgba(241, 196, 15, 0.18);
    animation: isalysHighlightGlow 3.2s ease-in-out infinite;
}

.page-portail .portail-card-highlight .portail-title {
    color: #f1c40f;
}

.page-portail .portail-actions-grid .portail-card {
    animation: isalysCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-portail .portail-actions--row .portail-card:nth-child(1) { animation-delay: 0.05s; }
.page-portail .portail-actions--row .portail-card:nth-child(2) { animation-delay: 0.12s; }
.page-portail .portail-actions--row .portail-card:nth-child(3) { animation-delay: 0.19s; }
.page-portail .portail-actions--row-secondary .portail-card:nth-child(1) { animation-delay: 0.26s; }
.page-portail .portail-actions--row-secondary .portail-card:nth-child(2) { animation-delay: 0.33s; }

/* ===== Bandeau commercial ===== */
.portail-sales-banner {
    max-width: 920px;
    margin: 1.75rem auto 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.portail-sales-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    padding: 1.35rem 1.5rem 1.5rem;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(12, 32, 18, 0.88) 0%, rgba(10, 18, 24, 0.9) 100%);
    border: 1px solid rgba(63, 219, 52, 0.4);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(63, 219, 52, 0.16);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    animation: isalysCardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.portail-sales-banner__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    color: var(--secondary-light);
    letter-spacing: -0.015em;
    margin: 0;
}

.portail-sales-banner__text {
    margin: 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    font-size: 1.02rem;
}

.portail-sales-banner__contact {
    margin: 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
}

.portail-sales-banner__contact a {
    font-weight: 700;
}

.portail-sales-banner .btn-primary {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.85rem 1.45rem;
    margin-top: 0.15rem;
}

/* ===== Page offre ===== */
.offer-page .auth-wide-wrap {
    max-width: 920px;
}

.offer-page .isalys-info-card {
    background: linear-gradient(160deg, rgba(10, 18, 16, 0.72), rgba(8, 24, 14, 0.68));
    border: 1px solid rgba(63, 219, 52, 0.28);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.offer-page .isalys-info-card .module-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.offer-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 0;
    text-align: left;
}

.offer-value-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(63, 219, 52, 0.22);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: isalysCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.offer-value-item:nth-child(1) { animation-delay: 0.05s; }
.offer-value-item:nth-child(2) { animation-delay: 0.12s; }
.offer-value-item:nth-child(3) { animation-delay: 0.19s; }
.offer-value-item:nth-child(4) { animation-delay: 0.26s; }

.offer-value-item:hover {
    border-color: rgba(63, 219, 52, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), 0 0 18px rgba(63, 219, 52, 0.12);
}

.offer-value-item__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(63, 219, 52, 0.14);
    border: 1px solid rgba(63, 219, 52, 0.35);
    color: var(--secondary-light);
    font-size: 1.15rem;
}

.offer-value-item__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.45;
}

.offer-contact-panel {
    margin-top: 1.35rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    text-align: center;
    background: linear-gradient(135deg, rgba(12, 32, 18, 0.75), rgba(10, 18, 24, 0.8));
    border: 1px solid rgba(63, 219, 52, 0.38);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 24px rgba(63, 219, 52, 0.12);
}

.offer-contact-panel strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--secondary-light);
    margin-bottom: 0.35rem;
}

.offer-cta-row {
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.offer-cta-row .btn-primary {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    font-size: 1.02rem;
    box-shadow: 0 6px 22px rgba(63, 219, 52, 0.4);
}

@media (max-width: 699px) {
    .offer-value-grid {
        grid-template-columns: 1fr;
    }

    .page-portail .portail-hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .page-portail .portail-hero-cta .btn {
        width: min(100%, 22rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-portail .nav-hero-wrap .isalys-panel--hero,
    .page-portail .portail-actions-grid .portail-card,
    .page-portail .portail-hero-cta .btn-primary,
    .page-portail .portail-card-highlight .portail-card-inner,
    .portail-sales-banner__inner,
    .offer-value-item {
        animation: none !important;
    }

    .page-portail .portail-card:hover .portail-icon,
    .offer-value-item:hover {
        transform: none;
    }
}

@keyframes isalysHeroIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes isalysCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes isalysCtaPulse {
    0%, 100% {
        box-shadow: 0 6px 22px rgba(63, 219, 52, 0.42);
    }
    50% {
        box-shadow: 0 8px 30px rgba(63, 219, 52, 0.62);
    }
}

@keyframes isalysHighlightGlow {
    0%, 100% {
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.32),
            0 0 22px rgba(241, 196, 15, 0.16);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.32),
            0 0 34px rgba(241, 196, 15, 0.32);
    }
}
