* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    background-color: #f8fafc;
}

.link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.link-icon:hover {
    opacity: 1;
}

.header {
    text-align: center;
    margin-bottom: 80px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #333 0%, #e91e63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Carrousel horizontal avec défilement infini */
.tools-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent 0%, white 5%, white 95%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, white 5%, white 95%, transparent 100%);
}

.tools-track {
    display: flex;
    width: max-content;
    animation: scroll-horizontal 30s linear infinite;
    gap: 24px;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
    min-height: 140px;
    width: 180px;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
}

.icon-student,
.icon-researcher,
.icon-professional,
.icon-lawyer,
.icon-doctor,
.icon-consultant,
.icon-journalist,
.icon-analyst,
.icon-entrepreneur,
.icon-writer,
.icon-accountant,
.icon-architect {
    color: #e91e63;
}

.tool-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

/* Animation pause au survol du carrousel */
.tools-carousel:hover .tools-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-track {
        animation-duration: 25s;
        gap: 20px;
    }
    
    .tool-card {
        width: 160px;
        flex: 0 0 160px;
        padding: 28px 16px;
        min-height: 130px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }
    
    .header {
        margin-bottom: 60px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .tools-track {
        animation-duration: 20s;
        gap: 16px;
    }
    
    .tool-card {
        width: 140px;
        flex: 0 0 140px;
        padding: 24px 12px;
        min-height: 120px;
    }
    
    .tool-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 12px;
    }
    
    .tool-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .tool-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }
    
    .tools-track {
        animation-duration: 18s;
        gap: 12px;
    }
    
    .tool-card {
        width: 120px;
        flex: 0 0 120px;
        padding: 20px 8px;
        min-height: 110px;
    }
    
    .tool-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }
    
    .tool-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .tool-title {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Animation fluide - respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .tools-track {
        animation: none;
    }
    
    .tools-carousel {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(233, 30, 99, 0.3) transparent;
    }
    
    .tools-carousel::-webkit-scrollbar {
        height: 4px;
    }
    
    .tools-carousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .tools-carousel::-webkit-scrollbar-thumb {
        background: rgba(233, 30, 99, 0.3);
        border-radius: 2px;
    }
}