/* /rsc/resources.css */

/* ============================================= */
/*          STYLES POUR LES PAGES RESSOURCES
/* ============================================= */

/* --- PALETTE & VARIABLES --- */
:root {
    --resource-primary: #005f73; /* Bleu-vert, pour le savoir et la croissance */
    --resource-secondary: #0a9396; /* Cyan, pour les accents */
    --resource-accent: #ee9b00; /* Orange, pour les CTA et alertes */
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #dee2e6;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --border-radius: 12px;
    --gold: #ffc107;
}

/* Force Apple Color Emoji for consistent emoji rendering across platforms */
.icon-badge,
.meta-item,
.pillar-icon,
h2, h3, h4,
td,
[class*="icon"]:before,
[class*="icon"]:after {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
}

/* ===== NAVIGATION BAR (Resource Pages) ===== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: var(--resource-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-brand span {
    color: var(--resource-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--resource-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--resource-primary);
    transition: all 0.3s ease;
}

/* ===== FONDS DÉCORATIFS ===== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--resource-primary), var(--resource-secondary));
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--resource-secondary), var(--gold));
    bottom: 20%;
    left: -50px;
    animation-delay: 7s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--gold), var(--resource-primary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

.bg-pattern {
    position: absolute;
    opacity: 0.05;
    animation: rotate 30s linear infinite;
}

.bg-pattern-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--resource-primary) 2px, transparent 2px);
    background-size: 30px 30px;
    top: 0;
    left: 0;
}

.bg-pattern-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--resource-secondary) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 0;
    right: 0;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- STYLES DE BASE --- */
body.resource-page {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- HEADER DE RESSOURCE --- */
.resource-header {
    background: linear-gradient(135deg, var(--resource-primary), var(--resource-secondary));
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
}
.resource-header .icon-badge {
    font-size: 2.5rem;
    background: rgba(255,255,255,0.15);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}
.resource-header h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}
.resource-header .resource-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* --- CONTENU PRINCIPAL --- */
.resource-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

h2 {
    font-family: 'Playfair Display', serif;
    color: var(--resource-primary);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--resource-accent);
    padding-bottom: 0.5rem;
}

h3 {
    font-family: 'Playfair Display', serif;
    color: var(--resource-secondary);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* --- BOUTON RETOUR --- */
.back-to-site {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--resource-secondary);
    text-decoration: none;
}

/* --- CTA --- */
.resource-cta {
    background: var(--resource-accent);
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}
.resource-cta h2 {
    color: white;
    border: none;
}
.resource-cta .btn {
    background-color: var(--resource-primary);
    color: white;
    padding: 0.8rem 1.6rem;
}
.resource-cta .btn:hover {
    background-color: #003f4f;
}

