/* Configuration & Comportements Globaux */
:root {
    scroll-behavior: smooth;
}

body {
    background-color: #051424;
    color: #d4e4fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-authoritative {
    font-family: 'Lora', serif;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(14, 26, 40, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Lueur de texte principal */
.text-glow-primary {
    text-shadow: 0 0 35px rgba(0, 242, 255, 0.55), 0 0 80px rgba(0, 242, 255, 0.18);
}

/* Surbrillance de texte */
.highlight {
    background: linear-gradient(120deg, transparent 0%, rgba(0, 242, 255, 0.16) 50%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.35em;
    background-position: 0 90%;
    padding: 0 3px;
}

/* Animation d'apparition au défilement */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Bouton CTA principal — effet shimmer + glow */
.cta-pulse {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF5722, #FF7043);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.cta-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cta-pulse:hover::after { opacity: 1; }
.cta-pulse:hover {
    box-shadow: 0 0 32px rgba(255, 87, 34, 0.6), 0 8px 28px rgba(255, 87, 34, 0.32);
}

/* Bouton de navigation principal */
.btn-nav-cta {
    background: linear-gradient(135deg, #FF5722, #FF6D40);
    transition: all 0.25s ease;
}
.btn-nav-cta:hover {
    background: linear-gradient(135deg, #FF6D40, #FF8A65);
    box-shadow: 0 0 22px rgba(255, 87, 34, 0.45);
}

/* Cartes d'offre — hover lift & glow */
.offer-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}
.offer-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.22) !important;
}
.offer-card-featured:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 55px rgba(0, 242, 255, 0.13);
}

/* Bouton outline avec hover cyan */
.btn-outline {
    position: relative;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: rgba(0, 242, 255, 0.5) !important;
    background: rgba(0, 242, 255, 0.07) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.08);
}

/* Liens de navigation avec soulignement animé */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #00F2FF;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.active {
    color: #00F2FF !important;
}
.nav-link.active::after { width: 100%; }

/* Diviseur de section */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.18), transparent);
}

/* Badge de catégorie */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    background: rgba(0, 242, 255, 0.05);
    color: #00F2FF;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Arrière-plans thématiques des cartes */
.excel-bg-card {
    background: linear-gradient(135deg, rgba(16, 124, 65, 0.22) 0%, rgba(5, 20, 36, 0.88) 100%);
    position: relative;
    overflow: hidden;
}
.excel-bg-card::before {
    content: "📊";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.13;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.excel-bg-card:hover::before { opacity: 0.22; transform: scale(1.1) rotate(-6deg); }

.suite-bg-card {
    background: linear-gradient(135deg, rgba(216, 59, 1, 0.22) 0%, rgba(5, 20, 36, 0.88) 100%);
    position: relative;
    overflow: hidden;
}
.suite-bg-card::before {
    content: "🖥️";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.13;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.suite-bg-card:hover::before { opacity: 0.22; transform: scale(1.1) rotate(-6deg); }

.all-bg-card {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12) 0%, rgba(255, 87, 34, 0.12) 100%);
    position: relative;
    overflow: hidden;
}
.all-bg-card::before {
    content: "👑";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.16;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.all-bg-card:hover::before { opacity: 0.28; transform: scale(1.1) rotate(-6deg); }

/* Nouveaux arrière-plans pour la page E-Books */
.web-bg-card {
    background: linear-gradient(135deg, rgba(97, 97, 255, 0.22) 0%, rgba(5, 20, 36, 0.88) 100%);
    position: relative;
    overflow: hidden;
}
.web-bg-card::before {
    content: "💻";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.13;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.web-bg-card:hover::before { opacity: 0.22; transform: scale(1.1) rotate(-6deg); }

.js-bg-card {
    background: linear-gradient(135deg, rgba(240, 219, 79, 0.18) 0%, rgba(5, 20, 36, 0.88) 100%);
    position: relative;
    overflow: hidden;
}
.js-bg-card::before {
    content: "⚡";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.15;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.js-bg-card:hover::before { opacity: 0.28; transform: scale(1.1) rotate(-6deg); }

.python-bg-card {
    background: linear-gradient(135deg, rgba(53, 114, 165, 0.26) 0%, rgba(5, 20, 36, 0.88) 100%);
    position: relative;
    overflow: hidden;
}
.python-bg-card::before {
    content: "🐍";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.13;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.python-bg-card:hover::before { opacity: 0.22; transform: scale(1.1) rotate(-6deg); }

.python-adv-bg-card {
    background: linear-gradient(135deg, rgba(53, 114, 165, 0.3) 0%, rgba(255, 212, 59, 0.12) 100%);
    position: relative;
    overflow: hidden;
}
.python-adv-bg-card::before {
    content: "🚀";
    position: absolute;
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
    opacity: 0.15;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.python-adv-bg-card:hover::before { opacity: 0.28; transform: scale(1.1) rotate(-6deg); }
