/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs claires */
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --accent-bg: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-hover-bg: rgba(248, 250, 252, 0.95);
    
    /* Couleurs d'accent modernes */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-teal: #14b8a6;
    
    /* Texte */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-accent: #3b82f6;
    
    /* Gradients clairs */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-quaternary: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    /* Ombres douces */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Effet de fond subtil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: subtleFloat 25s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(60deg); }
    66% { transform: translateY(5px) rotate(120deg); }
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header principal */
.main-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.08;
    border-radius: 50%;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.12; }
}

.main-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.main-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Sections */
section {
    margin-bottom: 5rem;
    position: relative;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-tertiary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

/* Couleurs spécifiques par section */
#strategie .category-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#texte .category-title {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#images .category-title {
    background: var(--gradient-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#video-audio .category-title {
    background: var(--gradient-quaternary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grille d'outils */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Cartes d'outils */
.tool-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
    background: var(--card-hover-bg);
}

.tool-card:hover::before {
    opacity: 1;
}

/* Animation d'apparition des cartes */
.tool-card {
    animation: cardSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header des outils */
.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.tool-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    padding: 8px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    object-fit: contain;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.tool-card:hover .tool-logo {
    transform: rotate(3deg) scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.tool-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Description des outils */
.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Section "Idéal pour" */
.ideal-for {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--accent-blue);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.ideal-for::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tool-card:hover .ideal-for::before {
    transform: translateX(100%);
}

.ideal-for strong {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Effets de survol spécifiques par section */
#strategie .tool-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.1), 0 10px 10px -5px rgba(139, 92, 246, 0.04);
}

#texte .tool-card:hover {
    border-color: var(--accent-pink);
    box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.1), 0 10px 10px -5px rgba(236, 72, 153, 0.04);
}

#images .tool-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

#video-audio .tool-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1), 0 10px 10px -5px rgba(16, 185, 129, 0.04);
}

/* Footer */
.main-footer {
    margin-top: 6rem;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-card);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-accent);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-links a:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-header {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }
    
    .main-header h1 {
        font-size: 2.5rem;
    }
    
    .main-header p {
        font-size: 1.1rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .tool-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links a {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--accent-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Amélioration de l'accessibilité */
.tool-card:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Animation d'entrée pour les sections */
section {
    animation: sectionFadeIn 1s ease-out;
}

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

/* Effet de chargement */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