/* --- STYLES SPÉCIFIQUES POUR ÉTUDES DE CAS --- */
.case-study {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.case-header h2 {
    border-bottom: 3px solid var(--resource-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.company-profile {
    margin-bottom: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.profile-item {
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--resource-secondary);
}

.profile-item strong {
    display: block;
    color: var(--resource-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.problem-section, .solution-section, .results-section {
    margin: 2rem 0;
}

.problem-box, .solution-card {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--resource-accent);
}

.problem-box.critical {
    background: #fff5f5;
    border-color: #dc3545;
}

.problem-box.warning {
    background: #fff8e1;
    border-color: #ff9800;
}

.solution-card.highlight {
    background: #f0f8ff;
    border-color: var(--resource-secondary);
}

.impact-list ul, .constraints-list ul, .solution-card ul {
    list-style-type: none;
    padding-left: 0;
}

.impact-list li, .constraints-list li, .solution-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.impact-list li:before, .constraints-list li:before, .solution-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--resource-secondary);
    font-weight: bold;
}

.quote-box {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--resource-primary);
    font-style: italic;
}

.quote-box blockquote {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.quote-box cite {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.recognition-box, .impact-box {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.recognition-box h4, .impact-box h2 {
    color: #2f855a;
    margin-bottom: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study {
        padding: 1rem;
    }
    
    .factor-item {
        flex-direction: column;
        text-align: center;
    }
    
    .factor-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* --- SECTION FACTEURS DE SUCCÈS --- */
.success-factors {
    background: rgba(248, 250, 252, 0.8);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid var(--resource-primary);
}

.success-factors h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--resource-primary);
    margin-bottom: 2.5rem;
    border: none;
    font-weight: 600;
}

.success-factors h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--resource-secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

.factors-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.factor-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border-left: 3px solid var(--resource-secondary);
}

.factor-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.factor-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--resource-primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.factor-content {
    flex: 1;
}

.factor-content h3 {
    color: var(--resource-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border: none;
    line-height: 1.3;
}

.factor-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* --- STYLES VARIÉS POUR LISTES --- */

/* 1. LISTE PREMIUM SIMPLE (détails webinar) */
.premium-list {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 2rem 0;
    border-left: 4px solid var(--resource-primary);
}

.premium-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.premium-item:last-child {
    border-bottom: none;
}

.premium-item:hover {
    background: rgba(0,95,115,0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}

.premium-icon {
    font-size: 1.4rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.premium-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.premium-text strong {
    color: var(--resource-primary);
    font-weight: 600;
}

/* 2. LISTE DE VÉRIFICATION (checklist) */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 8px;
    border-left: 3px solid #22c55e;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateX(5px);
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.check-content {
    flex: 1;
    line-height: 1.5;
}

/* 3. BADGES DE FONCTIONNALITÉS */
.feature-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.badge-item {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.badge-item.premium:before { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.badge-item.exclusive:before { background: linear-gradient(90deg, #ef4444, #f97316); }
.badge-item.proven:before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.badge-item.network:before { background: linear-gradient(90deg, #10b981, #059669); }

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.badge-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.badge-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 4. TIMELINE VERTICALE */
.timeline-agenda {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.timeline-agenda:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--resource-primary), var(--resource-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--resource-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-content {
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--resource-secondary);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.timeline-content h4 {
    color: var(--resource-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.timeline-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 5. ALERTE SPÉCIALE */
.urgent-alert {
    background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,107,107,0.1));
    border-left-color: #ffc107;
    animation: pulse-glow 3s ease-in-out infinite;
}

.urgent-alert:hover {
    background: linear-gradient(135deg, rgba(255,193,7,0.2), rgba(255,107,107,0.2));
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255,193,7,0.3);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-badges {
        grid-template-columns: 1fr;
    }
    
    .timeline-agenda {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* --- BOUTON CTA ÉLÉGANT ET INTERACTIF --- */
.interactive-cta-container {
    text-align: center;
    margin-top: 3rem;
    position: relative;
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.interactive-cta {
    background: linear-gradient(135deg, var(--resource-primary), var(--resource-secondary));
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,95,115,0.25);
    border: none;
    cursor: pointer;
    z-index: 2;
}

.interactive-cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.interactive-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,95,115,0.35);
    background: linear-gradient(135deg, var(--resource-secondary), var(--resource-primary));
}

.interactive-cta:hover:before {
    left: 100%;
}

.interactive-cta:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-text {
    position: relative;
    z-index: 3;
    display: inline-block;
    transition: transform 0.2s ease;
}

.interactive-cta:hover .btn-text {
    transform: translateY(-1px);
}

.interactive-cta:after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.interactive-cta:hover:after {
    transform: translateX(3px);
}

.btn-glow, .btn-particles, .cta-pulse {
    display: none; /* Suppression des effets trop lourds */
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-primary);
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

/* ===== MOBILE NAVIGATION (Resource Pages) ===== */
@media (max-width: 768px) {
    .nav-bar .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1rem;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Adjust page content for fixed navigation */
    .resources-hero,
    .resource-header {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-bar .container {
        padding: 0 1rem;
    }
    
    .nav-brand a {
        font-size: 1rem;
    }
    
    .nav-links {
        padding: 1.5rem;
        top: 60px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 0;
    }
    
    .resources-hero,
    .resource-header {
        margin-top: 60px;
    }
}
